devolab-openshift/devolab-user-config/tshirt-quotas.yaml

35 lines
673 B
YAML

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