Skip to content

Commit

Permalink
fix(prometheus): add missing container security context in server sta…
Browse files Browse the repository at this point in the history
…tefulset (#3585)

Signed-off-by: spiarh <[email protected]>
Co-authored-by: Chip Zoller <[email protected]>
Co-authored-by: Thomas Nguyen <[email protected]>
  • Loading branch information
3 people authored Sep 27, 2024
1 parent 7af7e61 commit 99777d0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cost-analyzer/templates/prometheus-server-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@ spec:
port: 9090
initialDelaySeconds: {{ .Values.prometheus.server.livenessProbeInitialDelay }}
timeoutSeconds: {{ .Values.prometheus.server.livenessProbeTimeout }}
securityContext:
{{- if .Values.prometheus.server.containerSecurityContext }}
{{- toYaml .Values.prometheus.server.containerSecurityContext | nindent 12 }}
{{- else }}
{{- toYaml .Values.global.containerSecurityContext | nindent 12 }}
{{- end }}
resources:
{{ toYaml .Values.prometheus.server.resources | indent 12 }}
volumeMounts:
Expand Down

0 comments on commit 99777d0

Please sign in to comment.