Replicaset-controller Error creating: pods is forbidden: unable to validate against any pod security policy: []

Hi,
I am trying to deploy the nginx-ingress helm chart and I got the following error:

replicaset-controller Error creating: pods is forbidden: unable to validate against any pod security policy: []

This is my entry in my install.sh

/usr/local/bin/helm install /var/lib/gravity/resources/charts/nginx-ingress --namespace ingress-nginx --set image=leader.telekube.local:5000/nginx-ingress

My app.yaml has


systemOptions:
  allowPrivileged: true

Is there anything else I’m supposed to do?

Thanks to @abdu in Quickstart and load balancing, I realized that’s a nginx-ingress specific customization.
If you are using the helm chart for nginx-ingress, you can enable it by podSecurityPolicy.enabled=true
or if you are doing it on your own, I think this might help:
https://kubernetes.github.io/ingress-nginx/examples/psp/

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.