Skip to content

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

@rohullah-ramish

Description

@rohullah-ramish

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions