Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#1240 from jcpunk/pss-restricted
Browse files Browse the repository at this point in the history
Permit running under PodSecurity restricted
  • Loading branch information
k8s-ci-robot authored Apr 11, 2023
2 parents c1fbc9e + 2d8d46c commit 4c8cd70
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions charts/metrics-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ securityContext:
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1000
seccompProfile:
type: RuntimeDefault
capabilities:
drop:
- ALL

priorityClassName: system-cluster-critical

Expand Down
5 changes: 5 additions & 0 deletions manifests/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ spec:
runAsNonRoot: true
runAsUser: 1000
allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault
capabilities:
drop:
- ALL
volumeMounts:
- name: tmp-dir
mountPath: /tmp
Expand Down

0 comments on commit 4c8cd70

Please sign in to comment.