File tree 1 file changed +10
-13
lines changed
1 file changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -29,11 +29,13 @@ spec:
29
29
service : ${SERVICE}
30
30
spec :
31
31
serviceAccountName : ${SERVICE_ACCOUNT}
32
- runtimeClassName : gvisor
33
- securityContext :
34
- runAsUser : 65534 # nobody
35
- runAsGroup : 0 # required by DefectDojo
36
- runAsNonRoot : true
32
+ nodeSelector :
33
+ sandbox.gke.io/runtime : gvisor
34
+ tolerations :
35
+ - key : sandbox.gke.io/runtime
36
+ operator : Equal
37
+ value : gvisor
38
+ effect : NoSchedule
37
39
38
40
containers :
39
41
- name : nginx
88
90
name : ${CELERY_CONFIG}
89
91
- secretRef :
90
92
name : ${CELERY_SECRET}
91
- securityContext :
92
- capabilities :
93
- add :
94
- - NET_RAW
95
93
96
94
- name : celeryworker
97
95
image : ${DD_DJANGO_IMAGE}
@@ -106,10 +104,6 @@ spec:
106
104
name : ${CELERY_CONFIG}
107
105
- secretRef :
108
106
name : ${CELERY_SECRET}
109
- securityContext :
110
- capabilities :
111
- add :
112
- - NET_RAW
113
107
114
108
- name : rabbitmq
115
109
image : rabbitmq
@@ -146,6 +140,9 @@ spec:
146
140
command :
147
141
- /cloud_sql_proxy
148
142
- -instances=${SQL_INSTANCE_URI}
143
+ securityContext :
144
+ runAsUser : 2 # non-root user
145
+ allowPrivilegeEscalation : false
149
146
---
150
147
apiVersion : iam.cnrm.cloud.google.com/v1beta1
151
148
kind : IAMPolicyMember
You can’t perform that action at this time.
0 commit comments