I’ve created a helm chart to deploy a simple container application to an AKS cluster, but I’m trying to get the LoadBalancer to use a pre-existing static public ip called mypip
inside of myrg
and can’t seem to set the annotations to do that.
My values.yaml file has the following:
service:
type: LoadBalancer
port: 8080
targetport: 8080
annotations:
service.beta.kubernetes.io/azure-load-balancer-resource-group: "myrg"
service.beta.kubernetes.io/azure-pip-name: "mypip"
And I’ve also tried to set the values on the command line (not sure if the back-slashes are needed here but I’ve seen them in other examples):
helm install helloworld . --set controller.service.annotations.service.beta.kubernetes.io/azure-load-balancer-resource-group=myrg --set controller.service.annotations.service.beta.kubernetes.io/azure-pip-name=mypip
Each time I deploy the external_ip stays in pending:
E:Documentsworkhelmhelloworld>kubectl get --namespace default svc -w helloworld
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
helloworld LoadBalancer 10.1.17.71 <pending> 8080:31914/TCP 4s
And the output of “kubectl describe” is telling me that it’s trying to create a new pip and is not showing the annotations I have set.
Can anyone advise what I’m doing wrong? Thank you.
JimMc is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.