mirror of
https://github.com/optim-enterprises-bv/openstack-helm-infra.git
synced 2026-01-10 17:31:32 +00:00
Merge "Add missing security-context for elasticsearch-data and elasticsearch-master"
This commit is contained in:
@@ -69,8 +69,7 @@ spec:
|
||||
- name: elasticsearch-perms
|
||||
{{ tuple $envAll "elasticsearch" | include "helm-toolkit.snippets.image" | indent 10 }}
|
||||
{{ tuple $envAll $envAll.Values.pod.resources.prometheus | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
||||
securityContext:
|
||||
runAsUser: 0
|
||||
{{ dict "envAll" $envAll "application" "data" "container" "elasticsearch_perms" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 10 }}
|
||||
command:
|
||||
- chown
|
||||
- -R
|
||||
|
||||
@@ -68,8 +68,7 @@ spec:
|
||||
- name: elasticsearch-perms
|
||||
{{ tuple $envAll "elasticsearch" | include "helm-toolkit.snippets.image" | indent 10 }}
|
||||
{{ tuple $envAll $envAll.Values.pod.resources.prometheus | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
||||
securityContext:
|
||||
runAsUser: 0
|
||||
{{ dict "envAll" $envAll "application" "master" "container" "elasticsearch_perms" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 10 }}
|
||||
command:
|
||||
- chown
|
||||
- -R
|
||||
|
||||
@@ -185,6 +185,8 @@ pod:
|
||||
memory_map_increase:
|
||||
privileged: true
|
||||
readOnlyRootFilesystem: true
|
||||
elasticsearch_perms:
|
||||
readOnlyRootFilesystem: true
|
||||
elasticsearch_master:
|
||||
privileged: true
|
||||
capabilities:
|
||||
@@ -217,6 +219,8 @@ pod:
|
||||
memory_map_increase:
|
||||
privileged: true
|
||||
readOnlyRootFilesystem: true
|
||||
elasticsearch_perms:
|
||||
readOnlyRootFilesystem: true
|
||||
elasticsearch_data:
|
||||
privileged: true
|
||||
capabilities:
|
||||
|
||||
Reference in New Issue
Block a user