# cd /kra-data/ndml-kra.devops/setup/services/dev/logharbour # container image download url - bitnami/elasticsearch:8.11.1 - https://hub.docker.com/layers/bitnami/elasticsearch/8.11.1/images/sha256-e70fecd0bc25b8e784746710c201156fa105156a262b7930e891cef9a924c35e?context=explore # push docker image to private registry - docker tag bitnami/elasticsearch:8.11.1 private-repo:5000/bitnami/elasticsearch:8.11.1 - docker push private-repo:5000/bitnami/elasticsearch:8.11.1 # confirmed required docker images pushed on private registries. private-repo:5000/bitnami/elasticsearch:8.11.1 # check namespaces kubectl get ns # create namespace logharbour kubectl create ns logharbour # open the elasticsearch-statefulset.yaml file and update mount path inside container, container port, replicas, nodeSelector, and container image, storage for claim template. # open the elasticsearch-service.yaml file and check service ports. # open the elasticsearch-pv.yaml and update storage and host path. # deploy the file by below command kubectl apply -f elastic-statefulset.yaml.yaml -n logharbour # output statefulset.apps/elasticsearch configured service/elasticsearch-service configured persistentvolume/elasticsearch-pv-volume created # confirmed deployment by running below command kubectl get all -n logharbour --------------------- (will give pods, deployment and service data) # check whether pods are in running state or not pod/es-single-node-0 1/1 Running 0 2d6h NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE service/elasticsearch ClusterIP X.X.X.X 9200/TCP,9300/TCP 19d NAME READY AGE statefulset.apps/es-single-node 1/1 14d # check logs using below command kubectl logs -n logharbour # check description of pod using below command kubectl describe pod -n logharbour e.g. kubectl describe pod -n logharbour pod/es-single-node-0 # exec into pod kubectl exec -it -n e-search -- /bin/bash