Skip to content

Commit

Permalink
Add ResourceQuota for critical pods
Browse files Browse the repository at this point in the history
Fixes insufficient quota error on GKE

Signed-off-by: Stefan Prodan <[email protected]>
  • Loading branch information
stefanprodan committed May 12, 2023
1 parent a7153a0 commit 3ba81a9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions manifests/rbac/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ resources:
- reconciler.yaml
- edit.yaml
- view.yaml
- resourcequota.yaml
14 changes: 14 additions & 0 deletions manifests/rbac/resourcequota.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: v1
kind: ResourceQuota
metadata:
name: critical-pods
spec:
hard:
pods: "1000"
scopeSelector:
matchExpressions:
- operator: In
scopeName: PriorityClass
values:
- system-node-critical
- system-cluster-critical

0 comments on commit 3ba81a9

Please sign in to comment.