Skip to content

Commit

Permalink
Add securityContext
Browse files Browse the repository at this point in the history
Related to kontena#33, but
setting user also works without moficiations of Dockerfile
  • Loading branch information
SimonDreher committed Oct 26, 2020
1 parent aa9bd1f commit 6635a71
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions deploy/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ spec:
limits:
cpu: 100m
memory: 64Mi
securityContext:
runAsUser: 1001
runAsNonRoot: true
privileged: false
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop: ["all"]
env:
- name: WATCH_NAMESPACE
value: ""
Expand Down

0 comments on commit 6635a71

Please sign in to comment.