Skip to content

Commit 2cf9f4a

Browse files
satchpxk8s-ci-robot
authored andcommitted
[incubator/cassandra] updates to support an alternate k8s scheduler (helm#14350)
* updates to support an alternate k8s scheduler Signed-off-by: Sathya Balakrishnan <[email protected]> * fix Chart version Signed-off-by: Sathya Balakrishnan <[email protected]>
1 parent 0fff0f9 commit 2cf9f4a

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

incubator/cassandra/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v1
22
name: cassandra
3-
version: 0.12.2
3+
version: 0.13.0
44
appVersion: 3.11.3
55
description: Apache Cassandra is a free and open-source distributed database management
66
system designed to handle large amounts of data across many commodity servers, providing

incubator/cassandra/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ helm upgrade "cassandra" incubator/cassandra
3131

3232
This version fixes https://github.com/helm/charts/issues/7803 by removing mutable labels in `spec.VolumeClaimTemplate.metadata.labels` so that it is upgradable.
3333

34-
Until this version, in order to upgrade, you have to delete the Cassandra StatefulSet before upgrading:
34+
Until this version, in order to upgrade, you have to delete the Cassandra StatefulSet before upgrading:
3535
```bash
3636
$ kubectl delete statefulset --cascade=false my-cassandra-release
3737
```
@@ -121,6 +121,7 @@ The following table lists the configurable parameters of the Cassandra chart and
121121
| `commandOverrides` | Overrides default docker command | `[]` |
122122
| `argsOverrides` | Overrides default docker args | `[]` |
123123
| `env` | Custom env variables | `{}` |
124+
| `schedulerName` | Name of k8s scheduler (other than the default) | `nil` |
124125
| `persistence.enabled` | Use a PVC to persist data | `true` |
125126
| `persistence.storageClass` | Storage class of backing PVC | `nil` (uses alpha storage class annotation) |
126127
| `persistence.accessMode` | Use volume as ReadOnly or ReadWrite | `ReadWriteOnce` |

incubator/cassandra/templates/statefulset.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ spec:
3030
{{ toYaml .Values.podAnnotations | indent 8 }}
3131
{{- end }}
3232
spec:
33+
{{- if .Values.schedulerName }}
34+
schedulerName: "{{ .Values.schedulerName }}"
35+
{{- end }}
3336
hostNetwork: {{ .Values.hostNetwork }}
3437
{{- if .Values.selector }}
3538
{{ toYaml .Values.selector | indent 6 }}
@@ -93,7 +96,7 @@ spec:
9396
value: {{ required "You must fill \".Values.config.seeds\" with list of Cassandra seeds when hostNetwork is set to true" .Values.config.seeds | quote }}
9497
{{- else }}
9598
value: "{{- range $i, $e := until $seed_size }}{{ template "cassandra.fullname" $global }}-{{ $i }}.{{ template "cassandra.fullname" $global }}.{{ $global.Release.Namespace }}.svc.{{ $global.Values.config.cluster_domain }}{{- if (lt ( add1 $i ) $seed_size ) }},{{- end }}{{- end }}"
96-
{{- end }}
99+
{{- end }}
97100
- name: MAX_HEAP_SIZE
98101
value: {{ default "8192M" .Values.config.max_heap_size | quote }}
99102
- name: HEAP_NEWSIZE

incubator/cassandra/values.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ image:
1313
service:
1414
type: ClusterIP
1515

16+
## Use an alternate scheduler, e.g. "stork".
17+
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
18+
##
19+
# schedulerName:
20+
1621
## Persist data to a persistent volume
1722
persistence:
1823
enabled: true

0 commit comments

Comments
 (0)