1 ## Cassandra image version
2 ## ref: https://hub.docker.com/r/library/cassandra/
6 pullPolicy: IfNotPresent
7 ## Specify ImagePullSecrets for Pods
8 ## ref: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
9 # pullSecrets: myregistrykey
11 ## Specify a service type
12 ## ref: http://kubernetes.io/docs/user-guide/services/
16 ## Persist data to a persistent volume
19 ## cassandra data Persistent Volume Storage Class
20 ## If defined, storageClassName: <storageClass>
21 ## If set to "-", storageClassName: "", which disables dynamic provisioning
22 ## If undefined (the default) or set to null, no storageClassName spec is
23 ## set, choosing the default provisioner. (gp2 on AWS, standard on
24 ## GKE, AWS & OpenStack)
27 accessMode: ReadWriteOnce
30 ## Configure resource requests and limits
31 ## ref: http://kubernetes.io/docs/user-guide/compute-resources/
32 ## Minimum memory for development is 4GB and 2 CPU cores
33 ## Minimum memory for production is 8GB and 4 CPU cores
34 ## ref: http://docs.datastax.com/en/archived/cassandra/2.0/cassandra/architecture/architecturePlanningHardware_c.html
43 ## Change cassandra configuration parameters below:
44 ## ref: http://docs.datastax.com/en/cassandra/3.0/cassandra/configuration/configCassandra_yaml.html
45 ## Recommended max heap size is 1/2 of system memory
46 ## Recommended heap new size is 1/4 of max heap size
47 ## ref: http://docs.datastax.com/en/cassandra/3.0/cassandra/operations/opsTuneJVM.html
49 cluster_domain: cluster.local
50 cluster_name: cassandra
54 # If you want Cassandra to use this datacenter and rack name,
55 # you need to set endpoint_snitch to GossipingPropertyFileSnitch.
56 # Otherwise, these values are ignored and datacenter1 and rack1
60 endpoint_snitch: SimpleSnitch
67 # If a JVM Agent is in place
70 ## Cassandra config files overrides
73 ## Cassandra docker command overrides
76 ## Cassandra docker args overrides
79 ## Custom env variables.
80 ## ref: https://hub.docker.com/_/cassandra/
83 ## Liveness and Readiness probe values.
84 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/
86 initialDelaySeconds: 90
92 initialDelaySeconds: 90
98 ## Configure node selector. Edit code below for adding selector to pods
99 ## ref: https://kubernetes.io/docs/user-guide/node-selection/
102 # cloud.google.com/gke-nodepool: pool-db
104 ## Additional pod annotations
105 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
108 ## Additional pod labels
109 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
112 ## Additional pod-level settings
114 # Change this to give pods more time to properly leave the cluster when not using persistent storage.
115 terminationGracePeriodSeconds: 30
117 ## Pod distruption budget
118 podDisruptionBudget: {}
122 podManagementPolicy: OrderedReady
126 ## Pod Security Context
132 ## Affinity for pod assignment
133 ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
136 ## Node tolerations for pod assignment
137 ## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
141 # Specifies whether RBAC resources should be created
145 # Specifies whether a ServiceAccount should be created
147 # The name of the ServiceAccount to use.
148 # If not set and create is true, a name is generated using the fullname template
151 # Use host network for Cassandra pods
152 # You must pass seed list into config.seeds property if set to true
155 ## Backup cronjob configuration
156 ## Ref: https://github.com/nuvo/cain
160 # Schedule to run jobs. Must be in cron time format
161 # Ref: https://crontab.guru/
163 - keyspace: keyspace1
165 - keyspace: keyspace2
169 # Example for authorization to AWS S3 using kube2iam
170 # Can also be done using environment variables
171 iam.amazonaws.com/role: cain
177 # Additional arguments for cain
178 # Ref: https://github.com/nuvo/cain#usage
181 # Add additional environment variables
183 # Example environment variable required for AWS credentials chain
195 # Destination to store the backup artifacts
196 # Supported cloud storage services: AWS S3, Minio S3, Azure Blob Storage
197 # Additional support can added. Visit this repository for details
198 # Ref: https://github.com/nuvo/skbn
199 destination: s3://bucket/cassandra
201 ## Cassandra exported configuration
202 ## ref: https://github.com/criteo/cassandra_exporter
206 repo: criteord/cassandra_exporter