I deployed an elasticsearch cluster on K8S using this command helm install elasticsearch elastic/elasticsearch.
I can see the pod is running:
$ kubectl get pods
NAME READY STATUS RESTARTS AGE
elasticsearch-master-0 0/1 Running 0 4m30s
kibana-kibana-5697fc485b-qtzzl 0/1 Running 0 130m
The service looks good as well:
$ kubectl get services
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
elasticsearch-master ClusterIP 10.105.59.248 <none> 9200/TCP,9300/TCP 4m50s
elasticsearch-master-headless ClusterIP None <none> 9200/TCP,9300/TCP 4m50s
kibana-kibana ClusterIP 10.104.31.124 <none> 5601/TCP 6d7h
kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 10d
But there is no deployment for the elasticsearch:
$ kubectl get deployments
NAME READY UP-TO-DATE AVAILABLE AGE
kibana-kibana 0/1 1 0 6d7h
I'd like to restart the elasticsearch pod and I have searched that people say to use kubectl scale deployment --replicas=0 to terminate the pod. But there is no deployment for the elasticsearch cluster, In this case, how can I restart the elasticsearch pod?