added security context
This commit is contained in:
parent
fd760cc061
commit
7f3747e6ef
2 changed files with 7 additions and 2 deletions
|
|
@ -13,7 +13,7 @@ spec:
|
|||
allowPrivilegeEscalation: false
|
||||
requiredDropCapabilities: ["ALL"]
|
||||
readOnlyRootFilesystem: true
|
||||
volumes: ["secret"]
|
||||
volumes: ["configMap", "secret"]
|
||||
hostNetwork: false
|
||||
hostIPC: false
|
||||
hostPID: false
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue