Skip to content

Instantly share code, notes, and snippets.

@2vcps
Last active August 7, 2018 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 2vcps/d0fba9495975c29896b98531b04badfd to your computer and use it in GitHub Desktop.
Save 2vcps/d0fba9495975c29896b98531b04badfd to your computer and use it in GitHub Desktop.
Storage Quotas for K8s
apiVersion: v1
kind: Namespace
metadata:
name: development
labels:
name: development
apiVersion: v1
kind: ResourceQuota
metadata:
name: quota
spec:
hard:
cpu: "20"
memory: 1Gi
pods: "10"
replicationcontrollers: "20"
resourcequotas: "1"
services: "5"
apiVersion: v1
kind: ResourceQuota
metadata:
name: storagequota
spec:
hard:
persistentvolumeclaims: "10"
requests.storage: "100Gi"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment