We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4b00ef commit da2a674Copy full SHA for da2a674
deploy/manifests/nginx-gateway.yaml
@@ -110,9 +110,11 @@ spec:
110
mountPath: /etc/nginx
111
securityContext:
112
runAsUser: 1001
113
- # FIXME(pleshakov) - figure out which capabilities are required
114
- # dropping ALL and adding only CAP_KILL doesn't work
115
- # Note: CAP_KILL is needed for sending HUP signal to NGINX main process
+ capabilities:
+ drop:
+ - ALL
116
+ add:
117
+ - KILL
118
env:
119
- name: POD_IP
120
valueFrom:
@@ -137,3 +139,12 @@ spec:
137
139
mountPath: /var/lib/nginx
138
140
- name: njs-modules
141
mountPath: /usr/lib/nginx/modules/njs
142
+ securityContext:
143
144
145
146
147
+ - CHOWN
148
+ - NET_BIND_SERVICE
149
+ - SETGID
150
+ - SETUID
0 commit comments