i am a begginer in kubernetes i am trying to run an elasticsearch cluster in it for nthat i am following this (tutorial)[https://phoenixnap.com/kb/elasticsearch-helm-chart] followed all the commands as it is and in the ebnd when i do
kubectl get pods --namespace=default -l app=elasticsearch-master -w
i am getting
NAME READY STATUS RESTARTS AGE
elasticsearch-master-0 0/1 Init:0/1 0 55s
elasticsearch-master-1 0/1 Init:0/1 0 55s
elasticsearch-master-2 0/1 Init:0/1 0 55s
they are not turning into ready state and the command
helm test elasticsearch
got stuck and does not respond
here are the logs
kubectl logs -f elasticsearch-master-0
Error from server (BadRequest): container "elasticsearch" in pod "elasticsearch-master-0" is waiting to start: PodInitializing
kubectl logs -f elasticsearch-master-1
Error from server (BadRequest): container "elasticsearch" in pod "elasticsearch-master-1" is waiting to start: PodInitializing
kubectl logs -f elasticsearch-master-2
Error from server (BadRequest): container "elasticsearch" in pod "elasticsearch-master-2" is waiting to start: PodInitializing
and the kubectl cluster-info
returning
{
"kind": "Status",
"apiVersion": "v1",
"metadata": {
},
"status": "Failure",
"message": "services \"kube-dns:dns\" is forbidden: User \"system:anonymous\" cannot get resource \"services/proxy\" in API group \"\" in the namespace \"kube-system\"",
"reason": "Forbidden",
"details": {
"name": "kube-dns:dns",
"kind": "services"
},
"code": 403
}
that's all i know right now as i am a begenier in it please help why my elasticsearch nodes are not getting ready