feat: requests and limit policies (#2095)

* chore: save progress

Signed-off-by: Oliver Baehler <oliver@sudo-i.net>

* feat: requests and limit policies

Signed-off-by: Oliver Baehler <oliver@sudo-i.net>

* feat: requests and limit policies

Signed-off-by: Oliver Baehler <oliver@sudo-i.net>

* feat: requests and limit policies

Signed-off-by: Oliver Baehler <oliver@sudo-i.net>

* feat: requests and limit policies

Signed-off-by: Oliver Baehler <oliver@sudo-i.net>

* feat: requests and limit policies

Signed-off-by: Oliver Baehler <oliver@sudo-i.net>

* feat: requests and limit policies

Signed-off-by: Oliver Baehler <oliver@sudo-i.net>

* feat: requests and limit policies

Signed-off-by: Oliver Baehler <oliver@sudo-i.net>

* feat: requests and limit policies

Signed-off-by: Oliver Baehler <oliver@sudo-i.net>

* feat: requests and limit policies

Signed-off-by: Oliver Baehler <oliver@sudo-i.net>

---------

Signed-off-by: Oliver Baehler <oliver@sudo-i.net>
This commit is contained in:
Oliver Bähler
2026-08-21 14:31:06 +02:00
committed by GitHub
parent 88217e9562
commit 65a4e19e02
57 changed files with 5627 additions and 265 deletions
@@ -11,7 +11,7 @@ spec:
capsule.clastix.io/tenant: green
quota:
hard:
limits.cpu: "8"
limits.cpu: "0"
limits.memory: 16Gi
requests.cpu: "8"
requests.memory: 16Gi
@@ -6,8 +6,8 @@ metadata:
spec:
quota:
hard:
limits.cpu: "2"
limits.memory: 2Gi
limits.cpu: "0"
requests.cpu: "2"
requests.memory: 2Gi
requests.storage: "5Gi"
@@ -8,8 +8,8 @@ metadata:
spec:
quota:
hard:
limits.cpu: "2"
limits.memory: 2Gi
limits.cpu: "0"
requests.cpu: "2"
requests.memory: 2Gi
requests.storage: "5Gi"
+10
View File
@@ -20,6 +20,16 @@ spec:
- enforce:
action: allow
metadata:
- apiGroups:
- "v1"
kinds:
- "Namespace"
labels:
projectcapsule.dev/backup:
managed: "true"
annotations:
storagelocationtype:
managed: "s3"
- kinds:
- Pod
annotations:
+13 -5
View File
@@ -17,16 +17,24 @@ spec:
- matchLabels:
team: devops
rules:
- namespaceSelector:
matchLabels:
company.example/tier: application
quota:
# Enforce Resource-Allocation to best-practices
- quota:
- name: billable-compute
hard:
requests.cpu: "8"
requests.memory: 16Gi
limits.cpu: "8"
limits.cpu: "0"
limits.memory: 16Gi
requests.storage: "5Gi"
enforce:
action: deny
workloads:
resources:
limits:
cpu:
policy: Remove
memory:
policy: MatchRequest
- permissions:
bindings:
- clusterRoleName: 'view'