From 698e380050b2d13d8d754e1e45e331dfef93eb8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Szamszur?= Date: Mon, 29 Jan 2024 12:01:32 +0100 Subject: [PATCH] buildbuddy-redis: allow specifying tolerations and nodeSelector (#80) Follow-up for PR #71 - change did not include buildbuddy-redis Chart. Also while at it, allowing specifying nodeSelector. --------- Co-authored-by: Son Luong Ngoc --- charts/buildbuddy-redis/Chart.yaml | 2 +- charts/buildbuddy-redis/templates/deployment.yaml | 8 ++++++++ charts/buildbuddy-redis/values.yaml | 14 ++++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/charts/buildbuddy-redis/Chart.yaml b/charts/buildbuddy-redis/Chart.yaml index b2dd3cc0..4bb71933 100644 --- a/charts/buildbuddy-redis/Chart.yaml +++ b/charts/buildbuddy-redis/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 description: BuildBuddy Redis LRU name: buildbuddy-redis -version: 0.0.10 # Chart version +version: 0.0.11 # Chart version appVersion: 5.0.4 # Version of deployed app keywords: - buildbuddy diff --git a/charts/buildbuddy-redis/templates/deployment.yaml b/charts/buildbuddy-redis/templates/deployment.yaml index 25579a26..fcc9740e 100644 --- a/charts/buildbuddy-redis/templates/deployment.yaml +++ b/charts/buildbuddy-redis/templates/deployment.yaml @@ -33,6 +33,14 @@ spec: {{- .Values.extraPodLabels | toYaml | nindent 8 }} {{- end }} spec: + {{- if .Values.nodeSelector}} + nodeSelector: + {{- toYaml .Values.nodeSelector | nindent 8 }} + {{- end }} + {{- if .Values.tolerations}} + tolerations: + {{- toYaml .Values.tolerations | nindent 8 }} + {{- end }} containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" diff --git a/charts/buildbuddy-redis/values.yaml b/charts/buildbuddy-redis/values.yaml index 62c4f8d1..a98efd98 100644 --- a/charts/buildbuddy-redis/values.yaml +++ b/charts/buildbuddy-redis/values.yaml @@ -14,6 +14,20 @@ image: ## Using multiple replicas with a sqlite3 database or disk storage is not supported. replicas: 1 +## The nodeSelector used for placing pods in separate node pools/groups +# nodeSelector: +# # GCP +# cloud.google.com/gke-nodepool: my-redis-pool +# # AWS +# eks.amazonaws.com/nodegroup: my-redis-pool + +## The taints to schedule pods on (useful for mixed architecture clusters) +# tolerations: +# - effect: NoSchedule +# key: hardware_requirements +# operator: Equal +# value: x86_64 + ## Maximum memory redis will use, should be less than the kubernetes resource limits below. maxMemory: "5gb"