*: Use non-root

This commit is contained in:
Frederic Branczyk
2018-01-22 14:42:15 +01:00
parent 6afb6bce43
commit 546a2e6ac6
6 changed files with 32 additions and 4 deletions

View File

@@ -9,9 +9,12 @@ spec:
labels:
app: grafana
spec:
securityContext:
runAsNonRoot: true
runAsUser: 65534
containers:
- name: grafana
image: grafana/grafana:4.6.3
image: quay.io/coreos/monitoring-grafana:4.6.3-non-root
env:
- name: GF_AUTH_BASIC_ENABLED
value: "true"
@@ -29,7 +32,7 @@ spec:
key: password
volumeMounts:
- name: grafana-storage
mountPath: /var/grafana-storage
mountPath: /data
ports:
- name: web
containerPort: 3000

View File

@@ -14,6 +14,9 @@ spec:
name: node-exporter
spec:
serviceAccountName: node-exporter
securityContext:
runAsNonRoot: true
runAsUser: 65534
hostNetwork: true
hostPID: true
containers: