Skip to content

Commit

Permalink
fix: security context to allow disk writes (#73)
Browse files Browse the repository at this point in the history
current settings did not allow prometheus to write files. the folder was created correctly under /data but it then failed with missing write permissions
  • Loading branch information
viennaa authored Apr 26, 2024
1 parent 577948f commit 755db57
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion kube-monitoring/charts/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ maintainers:
name: kube-monitoring
sources:
- https://github.com/cloudoperators/greenhouse-extensions
version: 0.6.5
version: 0.6.6
# prometheus-operator app version
appVersion: v0.71.2
keywords:
Expand Down
9 changes: 9 additions & 0 deletions kube-monitoring/charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,15 @@ kubeMonitoring:
matchLabels:
pluginconfig: "{{ $.Release.Name }}"

## securityContext for pod-level security attributes
securityContext:
# runAsGroup: 2000
# runAsNonRoot: true
runAsUser: 0 # 1000
fsGroup: 0 # 2000
# seccompProfile:
# type: RuntimeDefault

alerts:
enabled: false
alertmanagers:
Expand Down

0 comments on commit 755db57

Please sign in to comment.