Skip to content

Instantly share code, notes, and snippets.

@abhioncbr
Created April 18, 2020 20:48
Show Gist options
  • Save abhioncbr/fb59e22239fe5ed79eb3f978538ef4d0 to your computer and use it in GitHub Desktop.
Save abhioncbr/fb59e22239fe5ed79eb3f978538ef4d0 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: List
items:
- apiVersion: v1
kind: ResourceQuota
metadata:
name: pods-high
spec:
hard:
cpu: "1000"
memory: 200Gi
pods: "10"
scopeSelector:
matchExpressions:
- operator : In
scopeName: PriorityClass
values: ["high"]
- apiVersion: v1
kind: ResourceQuota
metadata:
name: pods-medium
spec:
hard:
cpu: "10"
memory: 20Gi
pods: "10"
scopeSelector:
matchExpressions:
- operator : In
scopeName: PriorityClass
values: ["medium"]
- apiVersion: v1
kind: ResourceQuota
metadata:
name: pods-low
spec:
hard:
cpu: "5"
memory: 10Gi
pods: "10"
scopeSelector:
matchExpressions:
- operator : In
scopeName: PriorityClass
values: ["low"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment