Add "node-role.kubernetes.io/control-plane" toleration

Harbor pods were not getting scheduled on K8s v1.28.4
due to untolerated taint 'node-role.kubernetes.io/control-plane'.
This change adds this toleration to the harbor pods.

TestPlan:
PASS: build-pkgs && build-image
PASS: AIO-SX: application apply/upload/remove/delete
PASS: Standard: Harbor pods are deployed on both the
      controllers.
PASS: Standard: verify if toleration
      'node-role.kubernetes.io/control-plane' is
	  added to pods

Story: 2010721
Task: 50069

Change-Id: I7c5567522b2fb5888a7aeda7a6d53eca60bf5a8d
Signed-off-by: Jagatguru Prasad Mishra <jagatguruprasad.mishra@windriver.com>
This commit is contained in:
Jagatguru Prasad Mishra 2024-05-10 02:37:22 -04:00
parent 2f6f8a46d4
commit af54905c4a
5 changed files with 160 additions and 4 deletions

View File

@ -1,4 +1,4 @@
harbor-helm (1.12-1) unstable; urgency=medium
harbor-helm (1.12-2) unstable; urgency=medium
* Initial release.

View File

@ -0,0 +1,156 @@
From 2970bb86d37ebf938faa7e365bb8f2e8b8bafe5c Mon Sep 17 00:00:00 2001
From: Jagatguru Prasad Mishra <jagatguruprasad.mishra@windriver.com>
Date: Wed, 8 May 2024 08:42:33 -0400
Subject: [PATCH 1/1] adding control-plane toleration to the pods
---
values.yaml | 70 ++++++++++++++++++++++++++++++++++++++---------------
1 file changed, 50 insertions(+), 20 deletions(-)
diff --git a/values.yaml b/values.yaml
index aef6abf..8e89cee 100644
--- a/values.yaml
+++ b/values.yaml
@@ -415,8 +415,11 @@ nginx:
nodeSelector: {}
tolerations:
- key: node-role.kubernetes.io/master
- operator: Exists
- effect: NoSchedule
+ operator: Exists
+ effect: NoSchedule
+ - key: node-role.kubernetes.io/control-plane
+ operator: Exists
+ effect: NoSchedule
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
@@ -446,8 +449,11 @@ portal:
nodeSelector: {}
tolerations:
- key: node-role.kubernetes.io/master
- operator: Exists
- effect: NoSchedule
+ operator: Exists
+ effect: NoSchedule
+ - key: node-role.kubernetes.io/control-plane
+ operator: Exists
+ effect: NoSchedule
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
@@ -481,8 +487,11 @@ core:
nodeSelector: {}
tolerations:
- key: node-role.kubernetes.io/master
- operator: Exists
- effect: NoSchedule
+ operator: Exists
+ effect: NoSchedule
+ - key: node-role.kubernetes.io/control-plane
+ operator: Exists
+ effect: NoSchedule
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
@@ -556,8 +565,11 @@ jobservice:
nodeSelector: {}
tolerations:
- key: node-role.kubernetes.io/master
- operator: Exists
- effect: NoSchedule
+ operator: Exists
+ effect: NoSchedule
+ - key: node-role.kubernetes.io/control-plane
+ operator: Exists
+ effect: NoSchedule
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
@@ -601,8 +613,11 @@ registry:
nodeSelector: {}
tolerations:
- key: node-role.kubernetes.io/master
- operator: Exists
- effect: NoSchedule
+ operator: Exists
+ effect: NoSchedule
+ - key: node-role.kubernetes.io/control-plane
+ operator: Exists
+ effect: NoSchedule
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
@@ -717,8 +732,11 @@ trivy:
nodeSelector: {}
tolerations:
- key: node-role.kubernetes.io/master
- operator: Exists
- effect: NoSchedule
+ operator: Exists
+ effect: NoSchedule
+ - key: node-role.kubernetes.io/control-plane
+ operator: Exists
+ effect: NoSchedule
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
@@ -749,8 +767,11 @@ notary:
nodeSelector: {}
tolerations:
- key: node-role.kubernetes.io/master
- operator: Exists
- effect: NoSchedule
+ operator: Exists
+ effect: NoSchedule
+ - key: node-role.kubernetes.io/control-plane
+ operator: Exists
+ effect: NoSchedule
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
@@ -780,8 +801,11 @@ notary:
nodeSelector: {}
tolerations:
- key: node-role.kubernetes.io/master
- operator: Exists
- effect: NoSchedule
+ operator: Exists
+ effect: NoSchedule
+ - key: node-role.kubernetes.io/control-plane
+ operator: Exists
+ effect: NoSchedule
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
@@ -832,8 +856,11 @@ database:
nodeSelector: {}
tolerations:
- key: node-role.kubernetes.io/master
- operator: Exists
- effect: NoSchedule
+ operator: Exists
+ effect: NoSchedule
+ - key: node-role.kubernetes.io/control-plane
+ operator: Exists
+ effect: NoSchedule
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
@@ -901,8 +928,11 @@ redis:
nodeSelector: {}
tolerations:
- key: node-role.kubernetes.io/master
- operator: Exists
- effect: NoSchedule
+ operator: Exists
+ effect: NoSchedule
+ - key: node-role.kubernetes.io/control-plane
+ operator: Exists
+ effect: NoSchedule
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
--
2.25.1

View File

@ -1 +1,2 @@
0001-AddNodeAffinityToPods.patch
0002-adding-control-plane-toleration-to-the-pods.patch

View File

@ -1,6 +1,6 @@
---
debname: harbor-helm
debver: 1.12-1
debver: 1.12-2
dl_path:
name: harbor-1.12.0.tar.gz
url: https://github.com/goharbor/harbor-helm/archive/refs/tags/v1.12.0.tar.gz
@ -9,7 +9,7 @@ src_files:
- harbor-helm/files/Makefile
revision:
dist: $STX_DIST
stx_patch: 0
stx_patch: 1
GITREVCOUNT:
SRC_DIR: ${MY_REPO}/stx/app-harbor/helm-charts/upstream/harbor-helm
BASE_SRCREV: e097b7cfda6e1258151c9143f274bebec31335c9

View File

@ -3,7 +3,6 @@ Section: libs
Priority: optional
Maintainer: StarlingX Developers <starlingx-discuss@lists.starlingx.io>
Build-Depends: debhelper-compat (= 13),
helm,
harbor-helm,
python3-k8sapp-harbor-wheels,
build-info