fix(ingress-nginx): set privileged PodSecurity via managedNamespaceMetadata — hostPort 80/443 blocked by default baseline enforce, makes label permanent in IaC
This commit is contained in:
@@ -61,6 +61,11 @@ spec:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: ingress-nginx
|
||||
syncPolicy:
|
||||
managedNamespaceMetadata:
|
||||
# hostPort 80/443 requires the privileged PodSecurity level; the default
|
||||
# baseline/restricted enforce blocks the controller DaemonSet.
|
||||
labels:
|
||||
pod-security.kubernetes.io/enforce: privileged
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
|
||||
Reference in New Issue
Block a user