From 412059e33c48d5011236681336c5a2e2d90659ba Mon Sep 17 00:00:00 2001 From: Hukumraj Singh Deora Date: Fri, 11 Oct 2024 23:38:48 +0200 Subject: [PATCH 1/2] feat: Add Priority Class to SKR Webhook Pod --- skr-webhook/resources.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/skr-webhook/resources.yaml b/skr-webhook/resources.yaml index 96cf073472..e27748d742 100644 --- a/skr-webhook/resources.yaml +++ b/skr-webhook/resources.yaml @@ -49,6 +49,14 @@ spec: targetPort: metrics-port name: http-metrics --- +apiVersion: scheduling.k8s.io/v1 +kind: PriorityClass +metadata: + name: skr-webhook-high-priority +value: 1000000000 +globalDefault: false +description: "This priority class is used for skr-webhook to ensure reconciliation, even with high workload." +--- apiVersion: apps/v1 kind: Deployment metadata: @@ -120,3 +128,4 @@ spec: path: tls.crt - key: ca.crt path: ca.crt + priorityClassName: skr-webhook-high-priority From d243a7d58cf7ccd7e2389ec93f336835050fc9d1 Mon Sep 17 00:00:00 2001 From: Raj <54686422+LeelaChacha@users.noreply.github.com> Date: Mon, 14 Oct 2024 09:29:15 +0200 Subject: [PATCH 2/2] refactor: priority class name Co-authored-by: Benjamin Lindner <50365642+lindnerby@users.noreply.github.com> --- skr-webhook/resources.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skr-webhook/resources.yaml b/skr-webhook/resources.yaml index e27748d742..ed6e7e9c65 100644 --- a/skr-webhook/resources.yaml +++ b/skr-webhook/resources.yaml @@ -52,7 +52,7 @@ spec: apiVersion: scheduling.k8s.io/v1 kind: PriorityClass metadata: - name: skr-webhook-high-priority + name: skr-webhook-priority value: 1000000000 globalDefault: false description: "This priority class is used for skr-webhook to ensure reconciliation, even with high workload." @@ -128,4 +128,4 @@ spec: path: tls.crt - key: ca.crt path: ca.crt - priorityClassName: skr-webhook-high-priority + priorityClassName: skr-webhook-priority