diff --git a/helm/templates/prometheus.yaml b/helm/templates/prometheus.yaml index 0364e5ac..0479b81c 100644 --- a/helm/templates/prometheus.yaml +++ b/helm/templates/prometheus.yaml @@ -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: diff --git a/helm/values.yaml b/helm/values.yaml index 40ab9005..176f11e3 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -80,6 +80,6 @@ o11y: limits: cpu: 500m memory: 2Gi - + securityContext: {} pvc: - rwxSupported: true + rwxSupported: true \ No newline at end of file