Default quotas for namespace-configuration-controller

This commit is contained in:
Cedric Girard 2019-01-11 15:01:44 +01:00
parent b9d87c2546
commit 7aeae55153

35
tshirt-quotas.yaml Normal file
View file

@ -0,0 +1,35 @@
apiVersion: namespaceconfig.raffaelespazzoli.systems/v1alpha1
kind: NamespaceConfig
metadata:
name: small-size
spec:
selector:
matchLabels:
size: small
quotas:
- apiVersion: v1
kind: ResourceQuota
metadata:
name: small-size
spec:
hard:
requests.cpu: "1"
requests.memory: "1Gi"
---
apiVersion: namespaceconfig.raffaelespazzoli.systems/v1alpha1
kind: NamespaceConfig
metadata:
name: medium-size
spec:
selector:
matchLabels:
size: medium
quotas:
- apiVersion: v1
kind: ResourceQuota
metadata:
name: medium-size
spec:
hard:
requests.cpu: "2"
requests.memory: "2Gi"