diff --git a/kibana/templates/deployment.yaml b/kibana/templates/deployment.yaml index 52a473d67..46b113c3b 100644 --- a/kibana/templates/deployment.yaml +++ b/kibana/templates/deployment.yaml @@ -63,6 +63,9 @@ spec: {{- end }} containers: - name: kibana + securityContext: + runAsNonRoot: true + runAsUser: 1000 image: "{{ .Values.image }}:{{ .Values.imageTag }}" env: {{- if .Values.elasticsearchURL }} @@ -78,7 +81,7 @@ spec: readinessProbe: {{ toYaml .Values.readinessProbe | indent 10 }} exec: - command: + command: - sh - -c - | @@ -93,7 +96,7 @@ spec: curl -k "$@" "{{ .Values.protocol }}://localhost:{{ .Values.httpPort }}${path}" } - + http "{{ .Values.healthCheckPath }}" ports: - containerPort: {{ .Values.httpPort }}