15 lines
954 B
YAML
15 lines
954 B
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: cassandra-init-scripts
|
|
namespace: {{ .Release.Namespace }}
|
|
data:
|
|
init.cql: |
|
|
CREATE KEYSPACE IF NOT EXISTS workspaces WITH replication = {'class' : 'SimpleStrategy', 'replication_factor' : 3};
|
|
CREATE KEYSPACE IF NOT EXISTS users WITH replication = {'class' : 'SimpleStrategy', 'replication_factor' : 3};
|
|
CREATE KEYSPACE IF NOT EXISTS stickers WITH replication = {'class' : 'SimpleStrategy', 'replication_factor' : 3};
|
|
CREATE KEYSPACE IF NOT EXISTS notifications 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 calls WITH replication = {'class' : 'SimpleStrategy', 'replication_factor' : 3};
|