Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #33 from viceice/patch-1
Browse files Browse the repository at this point in the history
feat: support nodeSelector
  • Loading branch information
Antiarchitect authored Oct 26, 2021
2 parents 63778ff + bfeb598 commit a2cc830
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion keydb/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: keydb
description: A Helm chart for KeyDB multimaster setup
type: application
version: 0.25.2
version: 0.26.0
keywords:
- keydb
- redis
Expand Down
1 change: 1 addition & 0 deletions keydb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ The following table lists the configurable parameters of the KeyDB chart and the
| `annotations` | KeyDB StatefulSet annotations | `{}` |
| `podAnnotations` | KeyDB pods annotations | `{}` |
| `tolerations` | KeyDB tolerations setting | `{}` |
| `nodeSelector` | KeyDB nodeSelector setting | `{}` |
| `additionalAffinities` | Additional affinities for StatefulSet | `{}` |
| `extraInitContainers` | Additional init containers for StatefulSet | `[]` |
| `extraContainers` | Additional sidecar containers for StatefulSet | `[]` |
Expand Down
4 changes: 4 additions & 0 deletions keydb/templates/sts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ spec:
tolerations:
{{- toYaml .Values.tolerations | nindent 8 }}
{{- end }}
{{- if .Values.nodeSelector }}
nodeSelector:
{{- toYaml .Values.nodeSelector | nindent 8 }}
{{- end }}
volumes:
- name: utils
secret:
Expand Down
3 changes: 3 additions & 0 deletions keydb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ tolerations: {}
# key: key
# operator: Equal
# value: value

nodeSelector: {}
# topology.kubernetes.io/region: some-region

additionalAffinities: {}
# nodeAffinity:
Expand Down

0 comments on commit a2cc830

Please sign in to comment.