mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
PodSecurity: add resource quota for clusters that limit cluster-critical by default
This commit is contained in:
parent
a356c32797
commit
09e9ba99ab
@ -0,0 +1,14 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ResourceQuota
|
||||||
|
metadata:
|
||||||
|
name: pod-security-webhook
|
||||||
|
namespace: pod-security-webhook
|
||||||
|
spec:
|
||||||
|
hard:
|
||||||
|
pods: 3
|
||||||
|
scopeSelector:
|
||||||
|
matchExpressions:
|
||||||
|
- operator: In
|
||||||
|
scopeName: PriorityClass
|
||||||
|
values:
|
||||||
|
- system-cluster-critical
|
@ -2,6 +2,7 @@ resources:
|
|||||||
- 10-namespace.yaml
|
- 10-namespace.yaml
|
||||||
- 20-configmap.yaml
|
- 20-configmap.yaml
|
||||||
- 20-serviceaccount.yaml
|
- 20-serviceaccount.yaml
|
||||||
|
- 20-resourcequota.yaml
|
||||||
- 30-clusterrole.yaml
|
- 30-clusterrole.yaml
|
||||||
- 40-clusterrolebinding.yaml
|
- 40-clusterrolebinding.yaml
|
||||||
- 50-deployment.yaml
|
- 50-deployment.yaml
|
||||||
|
Loading…
Reference in New Issue
Block a user