forked from instaclustr/cassandra-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample-datacenter.yaml
48 lines (46 loc) · 1.29 KB
/
example-datacenter.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
apiVersion: cassandraoperator.instaclustr.com/v1alpha1
kind: CassandraDataCenter
metadata:
name: test-dc-cassandra
labels:
app: cassandra
spec:
cluster: "test-cluster"
nodes: 3
cassandraImage: "gcr.io/cassandra-operator/cassandra:3.11.3"
sidecarImage: "gcr.io/cassandra-operator/cassandra-sidecar:latest"
imagePullPolicy: IfNotPresent
imagePullSecrets:
- name: regcred
backupSecretVolumeSource:
# example from doc/backup_restore.md
secretName: gcp-auth-reference
# type is a workaround for https://github.com/kubernetes/kubernetes/issues/68466
type: array
items:
- key: my-service-key.json
path: my-service-key.json
sidecarEnv:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: "/tmp/backup-creds/my-service-key.json"
userConfigMapVolumeSource:
# example from doc/providers/pks.md
# the name of the ConfigMap
name: concurrent-data
# ConfigMap keys -> file paths (relative to /etc/cassandra)
items:
- key: 100-concurrent-yaml
path: cassandra.yaml.d/100-concurrent.yaml
resources:
limits:
memory: 1Gi
requests:
memory: 1Gi
dataVolumeClaimSpec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 500Mi
prometheusSupport: false
privilegedSupported: true