apiVersion: v1 kind: ConfigMap metadata: name: cassandra-init-script 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};