From eb5bd572ca1b36abfbf7700aacc6cfd34bb0b219 Mon Sep 17 00:00:00 2001 From: Josh Date: Mon, 16 Jul 2018 02:23:05 +1000 Subject: [PATCH] gcloud-sqlproxy: add tolerations and affinity to the Deployment (#6495) * added tolerations and affinity to the deployment * Update Chart.yaml * Update values.yaml Signed-off-by: Jakob Niggel --- stable/gcloud-sqlproxy/Chart.yaml | 2 +- stable/gcloud-sqlproxy/templates/deployment.yaml | 6 +++++- stable/gcloud-sqlproxy/values.yaml | 6 ++++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/stable/gcloud-sqlproxy/Chart.yaml b/stable/gcloud-sqlproxy/Chart.yaml index 6bdac6beab7b..b32e357af76d 100644 --- a/stable/gcloud-sqlproxy/Chart.yaml +++ b/stable/gcloud-sqlproxy/Chart.yaml @@ -1,5 +1,5 @@ name: gcloud-sqlproxy -version: 0.3.6 +version: 0.4.0 appVersion: 1.11 description: Google Cloud SQL Proxy keywords: diff --git a/stable/gcloud-sqlproxy/templates/deployment.yaml b/stable/gcloud-sqlproxy/templates/deployment.yaml index 5cdb3565e1d7..5eb51b555e90 100644 --- a/stable/gcloud-sqlproxy/templates/deployment.yaml +++ b/stable/gcloud-sqlproxy/templates/deployment.yaml @@ -50,5 +50,9 @@ spec: - name: cloudsql emptyDir: {} nodeSelector: -{{ toYaml .Values.nodeSelector | indent 8 }} +{{ toYaml .Values.nodeSelector | indent 8 }} + affinity: +{{ toYaml .Values.affinity | indent 8 }} + tolerations: +{{ toYaml .Values.tolerations | indent 8 }} {{- end }} diff --git a/stable/gcloud-sqlproxy/values.yaml b/stable/gcloud-sqlproxy/values.yaml index 1b0d6d441ec6..dcf7af01069b 100644 --- a/stable/gcloud-sqlproxy/values.yaml +++ b/stable/gcloud-sqlproxy/values.yaml @@ -65,3 +65,9 @@ resources: ## Node selector nodeSelector: {} + +## Tolerations +tolerations: [] + +## Affinity +affinity: {}