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
|
server: https://kubernetes.default.svc
|
||||||
namespace: ingress-nginx
|
namespace: ingress-nginx
|
||||||
syncPolicy:
|
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:
|
automated:
|
||||||
prune: true
|
prune: true
|
||||||
selfHeal: true
|
selfHeal: true
|
||||||
|
|||||||
Reference in New Issue
Block a user