Elasticsearch and kibana can be both on-premise or in the cloud. For installing Elasticsearch on-premise you might use the following link.
https://www.elastic.co/guide/en/elastic-stack/current/installing-elastic-stack.html
To install Elasticsearch in Kubernetes, the following link can be used.