rudderlabs / rudderstack-helm

Open-source, warehouse-first Customer Data Pipeline and Segment-alternative. Collects and routes clickstream data and builds your customer data lake on your data warehouse.
MIT License
61 stars 48 forks source link

export SERVICE_IP=$(kubectl get svc --namespace default my-release-rudderstack --template "{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}") #51

Open rohullah-ramish opened 2 years ago

rohullah-ramish commented 2 years ago

when i run This command export SERVICE_IP=$(kubectl get svc --namespace default my-release-rudderstack --template "{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}") i am getting the error error: error executing template "{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}": template: output:1:10: executing "output" at <index .status.loadBalancer.ingress 0>: error calling index: index of untyped nil

here is the full details NAME: my-release LAST DEPLOYED: Mon Jun 20 12:00:19 2022 NAMESPACE: default STATUS: deployed REVISION: 1 NOTES: NOTE: It may take a few minutes for the URL to be available. You can watch the status of by running 'kubectl get --namespace default svc -w my-release-rudderstack'

Execute the following commands for Data plane URL: ########################## export SERVICE_IP=$(kubectl get svc --namespace default my-release-rudderstack --template "{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}") echo "Data plane URL: http://$SERVICE_IP:80" #########################

Check /health to see the status apple@apples-MacBook-Pro-2 rudderstack-helm % export SERVICE_IP=$(kubectl get svc --namespace default my-release-rudderstack --template "{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}") error: error executing template "{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}": template: output:1:10: executing "output" at <index .status.loadBalancer.ingress 0>: error calling index: index of untyped nil

ttanay commented 12 months ago

I had the same issue. Looks like this doesn't work if the external IP for the load balancer is in pending state.

gitcommitshow commented 11 months ago

Hi @ttanay, thank you for reporting the issue. Will discuss with the team. Meanwhile, do share more info to reproduce the issue.