Merge "elasticsearch-exporter: Add security context for exporter pod/container"
This commit is contained in:
commit
2abcc6d8b4
@ -52,8 +52,7 @@ spec:
|
||||
- name: elasticsearch-exporter
|
||||
{{ tuple $envAll "prometheus_elasticsearch_exporter" | include "helm-toolkit.snippets.image" | indent 10 }}
|
||||
{{ tuple $envAll $envAll.Values.pod.resources.exporter | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
{{ dict "envAll" $envAll "application" "elasticsearch_exporter" "container" "elasticsearch_exporter" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 10 }}
|
||||
command:
|
||||
- /tmp/elasticsearch-exporter.sh
|
||||
- start
|
||||
|
@ -116,9 +116,14 @@ pod:
|
||||
elasticsearch-data: localhost/docker-default
|
||||
elasticsearch-client:
|
||||
elasticsearch-client: localhost/docker-default
|
||||
user:
|
||||
security_context:
|
||||
elasticsearch_exporter:
|
||||
uid: 99
|
||||
pod:
|
||||
runAsUser: 99
|
||||
container:
|
||||
elasticsearch_exporter:
|
||||
allowPrivilegeEscalation: false
|
||||
readOnlyRootFilesystem: true
|
||||
affinity:
|
||||
anti:
|
||||
type:
|
||||
|
Loading…
Reference in New Issue
Block a user