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-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }}
|
||||||
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }}
|
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }}
|
||||||
spec:
|
spec:
|
||||||
|
{{ dict "envAll" $envAll "application" "ranger" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }}
|
||||||
serviceAccountName: {{ $serviceAccountName }}
|
serviceAccountName: {{ $serviceAccountName }}
|
||||||
dnsPolicy: ClusterFirstWithHostNet
|
dnsPolicy: ClusterFirstWithHostNet
|
||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
|
@ -55,8 +56,7 @@ spec:
|
||||||
image: {{ .Values.images.tags.ranger }}
|
image: {{ .Values.images.tags.ranger }}
|
||||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
imagePullPolicy: {{ .Values.images.pull_policy }}
|
||||||
{{ tuple $envAll $envAll.Values.pod.resources.ranger | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
{{ tuple $envAll $envAll.Values.pod.resources.ranger | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
||||||
securityContext:
|
{{ dict "envAll" $envAll "application" "ranger" "container" "ranger_services" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 10 }}
|
||||||
runAsUser: {{ .Values.pod.user.ranger.uid }}
|
|
||||||
env:
|
env:
|
||||||
- name: USER
|
- name: USER
|
||||||
valueFrom:
|
valueFrom:
|
||||||
|
|
|
@ -75,9 +75,14 @@ dependencies:
|
||||||
endpoint: internal
|
endpoint: internal
|
||||||
|
|
||||||
pod:
|
pod:
|
||||||
user:
|
security_context:
|
||||||
ranger:
|
ranger:
|
||||||
uid: 1000
|
pod:
|
||||||
|
runAsUser: 1000
|
||||||
|
container:
|
||||||
|
ranger_services:
|
||||||
|
readOnlyRootFilesystem: false
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
affinity:
|
affinity:
|
||||||
anti:
|
anti:
|
||||||
type:
|
type:
|
||||||
|
|
Loading…
Reference in New Issue