Ranger: Add pod/container security context
This updates the Ranger chart to include the pod security context on the pod template when I set to true It is going into crashloopbackoff Change-Id: I00304483de5109e75860bde826ed18370610e286
This commit is contained in:
parent
0d1d2417ea
commit
58a73f7364
@ -40,6 +40,7 @@ spec:
|
||||
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }}
|
||||
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }}
|
||||
spec:
|
||||
{{ dict "envAll" $envAll "application" "ranger" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }}
|
||||
serviceAccountName: {{ $serviceAccountName }}
|
||||
dnsPolicy: ClusterFirstWithHostNet
|
||||
hostNetwork: true
|
||||
@ -55,8 +56,7 @@ spec:
|
||||
image: {{ .Values.images.tags.ranger }}
|
||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
||||
{{ tuple $envAll $envAll.Values.pod.resources.ranger | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
||||
securityContext:
|
||||
runAsUser: {{ .Values.pod.user.ranger.uid }}
|
||||
{{ dict "envAll" $envAll "application" "ranger" "container" "ranger_services" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 10 }}
|
||||
env:
|
||||
- name: USER
|
||||
valueFrom:
|
||||
|
@ -75,9 +75,14 @@ dependencies:
|
||||
endpoint: internal
|
||||
|
||||
pod:
|
||||
user:
|
||||
security_context:
|
||||
ranger:
|
||||
uid: 1000
|
||||
pod:
|
||||
runAsUser: 1000
|
||||
container:
|
||||
ranger_services:
|
||||
readOnlyRootFilesystem: false
|
||||
allowPrivilegeEscalation: false
|
||||
affinity:
|
||||
anti:
|
||||
type:
|
||||
|
Loading…
Reference in New Issue
Block a user