MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.25k stars 21.42k forks source link

Error when installing ingress through helm #93848

Closed polvallverdu closed 2 years ago

polvallverdu commented 2 years ago

I'm trying to follow this guide: https://docs.microsoft.com/en-us/azure/aks/ingress-static-ip?tabs=azure-cli But I'm getting this issue after 5 minutes

pol@PVPC:~/vscode$ helm install nginx-ingress ingress-nginx/ingress-nginx \
-version     --version 4.0.13 \
     --namespace ingress-basic --create-namespace \
    --set controller.replicaCount=2 \
     --set controller.nodeSelector."kubernetes\.io/os"=linux \
 --set c     --set controller.image.registry=$ACR_URL \
     --set controller.image.image=$CONTROLLER_IMAGE \
  --set >     --set controller.image.tag=$CONTROLLER_TAG \
    --se>     --set controller.image.digest="" \
     --set controller.admissionWebhooks.patch.nodeSelector."kubernetes\.io/os"=linux \
et contr     --set controller.service.annotations."service\.beta\.kubernetes\.io/azure-load-balancer-health-probe-request-path"=/healthz \
--set co>     --set controller.admissionWebhooks.patch.image.registry=$ACR_URL \
     --set controller.admissionWebhooks.patch.image.image=$PATCH_IMAGE \
     --set controller.admissionWebhooks.patch.image.tag=$PATCH_TAG \
  --set     --set controller.admissionWebhooks.patch.image.digest="" \
     --set defaultBackend.nodeSelector."kubernetes\.io/os"=linux \
--set de>     --set defaultBackend.image.registry=$ACR_URL \
     --set defaultBackend.image.image=$DEFAULTBACKEND_IMAGE \
    --set defaultBackend.image.tag=$DEFAULTBACKEND_TAG \
    --set defaultBackend.image.digest="" \
    --set controller.service.loadBalancerIP=$STATIC_IP \
     --set controller.service.annotations."service\.beta\.kubernetes\.io/azure-dns-label-name"=$DNS_LABEL
WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /home/pol/.kube/config
WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /home/pol/.kube/config
Error: INSTALLATION FAILED: failed pre-install: timed out waiting for the condition

I already checked the variables, checked that the IP is created and made sure that the DNS Label truly points to the external IP I created.

Any idea of what it could be?

polvallverdu commented 2 years ago

I'm getting this when debugging

install.go:178: [debug] Original chart version: "4.0.13"
install.go:195: [debug] CHART PATH: /home/pol/.cache/helm/repository/ingress-nginx-4.0.13.tgz

client.go:128: [debug] creating 1 resource(s)
client.go:310: [debug] Starting delete for "nginx-ingress-ingress-nginx-admission" ServiceAccount
client.go:339: [debug] serviceaccounts "nginx-ingress-ingress-nginx-admission" not found
client.go:128: [debug] creating 1 resource(s)
client.go:310: [debug] Starting delete for "nginx-ingress-ingress-nginx-admission" ClusterRole
client.go:128: [debug] creating 1 resource(s)
client.go:310: [debug] Starting delete for "nginx-ingress-ingress-nginx-admission" ClusterRoleBinding
client.go:128: [debug] creating 1 resource(s)
client.go:310: [debug] Starting delete for "nginx-ingress-ingress-nginx-admission" Role
client.go:339: [debug] roles.rbac.authorization.k8s.io "nginx-ingress-ingress-nginx-admission" not found
client.go:128: [debug] creating 1 resource(s)
client.go:310: [debug] Starting delete for "nginx-ingress-ingress-nginx-admission" RoleBinding
client.go:339: [debug] rolebindings.rbac.authorization.k8s.io "nginx-ingress-ingress-nginx-admission" not found
client.go:128: [debug] creating 1 resource(s)
client.go:310: [debug] Starting delete for "nginx-ingress-ingress-nginx-admission-create" Job
client.go:339: [debug] jobs.batch "nginx-ingress-ingress-nginx-admission-create" not found
client.go:128: [debug] creating 1 resource(s)
client.go:540: [debug] Watching for changes to Job nginx-ingress-ingress-nginx-admission-create with timeout of 5m0s
client.go:568: [debug] Add/Modify event for nginx-ingress-ingress-nginx-admission-create: ADDED
client.go:607: [debug] nginx-ingress-ingress-nginx-admission-create: Jobs active: 0, jobs failed: 0, jobs succeeded: 0
client.go:568: [debug] Add/Modify event for nginx-ingress-ingress-nginx-admission-create: MODIFIED
client.go:607: [debug] nginx-ingress-ingress-nginx-admission-create: Jobs active: 1, jobs failed: 0, jobs succeeded: 0
polvallverdu commented 2 years ago

I forgot to link my acr to my aks

Karishma-Tiwari-MSFT commented 2 years ago

Thanks for sharing the update.