From 20db80f2bb576be1bf7530189f0f38bc164e9dc2 Mon Sep 17 00:00:00 2001 From: Naseem Date: Mon, 17 Jun 2019 18:52:27 -0400 Subject: [PATCH] Run as 1000 Signed-off-by: Naseem --- kibana/templates/deployment.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 }}