Hi i'm trying to deploy datahub on local kubernete...
# all-things-deployment
b
Hi i'm trying to deploy datahub on local kubernetes. I'm getting this error in elastic-search setup pod
Copy code
kubectl logs -f pods/datahub-elasticsearch-setup-job-x4j48
2021/12/07 20:07:48 Waiting for: <http://elasticsearch-master:9200>
2021/12/07 20:07:48 Problem with request: Get <http://elasticsearch-master:9200>: dial tcp 10.97.31.240:9200: connect: connection refused. Sleeping 1s
2021/12/07 20:07:49 Problem with request: Get <http://elasticsearch-master:9200>: dial tcp 10.97.31.240:9200: connect: connection refused. Sleeping 1s
2021/12/07 20:07:50 Problem with request: Get <http://elasticsearch-master:9200>: dial tcp 10.97.31.240:9200: connect: connection refused. Sleeping 1s
2021/12/07 20:07:51 Problem with request: Get <http://elasticsearch-master:9200>: dial tcp 10.97.31.240:9200: connect: connection refused. Sleeping 1s
2021/12/07 20:07:52 Problem with request: Get <http://elasticsearch-master:9200>: dial tcp 10.97.31.240:9200: connect: connection refused. Sleeping 1s
2021/12/07 20:07:53 Problem with request: Get <http://elasticsearch-master:9200>: dial tcp 10.97.31.240:9200: connect: connection refused. Sleeping 1s
e
Hey! Did you deploy datahub-prerequisites? i.e. are the running pods for mysql, elasticsearch, and kafka?
b
yes i deployed datahub-prerequisites and all the pods are in running state
e
Hmn this is very weird. Can you post what you see when you run
kubectl get svc
?
Just to make sure
you are deploying both charts to the default namespace right?
The services list above looks valid
b
yes deploying it to name space datahub-kafka-setup-job-cnmql 0/1 Completed 0 4d1h datahub-mysql-setup-job-4tzkn 0/1 Completed 0 4d1h these two were completed
e
ah can you follow this line https://github.com/acryldata/datahub-helm/blob/master/charts/prerequisites/values.yaml#L7 when spinning up datahub-prerequisites? so you will have to clone the repo and explicitly set values file when deploying.
helm upgrade prerequisites datahub/datahub-prerequisites -f <<path-to-values-file>>
This seems to be due to elasticsearch failing. they don’t have healthchecks set up, so it says it’s ready but I think it is failing
Basically need to set replicas to 1 and
antiAffinity: "soft"
b
Its working now. Thanks for the help
e
awesome!!!