Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add pod toleration in aerospike #8

Merged
merged 3 commits into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions charts/aerospike/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
name: aerospike
description: Aerospike helm chart
version: 1.0.0
appVersion: "5.6.0.15"
version: 1.1.0
appVersion: "6.3.0.4"
keywords:
- aerospike
dependencies:
Expand Down
1 change: 1 addition & 0 deletions charts/aerospike/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ The command removes all the Kubernetes components associated with the chart and
| Name | Description | Value |
| ------------------------------------ | ------------------------------------------------ | --------------- |
| `replicaCount` | Number of Aerospike replicas | `1` |
| `tolerations ` | Toleration for pod | `[]` |
| `nodeSelector` | Node labels for pod assignment | `{}` |
| `updateStrategy.type` | updateStrategy for Aerospike statefulset | `RollingUpdate` |
| `podManagementPolicy` | StatefulSet pod management policy | `OrderedReady` |
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