Skip to content

Commit

Permalink
buildbuddy-redis: allow specifying tolerations and nodeSelector (#80)
Browse files Browse the repository at this point in the history
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 <son@buildbuddy.io>
  • Loading branch information
rszamszur and sluongng authored Jan 29, 2024
1 parent c1106bd commit 698e380
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/buildbuddy-redis/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 8 additions & 0 deletions charts/buildbuddy-redis/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down
14 changes: 14 additions & 0 deletions charts/buildbuddy-redis/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 698e380

Please sign in to comment.