diff --git a/deploy/deployment.yaml b/deploy/deployment.yaml index 10a2264..1f1463f 100644 --- a/deploy/deployment.yaml +++ b/deploy/deployment.yaml @@ -40,3 +40,7 @@ spec: requests: cpu: 50m memory: 50Mi + securityContext: + readOnlyRootFilesystem: true + runAsNonRoot: true + runAsUser: 1000 diff --git a/deploy/redis-deployment.yaml b/deploy/redis-deployment.yaml index e7ac873..89b9fde 100644 --- a/deploy/redis-deployment.yaml +++ b/deploy/redis-deployment.yaml @@ -1,4 +1,4 @@ -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: labels: @@ -32,3 +32,7 @@ spec: requests: cpu: 50m memory: 50Mi + securityContext: + readOnlyRootFilesystem: true + runAsNonRoot: true + runAsUser: 1000