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
|
allowPrivilegeEscalation: false
|
||||||
requiredDropCapabilities: ["ALL"]
|
requiredDropCapabilities: ["ALL"]
|
||||||
readOnlyRootFilesystem: true
|
readOnlyRootFilesystem: true
|
||||||
volumes: ["secret"]
|
volumes: ["configMap", "secret"]
|
||||||
hostNetwork: false
|
hostNetwork: false
|
||||||
hostIPC: false
|
hostIPC: false
|
||||||
hostPID: false
|
hostPID: false
|
||||||
|
|
|
||||||
|
|
@ -20,10 +20,15 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
- name: webhook-interceptor
|
- name: webhook-interceptor
|
||||||
image: git.giftfish.de/ston1th/webhook-interceptor
|
image: git.giftfish.de/ston1th/webhook-interceptor
|
||||||
|
imagePullPolicy: Always
|
||||||
|
securityContext:
|
||||||
|
runAsUser: 1000
|
||||||
|
runAsGroup: 1000
|
||||||
|
capabilities:
|
||||||
|
drop: ["ALL"]
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
memory: 128Mi
|
memory: 128Mi
|
||||||
imagePullPolicy: Always
|
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue