Skip to content

Commit 261ddf3

Browse files
authored
Drop Security Context (#457)
1 parent 6cef89b commit 261ddf3

File tree

5 files changed

+43
-12
lines changed

5 files changed

+43
-12
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
You have installed Kubernetes ArangoDB Operator in version {{ .Chart.Version }}
2+
3+
To access ArangoDeployments you can use:
4+
5+
kubectl --namespace "{{ .Release.Namespace }}" get arangodeployments
6+
7+
More details can be found on https://github.com/arangodb/kube-arangodb/tree/{{ .Chart.Version }}/docs

chart/kube-arangodb/templates/deployment.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ spec:
4646
operator: In
4747
values:
4848
- amd64
49+
hostNetwork: false
50+
hostPID: false
51+
hostIPC: false
4952
containers:
5053
- name: operator
5154
imagePullPolicy: {{ .Values.operator.imagePullPolicy }}
@@ -81,9 +84,12 @@ spec:
8184
- name: metrics
8285
containerPort: 8528
8386
securityContext:
84-
capabilities:
85-
drop:
86-
- 'ALL'
87+
privileged: false
88+
allowPrivilegeEscalation: false
89+
readOnlyRootFilesystem: true
90+
capabilities:
91+
drop:
92+
- 'ALL'
8793
{{- if .Values.operator.resources }}
8894
resources:
8995
{{ toYaml .Values.operator.resources | indent 22 }}

manifests/arango-deployment-replication.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@ spec:
168168
operator: In
169169
values:
170170
- amd64
171+
hostNetwork: false
172+
hostPID: false
173+
hostIPC: false
171174
containers:
172175
- name: operator
173176
imagePullPolicy: Always
@@ -193,9 +196,12 @@ spec:
193196
- name: metrics
194197
containerPort: 8528
195198
securityContext:
196-
capabilities:
197-
drop:
198-
- 'ALL'
199+
privileged: false
200+
allowPrivilegeEscalation: false
201+
readOnlyRootFilesystem: true
202+
capabilities:
203+
drop:
204+
- 'ALL'
199205
livenessProbe:
200206
httpGet:
201207
path: /health

manifests/arango-deployment.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,9 @@ spec:
215215
operator: In
216216
values:
217217
- amd64
218+
hostNetwork: false
219+
hostPID: false
220+
hostIPC: false
218221
containers:
219222
- name: operator
220223
imagePullPolicy: Always
@@ -240,9 +243,12 @@ spec:
240243
- name: metrics
241244
containerPort: 8528
242245
securityContext:
243-
capabilities:
244-
drop:
245-
- 'ALL'
246+
privileged: false
247+
allowPrivilegeEscalation: false
248+
readOnlyRootFilesystem: true
249+
capabilities:
250+
drop:
251+
- 'ALL'
246252
livenessProbe:
247253
httpGet:
248254
path: /health

manifests/arango-storage.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@ spec:
200200
operator: In
201201
values:
202202
- amd64
203+
hostNetwork: false
204+
hostPID: false
205+
hostIPC: false
203206
containers:
204207
- name: operator
205208
imagePullPolicy: Always
@@ -225,9 +228,12 @@ spec:
225228
- name: metrics
226229
containerPort: 8528
227230
securityContext:
228-
capabilities:
229-
drop:
230-
- 'ALL'
231+
privileged: false
232+
allowPrivilegeEscalation: false
233+
readOnlyRootFilesystem: true
234+
capabilities:
235+
drop:
236+
- 'ALL'
231237
livenessProbe:
232238
httpGet:
233239
path: /health

0 commit comments

Comments
 (0)