Elasticsearch
Let's see how to run Elasticsearch (docs, code) in a Kubernetes cluster.
Configuration
We'll use the official Helm chart (code):
Deployment
bash
# adds Helm chart repository
helm repo add elastic https://helm.elastic.co
helm repo update
# installs
helm upgrade --install elasticsearch elastic/elasticsearch --namespace elasticsearch --create-namespace
# checks everything is ok
kubectl get pod -n elasticsearch
# uninstalls
helm uninstall elasticsearch -n elasticsearch
kubectl delete ns elasticsearch