Sync up to the latest it/dep commit.
[ric-plt/ric-dep.git] / helm / infrastructure / subcharts / kong / charts / cassandra / values.yaml
1 ## Cassandra image version
2 ## ref: https://hub.docker.com/r/library/cassandra/
3 image:
4   repo: cassandra
5   tag: 3.11.3
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
10
11 ## Specify a service type
12 ## ref: http://kubernetes.io/docs/user-guide/services/
13 service:
14   type: ClusterIP
15
16 ## Persist data to a persistent volume
17 persistence:
18   enabled: true
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)
25   ##
26   # storageClass: "-"
27   accessMode: ReadWriteOnce
28   size: 10Gi
29
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
35 resources: {}
36   # requests:
37   #   memory: 4Gi
38   #   cpu: 2
39   # limits:
40   #   memory: 4Gi
41   #   cpu: 2
42
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
48 config:
49   cluster_domain: cluster.local
50   cluster_name: cassandra
51   cluster_size: 3
52   seed_size: 2
53   num_tokens: 256
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
57   # are used.
58   dc_name: DC1
59   rack_name: RAC1
60   endpoint_snitch: SimpleSnitch
61   max_heap_size: 2048M
62   heap_new_size: 512M
63   start_rpc: false
64   ports:
65     cql: 9042
66     thrift: 9160
67     # If a JVM Agent is in place
68     # agent: 61621
69
70 ## Cassandra config files overrides
71 configOverrides: {}
72
73 ## Cassandra docker command overrides
74 commandOverrides: []
75
76 ## Cassandra docker args overrides
77 argsOverrides: []
78
79 ## Custom env variables.
80 ## ref: https://hub.docker.com/_/cassandra/
81 env: {}
82
83 ## Liveness and Readiness probe values.
84 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/
85 livenessProbe:
86   initialDelaySeconds: 90
87   periodSeconds: 30
88   timeoutSeconds: 5
89   successThreshold: 1
90   failureThreshold: 3
91 readinessProbe:
92   initialDelaySeconds: 90
93   periodSeconds: 30
94   timeoutSeconds: 5
95   successThreshold: 1
96   failureThreshold: 3
97
98 ## Configure node selector. Edit code below for adding selector to pods
99 ## ref: https://kubernetes.io/docs/user-guide/node-selection/
100 # selector:
101   # nodeSelector:
102     # cloud.google.com/gke-nodepool: pool-db
103
104 ## Additional pod annotations
105 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
106 podAnnotations: {}
107
108 ## Additional pod labels
109 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
110 podLabels: {}
111
112 ## Additional pod-level settings
113 podSettings:
114   # Change this to give pods more time to properly leave the cluster when not using persistent storage.
115   terminationGracePeriodSeconds: 30
116
117 ## Pod distruption budget
118 podDisruptionBudget: {}
119   # maxUnavailable: 1
120   # minAvailable: 2
121
122 podManagementPolicy: OrderedReady
123 updateStrategy:
124   type: OnDelete
125
126 ## Pod Security Context
127 securityContext:
128   enabled: false
129   fsGroup: 999
130   runAsUser: 999
131
132 ## Affinity for pod assignment
133 ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
134 affinity: {}
135
136 ## Node tolerations for pod assignment
137 ## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
138 tolerations: []
139
140 rbac:
141   # Specifies whether RBAC resources should be created
142   create: true
143
144 serviceAccount:
145   # Specifies whether a ServiceAccount should be created
146   create: true
147   # The name of the ServiceAccount to use.
148   # If not set and create is true, a name is generated using the fullname template
149   # name:
150
151 # Use host network for Cassandra pods
152 # You must pass seed list into config.seeds property if set to true
153 hostNetwork: false
154
155 ## Backup cronjob configuration
156 ## Ref: https://github.com/nuvo/cain
157 backup:
158   enabled: false
159
160   # Schedule to run jobs. Must be in cron time format
161   # Ref: https://crontab.guru/
162   schedule:
163   - keyspace: keyspace1
164     cron: "0 7 * * *"
165   - keyspace: keyspace2
166     cron: "30 7 * * *"
167
168   annotations:
169     # Example for authorization to AWS S3 using kube2iam
170     # Can also be done using environment variables
171     iam.amazonaws.com/role: cain
172
173   image:
174     repos: nuvo/cain
175     tag: 0.4.1
176
177   # Additional arguments for cain
178   # Ref: https://github.com/nuvo/cain#usage
179   extraArgs: []
180
181   # Add additional environment variables
182   env:
183   # Example environment variable required for AWS credentials chain
184   - name: AWS_REGION
185     value: us-east-1
186
187   resources:
188     requests:
189       memory: 1Gi
190       cpu: 1
191     limits:
192       memory: 1Gi
193       cpu: 1
194
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
200
201 ## Cassandra exported configuration
202 ## ref: https://github.com/criteo/cassandra_exporter
203 exporter:
204   enabled: false
205   image:
206     repo: criteord/cassandra_exporter
207     tag: 2.0.2
208   port: 5556
209   jvmOpts: ""