Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rohullah-ramish opened this issue Jun 20, 2022 · 2 comments

Comments

@rohullah-ramish
Copy link

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
Copy link

ttanay commented Nov 29, 2023

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

@gitcommitshow
Copy link

gitcommitshow commented Dec 6, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants