Merge pull request #1366 from dod-ccpo/disable-pod-escalation
Disable container privilege escalation.
This commit is contained in:
commit
5d8ee82a31
@ -29,6 +29,8 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: atst
|
- name: atst
|
||||||
image: $CONTAINER_IMAGE
|
image: $CONTAINER_IMAGE
|
||||||
|
securityContext:
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
env:
|
env:
|
||||||
- name: UWSGI_PROCESSES
|
- name: UWSGI_PROCESSES
|
||||||
value: "2"
|
value: "2"
|
||||||
@ -64,6 +66,8 @@ spec:
|
|||||||
cpu: 940m
|
cpu: 940m
|
||||||
- name: nginx
|
- name: nginx
|
||||||
image: nginx:alpine
|
image: nginx:alpine
|
||||||
|
securityContext:
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8342
|
- containerPort: 8342
|
||||||
name: main-upgrade
|
name: main-upgrade
|
||||||
@ -189,6 +193,8 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: atst-worker
|
- name: atst-worker
|
||||||
image: $CONTAINER_IMAGE
|
image: $CONTAINER_IMAGE
|
||||||
|
securityContext:
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
args:
|
args:
|
||||||
[
|
[
|
||||||
"/opt/atat/atst/.venv/bin/python",
|
"/opt/atat/atst/.venv/bin/python",
|
||||||
@ -261,6 +267,8 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: atst-beat
|
- name: atst-beat
|
||||||
image: $CONTAINER_IMAGE
|
image: $CONTAINER_IMAGE
|
||||||
|
securityContext:
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
args:
|
args:
|
||||||
[
|
[
|
||||||
"/opt/atat/atst/.venv/bin/python",
|
"/opt/atat/atst/.venv/bin/python",
|
||||||
|
@ -20,6 +20,8 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: crls
|
- name: crls
|
||||||
image: $CONTAINER_IMAGE
|
image: $CONTAINER_IMAGE
|
||||||
|
securityContext:
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
command: [
|
command: [
|
||||||
"/bin/sh", "-c"
|
"/bin/sh", "-c"
|
||||||
]
|
]
|
||||||
|
@ -16,6 +16,8 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: migration
|
- name: migration
|
||||||
image: $CONTAINER_IMAGE
|
image: $CONTAINER_IMAGE
|
||||||
|
securityContext:
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
command: [
|
command: [
|
||||||
"/bin/sh", "-c"
|
"/bin/sh", "-c"
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user