chore: run pods as non-root user

This commit is contained in:
Rob Watson 2023-09-11 00:18:13 +02:00
parent 8a699c8039
commit cf06fcf2c5
7 changed files with 17 additions and 0 deletions

View File

@ -7,6 +7,8 @@ metadata:
component: runner
app.kubernetes.io/name: drone-runner
app.kubernetes.io/instance: drone-runner
annotations:
ignore-check.kube-linter.io/run-as-non-root: "Not yet implemented"
spec:
selector:
matchLabels:

View File

@ -7,6 +7,8 @@ metadata:
component: web
app.kubernetes.io/name: drone
app.kubernetes.io/instance: drone
annotations:
ignore-check.kube-linter.io/run-as-non-root: "Not yet implemented"
spec:
selector:
matchLabels:

View File

@ -9,6 +9,7 @@ metadata:
app.kubernetes.io/instance: element
annotations:
ignore-check.kube-linter.io/no-read-only-root-fs: "Element image requires write access for Nginx configuration"
ignore-check.kube-linter.io/run-as-non-root: "Not yet implemented"
spec:
selector:
matchLabels:

View File

@ -20,6 +20,10 @@ spec:
app.kubernetes.io/name: invidious
app.kubernetes.io/instance: invidious
spec:
securityContext:
runAsUser: 1000
runAsGroup: 1000
runAsNonRoot: true
initContainers:
- image: alpine/git:2.40.1
imagePullPolicy: IfNotPresent

View File

@ -7,6 +7,8 @@ metadata:
component: web
app.kubernetes.io/name: netflux-homepage
app.kubernetes.io/instance: netflux-homepage
annotations:
ignore-check.kube-linter.io/run-as-non-root: "Not yet implemented"
spec:
selector:
matchLabels:

View File

@ -7,6 +7,8 @@ metadata:
component: web
app.kubernetes.io/name: solar-toolkit-gateway
app.kubernetes.io/instance: solar-toolkit-gateway
annotations:
ignore-check.kube-linter.io/run-as-non-root: "Not yet implemented"
spec:
selector:
matchLabels:

View File

@ -21,6 +21,10 @@ spec:
app.kubernetes.io/name: radicale
app.kubernetes.io/instance: radicale
spec:
securityContext:
runAsUser: 2999
runAsGroup: 2999
runAsNonRoot: true
containers:
- name: radicale
image: tomsquest/docker-radicale:3.1.8.3