From 7aeae55153ca662b2050689042128743b981023f Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Fri, 11 Jan 2019 15:01:44 +0100 Subject: [PATCH] Default quotas for namespace-configuration-controller --- tshirt-quotas.yaml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 tshirt-quotas.yaml diff --git a/tshirt-quotas.yaml b/tshirt-quotas.yaml new file mode 100644 index 0000000..21b279d --- /dev/null +++ b/tshirt-quotas.yaml @@ -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"