Skip to content

Commit

Permalink
updated security policies
Browse files Browse the repository at this point in the history
  • Loading branch information
shuffmintel committed Jul 26, 2023
1 parent 840a4b0 commit e8b5425
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ spec:
{{- include "mintel_common.imagePullSecrets" $ | nindent 6 }}
securityContext:
runAsUser: 1000
runAsNonRoot: true
serviceAccountName: {{ $.Values.serviceAccount.name | default (include "mintel_common.fullname" $)}}
restartPolicy: "Never"
containers:
Expand All @@ -44,6 +45,13 @@ spec:
requests:
cpu: 100m
memory: 32Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsNonRoot: true
runAsUser: 1000
volumeMounts:
- name: config-volume
mountPath: /etc/config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ adds correct config to configmap:
requests:
cpu: 100m
memory: 32Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsNonRoot: true
runAsUser: 1000
volumeMounts:
- mountPath: /etc/config
name: config-volume
Expand All @@ -47,6 +54,7 @@ adds correct config to configmap:
- name: image-pull-docker-hub
restartPolicy: Never
securityContext:
runAsNonRoot: true
runAsUser: 1000
serviceAccountName: test-app
volumes:
Expand Down Expand Up @@ -119,6 +127,13 @@ extraUsers adds job and configmap:
requests:
cpu: 100m
memory: 32Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsNonRoot: true
runAsUser: 1000
volumeMounts:
- mountPath: /etc/config
name: config-volume
Expand All @@ -127,6 +142,7 @@ extraUsers adds job and configmap:
- name: image-pull-docker-hub
restartPolicy: Never
securityContext:
runAsNonRoot: true
runAsUser: 1000
serviceAccountName: test-app
volumes:
Expand Down

0 comments on commit e8b5425

Please sign in to comment.