ResourceQuota
ResourceQuota — practical walkthrough with examples.
Use kubectl create quota with --dry-run=client -o yaml to generate a ResourceQuota manifest without applying it. This is useful for reviewing or customizing the quota before creating it in the cluster.
1
2
3
4
5
6
7
8
9
10
11
12
kubectl create quota myrq --hard=cpu=1,memory=1G,pods=2 -o yaml --dry-run=client
apiVersion: v1
kind: ResourceQuota
metadata:
creationTimestamp: null
name: myrq
spec:
hard:
cpu: "1"
memory: 1G
pods: "2"
status: {}
This post is licensed under CC BY 4.0 by the author.