Skip to content

Commit

Permalink
feat: add securityContext for o11y.prometheus (#290)
Browse files Browse the repository at this point in the history
Co-authored-by: Kent Dong <ch3cho@qq.com>
  • Loading branch information
OnlyPiglet and CH3CHO committed Feb 26, 2024
1 parent eeccc86 commit feced8e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions helm/templates/prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ spec:
memory: {{ $config.resources.limits.memory }}
restartPolicy: Always
serviceAccountName: {{ $appName }}
securityContext:
{{- toYaml .Values.o11y.prometheus.securityContext | nindent 8 }}
volumes:
- name: data
persistentVolumeClaim:
Expand Down
4 changes: 2 additions & 2 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@ o11y:
limits:
cpu: 500m
memory: 2Gi

securityContext: {}
pvc:
rwxSupported: true
rwxSupported: true

0 comments on commit feced8e

Please sign in to comment.