apiVersion: db.orange.com/v2
kind: MultiCasskop
metadata:
name: multi-casskop-demo
spec:
deleteCassandraCluster: true
base:
apiVersion: "db.orange.com/v2"
kind: "CassandraCluster"
metadata:
name: cassandra-demo
namespace: cassandra-demo
labels:
cluster: casskop
spec:
cassandraImage: orangeopensource/cassandra-image:3.11
bootstrapImage: orangeopensource/cassandra-bootstrap:0.1.4
configMapName: cassandra-configmap-v1
service:
annotations:
external-dns.alpha.kubernetes.io/hostname: casskop.external-dns-test.gcp.trycatchlearn.fr.
rollingPartition: 0
dataCapacity: "20Gi"
dataStorageClass: "standard-wait"
imagepullpolicy: IfNotPresent
hardAntiAffinity: false
deletePVC: true
autoPilot: false
autoUpdateSeedList: false
debug: false
maxPodUnavailable: 1
nodesPerRacks: 1
runAsUser: 999
resources:
limits:
cpu: '1'
memory: 2Gi
status:
seedlist:
- cassandra-demo-dc1-rack1-0.casskop.external-dns-test.gcp.trycatchlearn.fr
- cassandra-demo-dc3-rack3-0.casskop.external-dns-test.gcp.trycatchlearn.fr
- cassandra-demo-dc4-rack4-0.casskop.external-dns-test.gcp.trycatchlearn.fr
- cassandra-demo-dc4-rack4-1.casskop.external-dns-test.gcp.trycatchlearn.fr
override:
gke-master-west1-b:
spec:
topology:
dc:
- name: dc1
nodesPerRacks: 1
config:
cassandra-yaml:
num_tokens: 256
labels:
failure-domain.beta.kubernetes.io/region: europe-west1
rack:
- name: rack1
rollingPartition: 0
labels:
failure-domain.beta.kubernetes.io/zone: europe-west1-b
gke-slave-west1-d:
spec:
imagepullpolicy: IfNotPresent
topology:
dc:
- name: dc3
nodesPerRacks: 1
config:
cassandra-yaml:
num_tokens: 256
labels:
failure-domain.beta.kubernetes.io/region: europe-west1
rack:
- name: rack3
labels:
failure-domain.beta.kubernetes.io/zone: europe-west1-d
- name: dc4
nodesPerRacks: 2
config:
cassandra-yaml:
num_tokens: 256
labels:
failure-domain.beta.kubernetes.io/region: europe-west1
rack:
- name: rack4
labels:
failure-domain.beta.kubernetes.io/zone: europe-west1-d