Skip to content

Commit

Permalink
[incubator/cassandra] Made cluster domain name configurable (defaults… (
Browse files Browse the repository at this point in the history
helm#8926)

* Made the Cassandra chart - cluster domain name configurable (defaults to 'cluster.local')

Signed-off-by: Anders Nordström <[email protected]>

* [incubator/cassandra] Bumped build number (0.9.0 -> 0.9.1)

Signed-off-by: Anders Nordström <[email protected]>
  • Loading branch information
anbarium authored and k8s-ci-robot committed Nov 5, 2018
1 parent cfad469 commit 77851ef
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion incubator/cassandra/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: cassandra
version: 0.9.0
version: 0.9.1
appVersion: 3.11.3
description: Apache Cassandra is a free and open-source distributed database management
system designed to handle large amounts of data across many commodity servers, providing
Expand Down
3 changes: 2 additions & 1 deletion incubator/cassandra/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@ The following table lists the configurable parameters of the Cassandra chart and
| Parameter | Description | Default |
| ----------------------- | --------------------------------------------- | ---------------------------------------------------------- |
| `image.repo` | `cassandra` image repository | `cassandra` |
| `image.tag` | `cassandra` image tag | `3.11.3` |
| `image.tag` | `cassandra` image tag | `3.11.3` |
| `image.pullPolicy` | Image pull policy | `Always` if `imageTag` is `latest`, else `IfNotPresent` |
| `image.pullSecrets` | Image pull secrets | `nil` |
| `config.cluster_domain` | The name of the cluster domain. | `cluster.local` |
| `config.cluster_name` | The name of the cluster. | `cassandra` |
| `config.cluster_size` | The number of nodes in the cluster. | `3` |
| `config.seed_size` | The number of seed nodes used to bootstrap new clients joining the cluster. | `2` |
Expand Down
2 changes: 1 addition & 1 deletion incubator/cassandra/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ spec:
{{- $seed_size := default 1 .Values.config.seed_size | int -}}
{{- $global := . }}
- name: CASSANDRA_SEEDS
value: "{{- range $i, $e := until $seed_size }}{{ template "cassandra.fullname" $global }}-{{ $i }}.{{ template "cassandra.fullname" $global }}.{{ $global.Release.Namespace }}.svc.cluster.local{{- if (lt ( add1 $i ) $seed_size ) }},{{- end }}{{- end }}"
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 }}"
- name: MAX_HEAP_SIZE
value: {{ default "8192M" .Values.config.max_heap_size | quote }}
- name: HEAP_NEWSIZE
Expand Down
3 changes: 2 additions & 1 deletion incubator/cassandra/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ resources: {}
## Change cassandra configuration parameters below:
## ref: http://docs.datastax.com/en/cassandra/3.0/cassandra/configuration/configCassandra_yaml.html
## Recommended max heap size is 1/2 of system memory
## Recommeneed heap new size is 1/4 of max heap size
## Recommended heap new size is 1/4 of max heap size
## ref: http://docs.datastax.com/en/cassandra/3.0/cassandra/operations/opsTuneJVM.html
config:
cluster_domain: cluster.local
cluster_name: cassandra
cluster_size: 3
seed_size: 2
Expand Down

0 comments on commit 77851ef

Please sign in to comment.