Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Commit

Permalink
#184 add Pod securityContext
Browse files Browse the repository at this point in the history
  • Loading branch information
hjacobs committed Dec 11, 2018
1 parent a942e64 commit 68dc334
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions deploy/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,7 @@ spec:
requests:
cpu: 50m
memory: 50Mi
securityContext:
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1000
6 changes: 5 additions & 1 deletion deploy/redis-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
Expand Down Expand Up @@ -32,3 +32,7 @@ spec:
requests:
cpu: 50m
memory: 50Mi
securityContext:
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1000

0 comments on commit 68dc334

Please sign in to comment.