diff --git a/deploy/provider/patch-service-with-rbac.yaml b/deploy/provider/patch-service-with-rbac.yaml index c2a41cc68..cbbed1c3e 100644 --- a/deploy/provider/patch-service-with-rbac.yaml +++ b/deploy/provider/patch-service-with-rbac.yaml @@ -61,3 +61,5 @@ spec: periodSeconds: 10 successThreshold: 1 timeoutSeconds: 1 + securityContext: + runAsNonRoot: false diff --git a/deploy/provider/patch-service-without-rbac.yaml b/deploy/provider/patch-service-without-rbac.yaml index 6296f96eb..92d56a090 100644 --- a/deploy/provider/patch-service-without-rbac.yaml +++ b/deploy/provider/patch-service-without-rbac.yaml @@ -60,3 +60,5 @@ spec: periodSeconds: 10 successThreshold: 1 timeoutSeconds: 1 + securityContext: + runAsNonRoot: false diff --git a/deploy/with-rbac.yaml b/deploy/with-rbac.yaml index e5f5b4b3a..938d3e7de 100644 --- a/deploy/with-rbac.yaml +++ b/deploy/with-rbac.yaml @@ -60,3 +60,5 @@ spec: periodSeconds: 10 successThreshold: 1 timeoutSeconds: 1 + securityContext: + runAsNonRoot: false diff --git a/deploy/without-rbac.yaml b/deploy/without-rbac.yaml index e793990d5..fac1842aa 100644 --- a/deploy/without-rbac.yaml +++ b/deploy/without-rbac.yaml @@ -59,3 +59,5 @@ spec: periodSeconds: 10 successThreshold: 1 timeoutSeconds: 1 + securityContext: + runAsNonRoot: false diff --git a/docs/examples/customization/custom-errors/rc-custom-errors.yaml b/docs/examples/customization/custom-errors/rc-custom-errors.yaml index 88f6ce60a..f69e5d87c 100644 --- a/docs/examples/customization/custom-errors/rc-custom-errors.yaml +++ b/docs/examples/customization/custom-errors/rc-custom-errors.yaml @@ -49,3 +49,5 @@ spec: args: - /nginx-ingress-controller - --default-backend-service=$(POD_NAMESPACE)/nginx-errors + securityContext: + runAsNonRoot: false diff --git a/docs/examples/static-ip/nginx-ingress-controller.yaml b/docs/examples/static-ip/nginx-ingress-controller.yaml index 0975d76be..3651e3bdf 100644 --- a/docs/examples/static-ip/nginx-ingress-controller.yaml +++ b/docs/examples/static-ip/nginx-ingress-controller.yaml @@ -53,3 +53,5 @@ spec: - /nginx-ingress-controller - --default-backend-service=$(POD_NAMESPACE)/default-http-backend - --publish-service=$(POD_NAMESPACE)/nginx-ingress-lb + securityContext: + runAsNonRoot: false diff --git a/test/manifests/ingress-controller/with-rbac.yaml b/test/manifests/ingress-controller/with-rbac.yaml index 9dc1656ac..c8d49b229 100644 --- a/test/manifests/ingress-controller/with-rbac.yaml +++ b/test/manifests/ingress-controller/with-rbac.yaml @@ -58,3 +58,5 @@ spec: periodSeconds: 10 successThreshold: 1 timeoutSeconds: 1 + securityContext: + runAsNonRoot: false