Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
Run as 1000
Browse files Browse the repository at this point in the history
Signed-off-by: Naseem <naseemkullah@gmail.com>
  • Loading branch information
naseemkullah committed Jun 17, 2019
1 parent 4cef518 commit 20db80f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions kibana/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ spec:
{{- end }}
containers:
- name: kibana
securityContext:
runAsNonRoot: true
runAsUser: 1000
image: "{{ .Values.image }}:{{ .Values.imageTag }}"
env:
{{- if .Values.elasticsearchURL }}
Expand All @@ -78,7 +81,7 @@ spec:
readinessProbe:
{{ toYaml .Values.readinessProbe | indent 10 }}
exec:
command:
command:
- sh
- -c
- |
Expand All @@ -93,7 +96,7 @@ spec:
curl -k "$@" "{{ .Values.protocol }}://localhost:{{ .Values.httpPort }}${path}"
}
http "{{ .Values.healthCheckPath }}"
ports:
- containerPort: {{ .Values.httpPort }}
Expand Down

0 comments on commit 20db80f

Please sign in to comment.