Add runAsNonRoot: true and allowPrivilegeEscalation: false to the specs

Signed-off-by: Volodymyr Zotov <volodymyr.zotov@gmail.com>
This commit is contained in:
Volodymyr Zotov
2023-02-28 15:59:17 -06:00
parent ea8773bfee
commit 702974f750
3 changed files with 10 additions and 0 deletions

View File

@@ -12,6 +12,8 @@ spec:
app: onepassword-connect app: onepassword-connect
version: "1.0.0" version: "1.0.0"
spec: spec:
securityContext:
runAsNonRoot: true
volumes: volumes:
- name: shared-data - name: shared-data
emptyDir: {} emptyDir: {}
@@ -32,6 +34,8 @@ spec:
containers: containers:
- name: connect-api - name: connect-api
image: 1password/connect-api:latest image: 1password/connect-api:latest
securityContext:
allowPrivilegeEscalation: false
resources: resources:
limits: limits:
memory: "128Mi" memory: "128Mi"
@@ -49,6 +53,8 @@ spec:
name: shared-data name: shared-data
- name: connect-sync - name: connect-sync
image: 1password/connect-sync:latest image: 1password/connect-sync:latest
securityContext:
allowPrivilegeEscalation: false
resources: resources:
limits: limits:
memory: "128Mi" memory: "128Mi"

View File

@@ -8,6 +8,8 @@ metadata:
spec: spec:
template: template:
spec: spec:
securityContext:
runAsNonRoot: true
containers: containers:
- name: kube-rbac-proxy - name: kube-rbac-proxy
securityContext: securityContext:

View File

@@ -6,6 +6,8 @@ metadata:
spec: spec:
template: template:
spec: spec:
securityContext:
runAsNonRoot: true
containers: containers:
- name: manager - name: manager
args: args: