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"