Skip to content

Commit

Permalink
Merge pull request #2427 from philipgough/ci-fix-ksm
Browse files Browse the repository at this point in the history
ci: Add runAsGroup for kube-state-metrics
  • Loading branch information
kakkoyun committed May 24, 2024
2 parents 01c0e7d + 387731a commit 1c54cb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ function(params) (import 'github.com/kubernetes/kube-state-metrics/jsonnet/kube-
ports:: null,
livenessProbe:: null,
readinessProbe:: null,
securityContext+: {
runAsGroup: 65534,
},
args: ['--host=127.0.0.1', '--port=8081', '--telemetry-host=127.0.0.1', '--telemetry-port=8082'],
resources: ksm._config.resources,
}, super.containers) + [kubeRbacProxyMain, kubeRbacProxySelf],
Expand Down
1 change: 1 addition & 0 deletions manifests/kubeStateMetrics-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ spec:
drop:
- ALL
readOnlyRootFilesystem: true
runAsGroup: 65534
runAsNonRoot: true
runAsUser: 65534
seccompProfile:
Expand Down

0 comments on commit 1c54cb2

Please sign in to comment.