diff --git a/jsonnet/kube-prometheus/components/blackbox-exporter.libsonnet b/jsonnet/kube-prometheus/components/blackbox-exporter.libsonnet index 3129a4dc..2db244c4 100644 --- a/jsonnet/kube-prometheus/components/blackbox-exporter.libsonnet +++ b/jsonnet/kube-prometheus/components/blackbox-exporter.libsonnet @@ -183,6 +183,7 @@ function(params) { } else { runAsNonRoot: true, runAsUser: 65534, + runAsGroup: 65534, allowPrivilegeEscalation: false, readOnlyRootFilesystem: true, capabilities: { drop: ['ALL'] }, @@ -205,6 +206,7 @@ function(params) { securityContext: { runAsNonRoot: true, runAsUser: 65534, + runAsGroup: 65534, allowPrivilegeEscalation: false, readOnlyRootFilesystem: true, capabilities: { drop: ['ALL'] }, diff --git a/manifests/blackboxExporter-deployment.yaml b/manifests/blackboxExporter-deployment.yaml index a5137130..10fbcce1 100644 --- a/manifests/blackboxExporter-deployment.yaml +++ b/manifests/blackboxExporter-deployment.yaml @@ -48,6 +48,7 @@ spec: drop: - ALL readOnlyRootFilesystem: true + runAsGroup: 65534 runAsNonRoot: true runAsUser: 65534 volumeMounts: @@ -72,6 +73,7 @@ spec: drop: - ALL readOnlyRootFilesystem: true + runAsGroup: 65534 runAsNonRoot: true runAsUser: 65534 terminationMessagePath: /dev/termination-log