Update manifest to run as user (#2691)
This commit is contained in:
parent
0dbc9a2973
commit
03b22e605e
3 changed files with 33 additions and 0 deletions
17
Changelog.md
17
Changelog.md
|
@ -4,6 +4,23 @@
|
|||
|
||||
**Image:** `quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.16.0`
|
||||
|
||||
*Breaking changes:*
|
||||
|
||||
Running as user requires an update in the deployment manifest.
|
||||
|
||||
```yaml
|
||||
securityContext:
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
add:
|
||||
- NET_BIND_SERVICE
|
||||
# www-data -> 33
|
||||
runAsUser: 33
|
||||
```
|
||||
|
||||
Note: the deploy [guide](https://kubernetes.github.io/ingress-nginx/deploy/#mandatory-command) contains this change
|
||||
|
||||
*New Features:*
|
||||
|
||||
- Run as user dropping root privileges
|
||||
|
|
|
@ -251,6 +251,14 @@ spec:
|
|||
- --udp-services-configmap=$(POD_NAMESPACE)/udp-services
|
||||
- --publish-service=$(POD_NAMESPACE)/ingress-nginx
|
||||
- --annotations-prefix=nginx.ingress.kubernetes.io
|
||||
securityContext:
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
add:
|
||||
- NET_BIND_SERVICE
|
||||
# www-data -> 33
|
||||
runAsUser: 33
|
||||
env:
|
||||
- name: POD_NAME
|
||||
valueFrom:
|
||||
|
|
|
@ -30,6 +30,14 @@ spec:
|
|||
- --udp-services-configmap=$(POD_NAMESPACE)/udp-services
|
||||
- --publish-service=$(POD_NAMESPACE)/ingress-nginx
|
||||
- --annotations-prefix=nginx.ingress.kubernetes.io
|
||||
securityContext:
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
add:
|
||||
- NET_BIND_SERVICE
|
||||
# www-data -> 33
|
||||
runAsUser: 33
|
||||
env:
|
||||
- name: POD_NAME
|
||||
valueFrom:
|
||||
|
|
Loading…
Reference in a new issue