From 46af2d64bcbd1a5a829311bc31ac6abd93362417 Mon Sep 17 00:00:00 2001 From: cbbmiller <147663581+cbbmiller@users.noreply.github.com> Date: Mon, 10 Feb 2025 10:48:10 -0600 Subject: [PATCH] add tolerations to each pod --- charts/clearblade-iot-enterprise/Chart.yaml | 18 +++++++++--------- .../charts/cb-console/Chart.yaml | 2 +- .../templates/cb-console-deployment.yaml | 9 +++++++++ .../charts/cb-file-hosting/Chart.yaml | 2 +- .../templates/file-hosting-deployment.yaml | 9 +++++++++ .../charts/cb-haproxy/Chart.yaml | 2 +- .../templates/haproxy-statefulset.yaml | 9 +++++++++ .../charts/cb-ia/Chart.yaml | 2 +- .../cb-ia/templates/cb-ia-deployment.yaml | 9 +++++++++ .../charts/cb-iotcore/Chart.yaml | 2 +- .../templates/cb-iotcore-deployment.yaml | 9 +++++++++ .../charts/cb-postgres/Chart.yaml | 2 +- .../templates/postgres-statefulset.yaml | 9 +++++++++ .../charts/cb-redis/Chart.yaml | 2 +- .../cb-redis/templates/redis-deployment.yaml | 9 +++++++++ .../charts/clearblade/Chart.yaml | 2 +- .../templates/clearblade-statefulset.yaml | 18 ++++++++++++++++++ 17 files changed, 98 insertions(+), 17 deletions(-) diff --git a/charts/clearblade-iot-enterprise/Chart.yaml b/charts/clearblade-iot-enterprise/Chart.yaml index c786973..1298a4f 100644 --- a/charts/clearblade-iot-enterprise/Chart.yaml +++ b/charts/clearblade-iot-enterprise/Chart.yaml @@ -2,35 +2,35 @@ apiVersion: v2 name: clearblade-iot-enterprise description: ClearBlade IoT Enterprise type: application -version: 3.1.2 +version: 3.1.3 dependencies: - name: cb-postgres - version: 3.1.2 + version: 3.1.3 condition: cb-postgres.enabled repository: file://charts/cb-postgres - name: cb-haproxy - version: 3.1.2 + version: 3.1.3 condition: cb-haproxy.enabled repository: file://charts/cb-haproxy - name: clearblade - version: 3.1.2 + version: 3.1.3 repository: file://charts/clearblade - name: cb-console - version: 3.1.2 + version: 3.1.3 repository: file://charts/cb-console - name: cb-file-hosting - version: 3.1.2 + version: 3.1.3 repository: file://charts/cb-file-hosting - name: cb-redis - version: 3.1.2 + version: 3.1.3 condition: cb-redis.enabled repository: file://charts/cb-redis - name: cb-iotcore - version: 3.1.2 + version: 3.1.3 condition: global.iotCoreEnabled repository: file://charts/cb-iotcore - name: cb-ia - version: 3.1.2 + version: 3.1.3 condition: global.iaEnabled repository: file://charts/cb-ia diff --git a/charts/clearblade-iot-enterprise/charts/cb-console/Chart.yaml b/charts/clearblade-iot-enterprise/charts/cb-console/Chart.yaml index 82a2cf9..ef74eb3 100644 --- a/charts/clearblade-iot-enterprise/charts/cb-console/Chart.yaml +++ b/charts/clearblade-iot-enterprise/charts/cb-console/Chart.yaml @@ -2,4 +2,4 @@ apiVersion: v2 name: cb-console description: ClearBlade IoT Enterprise - ClearBlade Developer Console type: application -version: 3.1.2 +version: 3.1.3 diff --git a/charts/clearblade-iot-enterprise/charts/cb-console/templates/cb-console-deployment.yaml b/charts/clearblade-iot-enterprise/charts/cb-console/templates/cb-console-deployment.yaml index f9abd9b..d708528 100644 --- a/charts/clearblade-iot-enterprise/charts/cb-console/templates/cb-console-deployment.yaml +++ b/charts/clearblade-iot-enterprise/charts/cb-console/templates/cb-console-deployment.yaml @@ -20,6 +20,15 @@ spec: imagePullSecrets: - name: gcr-json-key {{- end }} + tolerations: + - key: node.kubernetes.io/not-ready + operator: Exists + effect: NoExecute + tolerationSeconds: 0 + - key: node.kubernetes.io/unreachable + operator: Exists + effect: NoExecute + tolerationSeconds: 0 containers: - name: cb-console image: "gcr.io/api-project-320446546234/cb_console:{{ .Values.global.enterpriseBlueVersion }}" diff --git a/charts/clearblade-iot-enterprise/charts/cb-file-hosting/Chart.yaml b/charts/clearblade-iot-enterprise/charts/cb-file-hosting/Chart.yaml index c0fef70..a19c8a5 100644 --- a/charts/clearblade-iot-enterprise/charts/cb-file-hosting/Chart.yaml +++ b/charts/clearblade-iot-enterprise/charts/cb-file-hosting/Chart.yaml @@ -2,4 +2,4 @@ apiVersion: v2 name: cb-file-hosting description: ClearBlade IoT Enterprise - File Hosting type: application -version: 3.1.2 +version: 3.1.3 diff --git a/charts/clearblade-iot-enterprise/charts/cb-file-hosting/templates/file-hosting-deployment.yaml b/charts/clearblade-iot-enterprise/charts/cb-file-hosting/templates/file-hosting-deployment.yaml index cab420f..4f84a21 100644 --- a/charts/clearblade-iot-enterprise/charts/cb-file-hosting/templates/file-hosting-deployment.yaml +++ b/charts/clearblade-iot-enterprise/charts/cb-file-hosting/templates/file-hosting-deployment.yaml @@ -20,6 +20,15 @@ spec: imagePullSecrets: - name: gcr-json-key {{- end }} + tolerations: + - key: node.kubernetes.io/not-ready + operator: Exists + effect: NoExecute + tolerationSeconds: 0 + - key: node.kubernetes.io/unreachable + operator: Exists + effect: NoExecute + tolerationSeconds: 0 containers: - name: cb-file-hosting image: "gcr.io/api-project-320446546234/file_hosting:{{ .Values.global.enterpriseBlueVersion }}" diff --git a/charts/clearblade-iot-enterprise/charts/cb-haproxy/Chart.yaml b/charts/clearblade-iot-enterprise/charts/cb-haproxy/Chart.yaml index dd5aea4..15c1761 100644 --- a/charts/clearblade-iot-enterprise/charts/cb-haproxy/Chart.yaml +++ b/charts/clearblade-iot-enterprise/charts/cb-haproxy/Chart.yaml @@ -2,4 +2,4 @@ apiVersion: v2 name: cb-haproxy description: ClearBlade IoT Enterprise - ClearBlade Load Balancer type: application -version: 3.1.2 +version: 3.1.3 diff --git a/charts/clearblade-iot-enterprise/charts/cb-haproxy/templates/haproxy-statefulset.yaml b/charts/clearblade-iot-enterprise/charts/cb-haproxy/templates/haproxy-statefulset.yaml index 7cd3026..00266d4 100644 --- a/charts/clearblade-iot-enterprise/charts/cb-haproxy/templates/haproxy-statefulset.yaml +++ b/charts/clearblade-iot-enterprise/charts/cb-haproxy/templates/haproxy-statefulset.yaml @@ -56,6 +56,15 @@ spec: imagePullSecrets: - name: gcr-json-key {{- end }} + tolerations: + - key: node.kubernetes.io/not-ready + operator: Exists + effect: NoExecute + tolerationSeconds: 0 + - key: node.kubernetes.io/unreachable + operator: Exists + effect: NoExecute + tolerationSeconds: 0 initContainers: - name: check-clearblade-readiness image: ellerbrock/alpine-bash-curl-ssl diff --git a/charts/clearblade-iot-enterprise/charts/cb-ia/Chart.yaml b/charts/clearblade-iot-enterprise/charts/cb-ia/Chart.yaml index 25b5a8a..b68eb5f 100644 --- a/charts/clearblade-iot-enterprise/charts/cb-ia/Chart.yaml +++ b/charts/clearblade-iot-enterprise/charts/cb-ia/Chart.yaml @@ -2,4 +2,4 @@ apiVersion: v2 name: cb-ia description: ClearBlade IoT Enterprise - Intelligent Assets sidecar type: application -version: 3.1.2 +version: 3.1.3 diff --git a/charts/clearblade-iot-enterprise/charts/cb-ia/templates/cb-ia-deployment.yaml b/charts/clearblade-iot-enterprise/charts/cb-ia/templates/cb-ia-deployment.yaml index e088ccd..66bf4f2 100644 --- a/charts/clearblade-iot-enterprise/charts/cb-ia/templates/cb-ia-deployment.yaml +++ b/charts/clearblade-iot-enterprise/charts/cb-ia/templates/cb-ia-deployment.yaml @@ -18,6 +18,15 @@ spec: imagePullSecrets: - name: gcr-json-key {{- end }} + tolerations: + - key: node.kubernetes.io/not-ready + operator: Exists + effect: NoExecute + tolerationSeconds: 0 + - key: node.kubernetes.io/unreachable + operator: Exists + effect: NoExecute + tolerationSeconds: 0 {{- if .Values.checkClearbladeReadiness }} initContainers: - name: check-clearblade-readiness diff --git a/charts/clearblade-iot-enterprise/charts/cb-iotcore/Chart.yaml b/charts/clearblade-iot-enterprise/charts/cb-iotcore/Chart.yaml index 9a867e2..e6ae62d 100644 --- a/charts/clearblade-iot-enterprise/charts/cb-iotcore/Chart.yaml +++ b/charts/clearblade-iot-enterprise/charts/cb-iotcore/Chart.yaml @@ -2,4 +2,4 @@ apiVersion: v2 name: cb-iotcore description: ClearBlade IoT Enterprise - IoT Core Sidecar type: application -version: 3.1.2 +version: 3.1.3 diff --git a/charts/clearblade-iot-enterprise/charts/cb-iotcore/templates/cb-iotcore-deployment.yaml b/charts/clearblade-iot-enterprise/charts/cb-iotcore/templates/cb-iotcore-deployment.yaml index 06f46b3..687d4fa 100644 --- a/charts/clearblade-iot-enterprise/charts/cb-iotcore/templates/cb-iotcore-deployment.yaml +++ b/charts/clearblade-iot-enterprise/charts/cb-iotcore/templates/cb-iotcore-deployment.yaml @@ -18,6 +18,15 @@ spec: imagePullSecrets: - name: gcr-json-key {{- end }} + tolerations: + - key: node.kubernetes.io/not-ready + operator: Exists + effect: NoExecute + tolerationSeconds: 0 + - key: node.kubernetes.io/unreachable + operator: Exists + effect: NoExecute + tolerationSeconds: 0 {{- if .Values.checkClearbladeReadiness }} initContainers: - name: check-clearblade-readiness diff --git a/charts/clearblade-iot-enterprise/charts/cb-postgres/Chart.yaml b/charts/clearblade-iot-enterprise/charts/cb-postgres/Chart.yaml index 265a824..3b2c9fa 100644 --- a/charts/clearblade-iot-enterprise/charts/cb-postgres/Chart.yaml +++ b/charts/clearblade-iot-enterprise/charts/cb-postgres/Chart.yaml @@ -2,4 +2,4 @@ apiVersion: v2 name: cb-postgres description: ClearBlade IoT Enterprise - Postgres type: application -version: 3.1.2 +version: 3.1.3 diff --git a/charts/clearblade-iot-enterprise/charts/cb-postgres/templates/postgres-statefulset.yaml b/charts/clearblade-iot-enterprise/charts/cb-postgres/templates/postgres-statefulset.yaml index f6213dc..876d241 100644 --- a/charts/clearblade-iot-enterprise/charts/cb-postgres/templates/postgres-statefulset.yaml +++ b/charts/clearblade-iot-enterprise/charts/cb-postgres/templates/postgres-statefulset.yaml @@ -26,6 +26,15 @@ spec: {{- end }} {{- if eq .Values.global.secretManager "gsm"}} serviceAccountName: {{ .Values.global.gcpGSMServiceAccount }} + tolerations: + - key: node.kubernetes.io/not-ready + operator: Exists + effect: NoExecute + tolerationSeconds: 0 + - key: node.kubernetes.io/unreachable + operator: Exists + effect: NoExecute + tolerationSeconds: 0 initContainers: - name: init image: google/cloud-sdk:slim diff --git a/charts/clearblade-iot-enterprise/charts/cb-redis/Chart.yaml b/charts/clearblade-iot-enterprise/charts/cb-redis/Chart.yaml index 9c6e3d3..edc8dd7 100644 --- a/charts/clearblade-iot-enterprise/charts/cb-redis/Chart.yaml +++ b/charts/clearblade-iot-enterprise/charts/cb-redis/Chart.yaml @@ -2,4 +2,4 @@ apiVersion: v2 name: cb-redis description: ClearBlade IoT Enterprise - Redis type: application -version: 3.1.2 +version: 3.1.3 diff --git a/charts/clearblade-iot-enterprise/charts/cb-redis/templates/redis-deployment.yaml b/charts/clearblade-iot-enterprise/charts/cb-redis/templates/redis-deployment.yaml index bb29d72..af23ab4 100644 --- a/charts/clearblade-iot-enterprise/charts/cb-redis/templates/redis-deployment.yaml +++ b/charts/clearblade-iot-enterprise/charts/cb-redis/templates/redis-deployment.yaml @@ -21,6 +21,15 @@ spec: - name: redis-config configMap: name: redis-config + tolerations: + - key: node.kubernetes.io/not-ready + operator: Exists + effect: NoExecute + tolerationSeconds: 0 + - key: node.kubernetes.io/unreachable + operator: Exists + effect: NoExecute + tolerationSeconds: 0 containers: - name: cb-redis image: "{{ .Values.image }}:{{ .Values.imageTag }}" diff --git a/charts/clearblade-iot-enterprise/charts/clearblade/Chart.yaml b/charts/clearblade-iot-enterprise/charts/clearblade/Chart.yaml index 64afa9c..e355bcb 100644 --- a/charts/clearblade-iot-enterprise/charts/clearblade/Chart.yaml +++ b/charts/clearblade-iot-enterprise/charts/clearblade/Chart.yaml @@ -2,4 +2,4 @@ apiVersion: v2 name: clearblade description: ClearBlade IoT Enterprise - ClearBlade Node type: application -version: 3.1.2 +version: 3.1.3 diff --git a/charts/clearblade-iot-enterprise/charts/clearblade/templates/clearblade-statefulset.yaml b/charts/clearblade-iot-enterprise/charts/clearblade/templates/clearblade-statefulset.yaml index 1b3d703..098d154 100644 --- a/charts/clearblade-iot-enterprise/charts/clearblade/templates/clearblade-statefulset.yaml +++ b/charts/clearblade-iot-enterprise/charts/clearblade/templates/clearblade-statefulset.yaml @@ -26,6 +26,15 @@ spec: imagePullSecrets: - name: gcr-json-key {{- end }} + tolerations: + - key: node.kubernetes.io/not-ready + operator: Exists + effect: NoExecute + tolerationSeconds: 0 + - key: node.kubernetes.io/unreachable + operator: Exists + effect: NoExecute + tolerationSeconds: 0 initContainers: {{- if not .Values.global.gcpCloudSQLEnabled }} - name: check-postgres-readiness @@ -234,6 +243,15 @@ spec: imagePullSecrets: - name: gcr-json-key {{- end }} + tolerations: + - key: node.kubernetes.io/not-ready + operator: Exists + effect: NoExecute + tolerationSeconds: 0 + - key: node.kubernetes.io/unreachable + operator: Exists + effect: NoExecute + tolerationSeconds: 0 initContainers: {{- if not .Values.global.gcpCloudSQLEnabled }} - name: check-postgres-readiness