Skip to content

Commit

Permalink
feat: add pod toleration in aerospike
Browse files Browse the repository at this point in the history
Signed-off-by: surajgour-d11 <[email protected]>
  • Loading branch information
surajgour-d11 committed Dec 11, 2023
1 parent c46d188 commit 4323e6d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/aerospike/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: aerospike
description: Aerospike helm chart
version: 1.0.0
version: 1.1.0
appVersion: "5.6.0.15"
keywords:
- aerospike
Expand Down
3 changes: 3 additions & 0 deletions charts/aerospike/templates/statefulset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ spec:
{{- end }}
{{- end }}
spec:
{{- if .Values.tolerations }}
tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.tolerations "context" $) | nindent 8 }}
{{- end }}
nodeSelector: {{- include "common.tplvalues.render" (dict "value" .Values.nodeSelector "context" $) | nindent 8 }}
{{- include "aerospike.imagePullSecrets" . | nindent 6 }}
serviceAccountName: {{ template "aerospike.serviceAccountName" . }}
Expand Down
11 changes: 11 additions & 0 deletions charts/aerospike/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,17 @@ replicaCount: 1
##
nodeSelector: {}

## @param tolerations Toleration for pod
## For example:
## tolerations:
## - key: "key1"
## operator: "Equal"
## value: "value1"
## effect: "NoSchedule"
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
##
tolerations: []

## @param updateStrategy.type updateStrategy for Aerospike statefulset
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
##
Expand Down

0 comments on commit 4323e6d

Please sign in to comment.