rbitia / aci-demos

Demos with ACI
https://aka.ms/acidemos
22 stars 20 forks source link

Helm ingress install fails on AKS due to RBAC #74

Closed sjwaight closed 3 years ago

sjwaight commented 6 years ago

The command

helm install stable/nginx-ingress --name ingress --namespace kube-system

Fails when being deployed to AKS (k8s 1.9.6) due to RBAC.

Error: release ingress failed: clusterroles.rbac.authorization.k8s.io "ingress-nginx-ingress" is forbidden: attempt to grant extra privileges....

Work around in the meantime is to install nginx the old fashioned way.

kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/mandatory.yaml
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/provider/cloud-generic.yaml
fredderf204 commented 6 years ago

Hi @sjwaight , I was also able to work around the issue with this command

helm install stable/nginx-ingress --name ingress --namespace kube-system --set rbac.create=false --set rbac.createRole=false --set rbac.createClusterRole=false

mdavis-xyz commented 6 years ago

I added a pull request to this repo. Which repo is the 'main' one that issues and pull requests should be made on?

sjwaight commented 3 years ago

Given age, I am closing this issue.