File tree 4 files changed +36
-14
lines changed
4 files changed +36
-14
lines changed Original file line number Diff line number Diff line change @@ -41,11 +41,13 @@ spec:
41
41
imagePullPolicy : Always
42
42
name : nginx-gateway
43
43
securityContext :
44
+ allowPrivilegeEscalation : false
44
45
capabilities :
45
46
add :
46
47
- KILL
47
48
drop :
48
49
- ALL
50
+ readOnlyRootFilesystem : true
49
51
runAsUser : 102
50
52
runAsGroup : 1001
51
53
volumeMounts :
69
71
- NET_BIND_SERVICE
70
72
drop :
71
73
- ALL
74
+ readOnlyRootFilesystem : true
72
75
runAsUser : 101
73
76
runAsGroup : 1001
74
77
volumeMounts :
@@ -78,14 +81,23 @@ spec:
78
81
mountPath : /etc/nginx/secrets
79
82
- name : nginx-run
80
83
mountPath : /var/run/nginx
84
+ - name : nginx-cache
85
+ mountPath : /var/cache/nginx
86
+ - name : nginx-lib
87
+ mountPath : /var/lib/nginx
81
88
serviceAccountName : nginx-gateway
82
89
shareProcessNamespace : true
83
90
securityContext :
84
91
fsGroup : 1001
92
+ runAsNonRoot : true
85
93
volumes :
86
94
- name : nginx-conf
87
95
emptyDir : {}
88
96
- name : nginx-secrets
89
97
emptyDir : {}
90
98
- name : nginx-run
91
99
emptyDir : {}
100
+ - name : nginx-cache
101
+ emptyDir : {}
102
+ - name : nginx-lib
103
+ emptyDir : {}
Original file line number Diff line number Diff line change @@ -36,11 +36,13 @@ spec:
36
36
imagePullPolicy : {{ .Values.nginxGateway.image.pullPolicy }}
37
37
name : nginx-gateway
38
38
securityContext :
39
+ allowPrivilegeEscalation : false
39
40
capabilities :
40
41
add :
41
42
- KILL
42
43
drop :
43
44
- ALL
45
+ readOnlyRootFilesystem : true
44
46
runAsUser : 102
45
47
runAsGroup : 1001
46
48
volumeMounts :
64
66
- NET_BIND_SERVICE
65
67
drop :
66
68
- ALL
69
+ readOnlyRootFilesystem : true
67
70
runAsUser : 101
68
71
runAsGroup : 1001
69
72
volumeMounts :
@@ -73,15 +76,24 @@ spec:
73
76
mountPath : /etc/nginx/secrets
74
77
- name : nginx-run
75
78
mountPath : /var/run/nginx
79
+ - name : nginx-cache
80
+ mountPath : /var/cache/nginx
81
+ - name : nginx-lib
82
+ mountPath : /var/lib/nginx
76
83
serviceAccountName : {{ include "nginx-gateway.serviceAccountName" . }}
77
84
shareProcessNamespace : true
78
85
securityContext :
79
86
fsGroup : 1001
87
+ runAsNonRoot : true
80
88
volumes :
81
89
- name : nginx-conf
82
90
emptyDir : {}
83
91
- name : nginx-secrets
84
92
emptyDir : {}
85
93
- name : nginx-run
86
94
emptyDir : {}
95
+ - name : nginx-cache
96
+ emptyDir : {}
97
+ - name : nginx-lib
98
+ emptyDir : {}
87
99
{{- end }}
Original file line number Diff line number Diff line change @@ -48,13 +48,6 @@ rules:
48
48
verbs :
49
49
- list
50
50
- watch
51
- - apiGroups :
52
- - gateway.nginx.org
53
- resources :
54
- - gatewayconfigs
55
- verbs :
56
- - list
57
- - watch
58
51
- apiGroups :
59
52
- gateway.networking.k8s.io
60
53
resources :
Original file line number Diff line number Diff line change @@ -59,13 +59,6 @@ rules:
59
59
verbs :
60
60
- list
61
61
- watch
62
- - apiGroups :
63
- - gateway.nginx.org
64
- resources :
65
- - gatewayconfigs
66
- verbs :
67
- - list
68
- - watch
69
62
- apiGroups :
70
63
- gateway.networking.k8s.io
71
64
resources :
@@ -149,11 +142,13 @@ spec:
149
142
imagePullPolicy : Always
150
143
name : nginx-gateway
151
144
securityContext :
145
+ allowPrivilegeEscalation : false
152
146
capabilities :
153
147
add :
154
148
- KILL
155
149
drop :
156
150
- ALL
151
+ readOnlyRootFilesystem : true
157
152
runAsUser : 102
158
153
runAsGroup : 1001
159
154
volumeMounts :
@@ -177,6 +172,7 @@ spec:
177
172
- NET_BIND_SERVICE
178
173
drop :
179
174
- ALL
175
+ readOnlyRootFilesystem : true
180
176
runAsUser : 101
181
177
runAsGroup : 1001
182
178
volumeMounts :
@@ -186,17 +182,26 @@ spec:
186
182
mountPath : /etc/nginx/secrets
187
183
- name : nginx-run
188
184
mountPath : /var/run/nginx
185
+ - name : nginx-cache
186
+ mountPath : /var/cache/nginx
187
+ - name : nginx-lib
188
+ mountPath : /var/lib/nginx
189
189
serviceAccountName : nginx-gateway
190
190
shareProcessNamespace : true
191
191
securityContext :
192
192
fsGroup : 1001
193
+ runAsNonRoot : true
193
194
volumes :
194
195
- name : nginx-conf
195
196
emptyDir : {}
196
197
- name : nginx-secrets
197
198
emptyDir : {}
198
199
- name : nginx-run
199
200
emptyDir : {}
201
+ - name : nginx-cache
202
+ emptyDir : {}
203
+ - name : nginx-lib
204
+ emptyDir : {}
200
205
---
201
206
# Source: nginx-kubernetes-gateway/templates/gatewayclass.yaml
202
207
apiVersion : gateway.networking.k8s.io/v1beta1
You can’t perform that action at this time.
0 commit comments