Give the ability to add some extra seeds to Cassandra (#5172)

Co-authored-by: Jan Mederer <jme@adorsys.de>
This commit is contained in:
jmederer
2021-01-22 17:51:43 +01:00
committed by GitHub
parent 7cd4fb5019
commit 61eb9c6225
4 changed files with 10 additions and 1 deletions

View File

@@ -23,4 +23,4 @@ name: cassandra
sources:
- https://github.com/bitnami/bitnami-docker-cassandra
- http://cassandra.apache.org
version: 7.1.5
version: 7.1.6

View File

@@ -85,6 +85,7 @@ The following table lists the configurable parameters of the Cassandra chart and
| `existingConfiguration` | Pointer to a configMap that contains custom Cassandra configuration files. This will override any Cassandra configuration variable set in the chart | `nil` (evaluated as a template) |
| `cluster.name` | Cassandra cluster name | `cassandra` |
| `cluster.seedCount` | Number of seed nodes (note: must be greater or equal than 1 and less or equal to `replicaCount`) | `1` |
| `cluster.extraSeeds` | For an external/second cassandra ring. Seed list will be appended by this. | `[]` |
| `cluster.numTokens` | Number of tokens for each node | `256` |
| `cluster.datacenter` | Datacenter name | `dc1` |
| `cluster.rack` | Rack name | `rack1` |

View File

@@ -40,6 +40,9 @@ Return the list of Cassandra seed nodes
{{- range $e, $i := until $seedCount }}
{{- $seeds = append $seeds (printf "%s-%d.%s-headless.%s.svc.%s" $fullname $i $fullname $releaseNamespace $clusterDomain) }}
{{- end }}
{{- range .Values.cluster.extraSeeds }}
{{- $seeds = append $seeds . }}
{{- end }}
{{- join "," $seeds }}
{{- end -}}

View File

@@ -179,6 +179,11 @@ cluster:
##
internodeEncryption: none
clientEncryption: false
## extraSeeds - For an external/second cassandra ring. Seed list will be appended by this.
##
# extraSeeds:
# - hostname/IP
# - hostname/IP
## JVM Settings
##