cassandra small fix

This commit is contained in:
Leo Sok 2026-04-13 19:35:47 +03:00
parent 8190c3d5a1
commit 31ca9c9d15
3 changed files with 11 additions and 15 deletions

View File

@ -12,3 +12,5 @@ data:
CREATE KEYSPACE IF NOT EXISTS messages WITH replication = {'class' : 'SimpleStrategy', 'replication_factor' : 3}; CREATE KEYSPACE IF NOT EXISTS messages WITH replication = {'class' : 'SimpleStrategy', 'replication_factor' : 3};
CREATE KEYSPACE IF NOT EXISTS chats WITH replication = {'class' : 'SimpleStrategy', 'replication_factor' : 3}; CREATE KEYSPACE IF NOT EXISTS chats WITH replication = {'class' : 'SimpleStrategy', 'replication_factor' : 3};
CREATE KEYSPACE IF NOT EXISTS calls WITH replication = {'class' : 'SimpleStrategy', 'replication_factor' : 3}; CREATE KEYSPACE IF NOT EXISTS calls WITH replication = {'class' : 'SimpleStrategy', 'replication_factor' : 3};
CREATE KEYSPACE IF NOT EXISTS config WITH replication = {'class' : 'SimpleStrategy', 'replication_factor' : 3};
CREATE KEYSPACE IF NOT EXISTS dictionary WITH replication = {'class' : 'SimpleStrategy', 'replication_factor' : 3};

View File

@ -12,12 +12,12 @@
## @param global.defaultStorageClass Global default StorageClass for Persistent Volume(s) ## @param global.defaultStorageClass Global default StorageClass for Persistent Volume(s)
## ##
global: global:
imageRegistry: "registry.co-work.ru" imageRegistry: "docker.ii-p001.local"
## E.g. ## E.g.
## imagePullSecrets: ## imagePullSecrets:
## - myRegistryKeySecretName ## - myRegistryKeySecretName
## ##
imagePullSecrets: [docker-registry-secret] imagePullSecrets: []
defaultStorageClass: "" defaultStorageClass: ""
## Security parameters ## Security parameters
## ##
@ -41,7 +41,7 @@ global:
nameOverride: "" nameOverride: ""
## @param fullnameOverride String to fully override common.names.fullname ## @param fullnameOverride String to fully override common.names.fullname
## ##
fullnameOverride: "cassandra" fullnameOverride: ""
## @param kubeVersion Force target Kubernetes version (using Helm capabilities if not set) ## @param kubeVersion Force target Kubernetes version (using Helm capabilities if not set)
## ##
kubeVersion: "" kubeVersion: ""
@ -138,9 +138,7 @@ dbUser:
existingSecretPasswordKey: "" existingSecretPasswordKey: ""
## @param initDB Object with cql scripts. Useful for creating a keyspace and pre-populating data ## @param initDB Object with cql scripts. Useful for creating a keyspace and pre-populating data
## ##
initDB: {} initDB: {}
## @param initDBConfigMap ConfigMap with cql scripts. Useful for creating a keyspace and pre-populating data ## @param initDBConfigMap ConfigMap with cql scripts. Useful for creating a keyspace and pre-populating data
## ##
initDBConfigMap: "cassandra-init-script" initDBConfigMap: "cassandra-init-script"
@ -211,7 +209,6 @@ args: []
extraEnvVars: extraEnvVars:
- name: CASSANDRA_CFG_YAML_SASI_INDEXES_ENABLED - name: CASSANDRA_CFG_YAML_SASI_INDEXES_ENABLED
value: "true" value: "true"
## @param extraEnvVarsCM Name of existing ConfigMap containing extra env vars ## @param extraEnvVarsCM Name of existing ConfigMap containing extra env vars
## ##
extraEnvVarsCM: "" extraEnvVarsCM: ""
@ -286,18 +283,15 @@ affinity:
- labelSelector: - labelSelector:
matchLabels: matchLabels:
app.kubernetes.io/name: cassandra app.kubernetes.io/name: cassandra
topologyKey: "kubernetes.io/hostname"## @param nodeSelector Node labels for pod assignment topologyKey: "kubernetes.io/hostname"
## @param nodeSelector Node labels for pod assignment
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/ ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
## ##
nodeSelector: nodeSelector: {}
tenant: client3
## @param tolerations Tolerations for pod assignment ## @param tolerations Tolerations for pod assignment
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
## ##
tolerations: tolerations: []
- key: "node-role.kubernetes.io/control-plane"
operator: "Exists"
effect: "NoSchedule"
## @param topologySpreadConstraints Topology Spread Constraints for pod assignment ## @param topologySpreadConstraints Topology Spread Constraints for pod assignment
## https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/ ## https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
## The value is evaluated as a template ## The value is evaluated as a template
@ -650,7 +644,7 @@ persistence:
## set, choosing the default provisioner. (gp2 on AWS, standard on ## set, choosing the default provisioner. (gp2 on AWS, standard on
## GKE, AWS & OpenStack) ## GKE, AWS & OpenStack)
## ##
storageClass: "client3" storageClass: "ceph-rbd-fast-client1"
## @param persistence.commitStorageClass PVC Storage Class for Cassandra Commit Log volume ## @param persistence.commitStorageClass PVC Storage Class for Cassandra Commit Log volume
## Storage class to use with CASSANDRA_COMMITLOG_DIR to reduce the concurrence for writing data and commit logs ## Storage class to use with CASSANDRA_COMMITLOG_DIR to reduce the concurrence for writing data and commit logs
## ref: https://github.com/bitnami/containers/tree/main/bitnami/cassandra ## ref: https://github.com/bitnami/containers/tree/main/bitnami/cassandra