Merge "Proxy: Add pod/container security context"
This commit is contained in:
commit
46dffa8b12
|
@ -39,6 +39,7 @@ spec:
|
||||||
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
|
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
|
||||||
scheduler.alpha.kubernetes.io/critical-pod: ''
|
scheduler.alpha.kubernetes.io/critical-pod: ''
|
||||||
spec:
|
spec:
|
||||||
|
{{ dict "envAll" $envAll "application" "proxy" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }}
|
||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
shareProcessNamespace: true
|
shareProcessNamespace: true
|
||||||
dnsPolicy: Default
|
dnsPolicy: Default
|
||||||
|
@ -63,8 +64,7 @@ spec:
|
||||||
- --v={{ .Values.proxy.logging.log_level }}
|
- --v={{ .Values.proxy.logging.log_level }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{ tuple $envAll $envAll.Values.pod.resources.proxy | include "helm-toolkit.snippets.kubernetes_resources" | indent 8 }}
|
{{ tuple $envAll $envAll.Values.pod.resources.proxy | include "helm-toolkit.snippets.kubernetes_resources" | indent 8 }}
|
||||||
securityContext:
|
{{ dict "envAll" $envAll "application" "proxy" "container" "proxy" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 8 }}
|
||||||
privileged: true
|
|
||||||
env:
|
env:
|
||||||
- name: KUBERNETES_SERVICE_HOST
|
- name: KUBERNETES_SERVICE_HOST
|
||||||
value: {{ .Values.kube_service.host }}
|
value: {{ .Values.kube_service.host }}
|
||||||
|
|
|
@ -18,6 +18,15 @@ manifests:
|
||||||
rbac: true
|
rbac: true
|
||||||
|
|
||||||
pod:
|
pod:
|
||||||
|
security_context:
|
||||||
|
proxy:
|
||||||
|
pod:
|
||||||
|
runAsUser: 65534
|
||||||
|
container:
|
||||||
|
proxy:
|
||||||
|
runAsUser: 0
|
||||||
|
privileged: true
|
||||||
|
readOnlyRootFilesystem: false
|
||||||
lifecycle:
|
lifecycle:
|
||||||
upgrades:
|
upgrades:
|
||||||
daemonsets:
|
daemonsets:
|
||||||
|
|
Loading…
Reference in New Issue