File tree Expand file tree Collapse file tree 4 files changed +124
-0
lines changed
content/hi/examples/policy Expand file tree Collapse file tree 4 files changed +124
-0
lines changed Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ kind : ResourceQuota
3
+ metadata :
4
+ name : pods-cluster-services
5
+ spec :
6
+ scopeSelector :
7
+ matchExpressions :
8
+ - operator : In
9
+ scopeName : PriorityClass
10
+ values : ["cluster-services"]
Original file line number Diff line number Diff line change
1
+ apiVersion : policy/v1beta1
2
+ kind : PodSecurityPolicy
3
+ metadata :
4
+ name : privileged
5
+ annotations :
6
+ seccomp.security.alpha.kubernetes.io/allowedProfileNames : ' *'
7
+ spec :
8
+ privileged : true
9
+ allowPrivilegeEscalation : true
10
+ allowedCapabilities :
11
+ - ' *'
12
+ volumes :
13
+ - ' *'
14
+ hostNetwork : true
15
+ hostPorts :
16
+ - min : 0
17
+ max : 65535
18
+ hostIPC : true
19
+ hostPID : true
20
+ runAsUser :
21
+ rule : ' RunAsAny'
22
+ seLinux :
23
+ rule : ' RunAsAny'
24
+ supplementalGroups :
25
+ rule : ' RunAsAny'
26
+ fsGroup :
27
+ rule : ' RunAsAny'
Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ kind : List
3
+ items :
4
+ - apiVersion : v1
5
+ kind : ResourceQuota
6
+ metadata :
7
+ name : pvcs-gold
8
+ spec :
9
+ hard :
10
+ requests.storage : " 10Gi"
11
+ persistentvolumeclaims : " 10"
12
+ scopeSelector :
13
+ matchExpressions :
14
+ - operator : In
15
+ scopeName : VolumeAttributesClass
16
+ values : ["gold"]
17
+ - apiVersion : v1
18
+ kind : ResourceQuota
19
+ metadata :
20
+ name : pvcs-silver
21
+ spec :
22
+ hard :
23
+ requests.storage : " 20Gi"
24
+ persistentvolumeclaims : " 10"
25
+ scopeSelector :
26
+ matchExpressions :
27
+ - operator : In
28
+ scopeName : VolumeAttributesClass
29
+ values : ["silver"]
30
+ - apiVersion : v1
31
+ kind : ResourceQuota
32
+ metadata :
33
+ name : pvcs-copper
34
+ spec :
35
+ hard :
36
+ requests.storage : " 30Gi"
37
+ persistentvolumeclaims : " 10"
38
+ scopeSelector :
39
+ matchExpressions :
40
+ - operator : In
41
+ scopeName : VolumeAttributesClass
42
+ values : ["copper"]
Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ kind : List
3
+ items :
4
+ - apiVersion : v1
5
+ kind : ResourceQuota
6
+ metadata :
7
+ name : pods-high
8
+ spec :
9
+ hard :
10
+ cpu : " 1000"
11
+ memory : " 200Gi"
12
+ pods : " 10"
13
+ scopeSelector :
14
+ matchExpressions :
15
+ - operator : In
16
+ scopeName : PriorityClass
17
+ values : ["high"]
18
+ - apiVersion : v1
19
+ kind : ResourceQuota
20
+ metadata :
21
+ name : pods-medium
22
+ spec :
23
+ hard :
24
+ cpu : " 10"
25
+ memory : " 20Gi"
26
+ pods : " 10"
27
+ scopeSelector :
28
+ matchExpressions :
29
+ - operator : In
30
+ scopeName : PriorityClass
31
+ values : ["medium"]
32
+ - apiVersion : v1
33
+ kind : ResourceQuota
34
+ metadata :
35
+ name : pods-low
36
+ spec :
37
+ hard :
38
+ cpu : " 5"
39
+ memory : " 10Gi"
40
+ pods : " 10"
41
+ scopeSelector :
42
+ matchExpressions :
43
+ - operator : In
44
+ scopeName : PriorityClass
45
+ values : ["low"]
You can’t perform that action at this time.
0 commit comments