added security context

This commit is contained in:
ston1th 2020-02-01 17:35:13 +01:00
commit 7f3747e6ef
2 changed files with 7 additions and 2 deletions

View file

@ -13,7 +13,7 @@ spec:
allowPrivilegeEscalation: false
requiredDropCapabilities: ["ALL"]
readOnlyRootFilesystem: true
volumes: ["secret"]
volumes: ["configMap", "secret"]
hostNetwork: false
hostIPC: false
hostPID: false

View file

@ -20,10 +20,15 @@ spec:
containers:
- name: webhook-interceptor
image: git.giftfish.de/ston1th/webhook-interceptor
imagePullPolicy: Always
securityContext:
runAsUser: 1000
runAsGroup: 1000
capabilities:
drop: ["ALL"]
resources:
requests:
cpu: 100m
memory: 128Mi
imagePullPolicy: Always
ports:
- containerPort: 8080