diff --git a/jsonnet/kube-prometheus/components/prometheus-operator.libsonnet b/jsonnet/kube-prometheus/components/prometheus-operator.libsonnet index 5c0c96c69c930d4a9a1ad7f29d3c3be94541cf16..104d76a8bad6117dd00fdcfaa73d8ddf6d6d156f 100644 --- a/jsonnet/kube-prometheus/components/prometheus-operator.libsonnet +++ b/jsonnet/kube-prometheus/components/prometheus-operator.libsonnet @@ -163,6 +163,9 @@ function(params) template+: { spec+: { automountServiceAccountToken: true, + securityContext+: { + runAsGroup: 65534, + }, containers+: [kubeRbacProxy], }, }, diff --git a/manifests/prometheusOperator-deployment.yaml b/manifests/prometheusOperator-deployment.yaml index 9b164f6aaa9e45b9d00c7ed382e139b853e22576..8e240b52e7e4f42529cc1bcf5d04c202ebda724c 100644 --- a/manifests/prometheusOperator-deployment.yaml +++ b/manifests/prometheusOperator-deployment.yaml @@ -81,6 +81,7 @@ spec: nodeSelector: kubernetes.io/os: linux securityContext: + runAsGroup: 65534 runAsNonRoot: true runAsUser: 65534 seccompProfile: