From d1cdbf2682c9bbde984628aef3b1d2783206f556 Mon Sep 17 00:00:00 2001 From: Dustin Falgout Date: Wed, 14 Dec 2022 18:47:55 -0600 Subject: [PATCH] fix: add tolerations to cloud-server and database pods so they aren't immediatly evicted from nodes that have resource taints. --- charts/cloud-server/Chart.yaml | 2 +- charts/cloud-server/templates/cloud-server.yml | 7 +++++++ charts/percona-xtradb-cluster-operator/Chart.yaml | 2 +- .../templates/03-operator.yml | 7 +++++++ 4 files changed, 16 insertions(+), 2 deletions(-) diff --git a/charts/cloud-server/Chart.yaml b/charts/cloud-server/Chart.yaml index 97f31c5..848c130 100644 --- a/charts/cloud-server/Chart.yaml +++ b/charts/cloud-server/Chart.yaml @@ -5,4 +5,4 @@ maintainers: - email: dustin@elegantthemes.com name: Elegant Themes name: cloud-server -version: 1.0.6 +version: 1.0.7 diff --git a/charts/cloud-server/templates/cloud-server.yml b/charts/cloud-server/templates/cloud-server.yml index 1604723..daa41c6 100644 --- a/charts/cloud-server/templates/cloud-server.yml +++ b/charts/cloud-server/templates/cloud-server.yml @@ -139,6 +139,13 @@ spec: - name: config mountPath: /config readOnly: true + tolerations: + - key: node.kubernetes.io/disk-pressure + operator: Exists + - key: node.kubernetes.io/memory-pressure + operator: Exists + - key: node.kubernetes.io/pid-pressure + operator: Exists volumes: - name: wordpress hostPath: diff --git a/charts/percona-xtradb-cluster-operator/Chart.yaml b/charts/percona-xtradb-cluster-operator/Chart.yaml index 8b69138..1892594 100644 --- a/charts/percona-xtradb-cluster-operator/Chart.yaml +++ b/charts/percona-xtradb-cluster-operator/Chart.yaml @@ -14,7 +14,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. -version: 1.10.2 +version: 1.10.3 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. diff --git a/charts/percona-xtradb-cluster-operator/templates/03-operator.yml b/charts/percona-xtradb-cluster-operator/templates/03-operator.yml index 82eafa1..521807f 100644 --- a/charts/percona-xtradb-cluster-operator/templates/03-operator.yml +++ b/charts/percona-xtradb-cluster-operator/templates/03-operator.yml @@ -63,3 +63,10 @@ spec: name: metrics protocol: TCP serviceAccountName: percona-xtradb-cluster-operator + tolerations: + - key: node.kubernetes.io/disk-pressure + operator: Exists + - key: node.kubernetes.io/memory-pressure + operator: Exists + - key: node.kubernetes.io/pid-pressure + operator: Exists