Commit 0d78d521cc89d58e3450dd5abd583e3c5e4c0f4b

Authored by vzikratyi
1 parent e7e3c964

Set correct cassandra datacenter

1 # Can be either basic (with single instance of Zookeeper, Kafka and Redis) or high-availability (with Zookeeper, Kafka and Redis in cluster modes). 1 # Can be either basic (with single instance of Zookeeper, Kafka and Redis) or high-availability (with Zookeeper, Kafka and Redis in cluster modes).
2 # According to the deployment type corresponding kubernetes resources will be deployed (see content of the directories ./basic and ./high-availability for details). 2 # According to the deployment type corresponding kubernetes resources will be deployed (see content of the directories ./basic and ./high-availability for details).
3 -DEPLOYMENT_TYPE=high-availability 3 +DEPLOYMENT_TYPE=basic
4 4
5 # Database used by ThingsBoard, can be either postgres (PostgreSQL) or hybrid (PostgreSQL for entities database and Cassandra for timeseries database). 5 # Database used by ThingsBoard, can be either postgres (PostgreSQL) or hybrid (PostgreSQL for entities database and Cassandra for timeseries database).
6 # According to the database type corresponding kubernetes resources will be deployed (see postgres.yml, cassandra.yml for details). 6 # According to the database type corresponding kubernetes resources will be deployed (see postgres.yml, cassandra.yml for details).
@@ -114,7 +114,7 @@ spec: @@ -114,7 +114,7 @@ spec:
114 - name: CASSANDRA_CLUSTER_NAME 114 - name: CASSANDRA_CLUSTER_NAME
115 value: "Thingsboard Cluster" 115 value: "Thingsboard Cluster"
116 - name: CASSANDRA_DC 116 - name: CASSANDRA_DC
117 - value: "DC1-Thingsboard-Cluster" 117 + value: "datacenter1"
118 - name: CASSANDRA_RACK 118 - name: CASSANDRA_RACK
119 value: "Rack-Thingsboard-Cluster" 119 value: "Rack-Thingsboard-Cluster"
120 - name: CASSANDRA_AUTO_BOOTSTRAP 120 - name: CASSANDRA_AUTO_BOOTSTRAP