kubernetes-yaml/description/Strategy/ResourceQuotas/example-list.yml

70 lines
1.6 KiB
YAML
Raw Normal View History

2023-12-15 16:39:01 +08:00
apiVersion: v1
kind: List
items:
- apiVersion: v1
kind: ResourceQuota
metadata:
name: resource-quota-example-list-high
namespace: demo
spec:
hard:
cpu: '128'
memory: 512Gi
requests.storage: 1Ti
persistentvolumeclaims: '1000'
resourcequotas: '100'
configmaps: '1000'
secrets: '1000'
services: '100'
pods: '1000'
scopeSelector:
matchExpressions:
- scopeName: PriorityClass
operator: In
values:
- high
- apiVersion: v1
kind: ResourceQuota
metadata:
name: resource-quota-example-list-medium
namespace: demo
spec:
hard:
cpu: '64'
memory: 256Gi
requests.storage: 1Ti
persistentvolumeclaims: '500'
resourcequotas: '100'
configmaps: '500'
secrets: '500'
services: '50'
pods: '500'
scopeSelector:
matchExpressions:
- scopeName: PriorityClass
operator: In
values:
- medium
- apiVersion: v1
kind: ResourceQuota
metadata:
name: resource-quota-example-list-low
namespace: demo
spec:
hard:
cpu: '32'
memory: 128Gi
requests.storage: 1Ti
persistentvolumeclaims: '100'
resourcequotas: '10'
configmaps: '50'
secrets: '50'
services: '10'
pods: '50'
scopeSelector:
matchExpressions:
- scopeName: PriorityClass
operator: In
values:
- low