Merge "Elasticsearch: Add security context for exporter pod/container"
This commit is contained in:
commit
5347636108
@ -39,6 +39,7 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
{{ tuple $envAll "elasticsearch" "exporter" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
{{ tuple $envAll "elasticsearch" "exporter" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
||||||
spec:
|
spec:
|
||||||
|
{{ dict "envAll" $envAll "application" "elasticsearch_exporter" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }}
|
||||||
serviceAccountName: {{ $serviceAccountName }}
|
serviceAccountName: {{ $serviceAccountName }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{ .Values.labels.elasticsearch.node_selector_key }}: {{ .Values.labels.elasticsearch.node_selector_value | quote }}
|
{{ .Values.labels.elasticsearch.node_selector_key }}: {{ .Values.labels.elasticsearch.node_selector_value | quote }}
|
||||||
@ -49,6 +50,8 @@ spec:
|
|||||||
- name: elasticsearch-exporter
|
- name: elasticsearch-exporter
|
||||||
{{ tuple $envAll "prometheus_elasticsearch_exporter" | include "helm-toolkit.snippets.image" | indent 10 }}
|
{{ 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 }}
|
{{ tuple $envAll $envAll.Values.pod.resources.exporter | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
||||||
|
securityContext:
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
command:
|
command:
|
||||||
- /tmp/elasticsearch-exporter.sh
|
- /tmp/elasticsearch-exporter.sh
|
||||||
- start
|
- start
|
||||||
|
@ -98,6 +98,9 @@ dependencies:
|
|||||||
service: elasticsearch
|
service: elasticsearch
|
||||||
|
|
||||||
pod:
|
pod:
|
||||||
|
user:
|
||||||
|
elasticsearch_exporter:
|
||||||
|
uid: 99
|
||||||
affinity:
|
affinity:
|
||||||
anti:
|
anti:
|
||||||
type:
|
type:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user