Skip to content

Commit

Permalink
[kube-state-metrics] set parameters for podsecurity restricted
Browse files Browse the repository at this point in the history
In theory this fixes the bug introduced in
prometheus-community#3194

Signed-off-by: Pat Riehecky <riehecky@fnal.gov>
  • Loading branch information
jcpunk committed Apr 14, 2023
1 parent 8b445e4 commit 53daae8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/kube-state-metrics/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ keywords:
- prometheus
- kubernetes
type: application
version: 5.4.2
version: 5.5.0
appVersion: 2.8.2
home: https://github.com/kubernetes/kube-state-metrics/
sources:
Expand Down
9 changes: 8 additions & 1 deletion charts/kube-state-metrics/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,18 @@ securityContext:
runAsGroup: 65534
runAsUser: 65534
fsGroup: 65534
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault

## Specify security settings for a Container
## Allows overrides and additional options compared to (Pod) securityContext
## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
containerSecurityContext: {}
containerSecurityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL

## Node labels for pod assignment
## Ref: https://kubernetes.io/docs/user-guide/node-selection/
Expand Down

0 comments on commit 53daae8

Please sign in to comment.