Skip to content

Commit 34a1398

Browse files
authored
Merge pull request #1674 from ArthurSens/linux-hardening
jsonnet: Drop all Linux capabilities
2 parents 9ea05e4 + 8918f9b commit 34a1398

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

examples/autosharding/statefulset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ spec:
5555
timeoutSeconds: 5
5656
securityContext:
5757
allowPrivilegeEscalation: false
58+
capabilities:
59+
drop:
60+
- ALL
5861
readOnlyRootFilesystem: true
5962
runAsUser: 65534
6063
nodeSelector:

examples/standard/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ spec:
4242
timeoutSeconds: 5
4343
securityContext:
4444
allowPrivilegeEscalation: false
45+
capabilities:
46+
drop:
47+
- ALL
4548
readOnlyRootFilesystem: true
4649
runAsUser: 65534
4750
nodeSelector:

jsonnet/kube-state-metrics/kube-state-metrics.libsonnet

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@
167167
runAsUser: 65534,
168168
allowPrivilegeEscalation: false,
169169
readOnlyRootFilesystem: true,
170+
capabilities: { drop: ['ALL'] },
170171
},
171172
livenessProbe: { timeoutSeconds: 5, initialDelaySeconds: 5, httpGet: {
172173
port: 8080,

0 commit comments

Comments
 (0)