Run as Non Root (#149)

This commit is contained in:
LucasBoisserie
2020-07-10 17:34:49 +02:00
committed by GitHub
parent 17f702f510
commit 87130f06bc
4 changed files with 13 additions and 0 deletions
+3
View File
@@ -5,4 +5,7 @@ RUN apk add --update --no-cache ca-certificates
COPY Reloader /bin/Reloader
# On alpine 'nobody' has uid 65534
USER 65534
ENTRYPOINT ["/bin/Reloader"]
@@ -32,6 +32,10 @@ reloader:
# operator: "Exists"
affinity: {}
securityContext:
runAsNonRoot: true
runAsUser: 65534
# A list of tolerations to be applied to the Deployment.
# Example:
# tolerations:
@@ -39,4 +39,7 @@ spec:
name: reloader-reloader
args:
serviceAccountName: reloader-reloader
securityContext:
runAsNonRoot: true
runAsUser: 65534
+3
View File
@@ -106,6 +106,9 @@ spec:
name: reloader-reloader
args:
serviceAccountName: reloader-reloader
securityContext:
runAsNonRoot: true
runAsUser: 65534
---
# Source: reloader/templates/role.yaml