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 2572d5b7b6533860f47ec7745bc9aa9802e82469..84f327320cc0187d78fd8e4afd25eba1ca1d8e24 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: