From 2aa38baa35e0320e6c4a1eafd6cfd5f6bac48806 Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Fri, 12 May 2023 09:20:21 +0300 Subject: [PATCH] Add ResourceQuota for critical pods Fixes insufficient quota error on GKE Signed-off-by: Stefan Prodan --- manifests/rbac/kustomization.yaml | 1 + manifests/rbac/resourcequota.yaml | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 manifests/rbac/resourcequota.yaml diff --git a/manifests/rbac/kustomization.yaml b/manifests/rbac/kustomization.yaml index cd0afef0..4e708ef2 100644 --- a/manifests/rbac/kustomization.yaml +++ b/manifests/rbac/kustomization.yaml @@ -5,3 +5,4 @@ resources: - reconciler.yaml - edit.yaml - view.yaml + - resourcequota.yaml diff --git a/manifests/rbac/resourcequota.yaml b/manifests/rbac/resourcequota.yaml new file mode 100644 index 00000000..51739c70 --- /dev/null +++ b/manifests/rbac/resourcequota.yaml @@ -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