Merge "Memcached securityContext"
This commit is contained in:
commit
6a1a46a8ce
@ -59,6 +59,7 @@ spec:
|
|||||||
- name: memcached
|
- name: memcached
|
||||||
{{ tuple $envAll "memcached" | include "helm-toolkit.snippets.image" | indent 10 }}
|
{{ tuple $envAll "memcached" | include "helm-toolkit.snippets.image" | indent 10 }}
|
||||||
{{ tuple $envAll $envAll.Values.pod.resources.server | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
{{ tuple $envAll $envAll.Values.pod.resources.server | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
||||||
|
{{ dict "envAll" $envAll "application" "server" "container" "memcached" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 10 }}
|
||||||
env:
|
env:
|
||||||
- name: MEMCACHED_PORT
|
- name: MEMCACHED_PORT
|
||||||
value: {{ tuple "oslo_cache" "internal" "memcache" . | include "helm-toolkit.endpoints.endpoint_port_lookup" | quote }}
|
value: {{ tuple "oslo_cache" "internal" "memcache" . | include "helm-toolkit.endpoints.endpoint_port_lookup" | quote }}
|
||||||
|
@ -53,8 +53,7 @@ spec:
|
|||||||
image: {{ .Values.images.tags.prometheus_memcached_exporter }}
|
image: {{ .Values.images.tags.prometheus_memcached_exporter }}
|
||||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
imagePullPolicy: {{ .Values.images.pull_policy }}
|
||||||
{{ tuple $envAll $envAll.Values.pod.resources.prometheus_memcached_exporter | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
{{ tuple $envAll $envAll.Values.pod.resources.prometheus_memcached_exporter | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
||||||
securityContext:
|
{{ dict "envAll" $envAll "application" "memcached_exporter" "container" "memcached_exporter" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 10 }}
|
||||||
allowPrivilegeEscalation: false
|
|
||||||
command:
|
command:
|
||||||
- /tmp/memcached-exporter.sh
|
- /tmp/memcached-exporter.sh
|
||||||
- start
|
- start
|
||||||
|
@ -144,13 +144,19 @@ manifests:
|
|||||||
service_exporter: true
|
service_exporter: true
|
||||||
|
|
||||||
pod:
|
pod:
|
||||||
user:
|
security_context:
|
||||||
memcached_exporter:
|
memcached_exporter:
|
||||||
uid: 65534
|
pod:
|
||||||
server:
|
runAsUser: 65534
|
||||||
uid: 65534
|
container:
|
||||||
securityContext:
|
memcached_exporter:
|
||||||
|
readOnlyRootFilesystem: true
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
server:
|
server:
|
||||||
|
pod:
|
||||||
|
runAsUser: 65534
|
||||||
|
container:
|
||||||
|
memcached:
|
||||||
readOnlyRootFilesystem: true
|
readOnlyRootFilesystem: true
|
||||||
affinity:
|
affinity:
|
||||||
anti:
|
anti:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user