Azure / kubeflow-aks

Official repository for the Kubeflow on Azure and AKS project
https://azure.github.io/kubeflow-aks/main/
MIT License
26 stars 18 forks source link

Azure Policy on AKS (Gatekeeper) prevents pod from fetching images of cert-manager-controller and etc #39

Open HakjunMIN opened 4 months ago

HakjunMIN commented 4 months ago

Azure Policy on AKS (Gatekeeper) prevents pod from fetching images of cert-manager-controller and etc

Error

Most of pods doesn't work due to AKS Policy not allowing fetching images of cert-manager-controller and etc. as of 16th Apr 24.

kubectl get pods -n cert-manager
kubectl get pods -n istio-system
kubectl get pods -n auth
kubectl get pods -n knative-eventing
kubectl get pods -n knative-serving
kubectl get pods -n kubeflow
kubectl get pods -n kubeflow-user-example-com

Above all pods are not there.

Log in event

One of above, cert-manager has this event.

 Error creating: admission webhook "validation.gatekeeper.sh" denied the
  request: [azurepolicy-k8sazurev2containerallowedimag-5ee1d79beab0bf8e481a]
  Container image quay.io/jetstack/cert-manager-controller:v1.12.2 for container
  cert-manager-controller has not been allowed.

Resolution

Simply turn off Poilcy on AKS. or change [bicep]https://github.com/Azure/kubeflow-aks/blob/main/main.bicep#L21) to azurepolicy: ''