Skip to content

Commit

Permalink
config map and chart updates
Browse files Browse the repository at this point in the history
  • Loading branch information
lchen-2101 committed Feb 18, 2022
1 parent 80b3c08 commit a185613
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion UPGRADES.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ CREATE TABLE IF NOT EXISTS akka.all_persistence_ids(
persistence_id text PRIMARY KEY);
```

new environment variable to put into `cassandra-configmap`: `CASSANDRA_CLUSTER_DC` (e.g.: `dc` / `dc2`)
new environment variable to put into `cassandra-configmap`: `cassandra-cluster-dc` (e.g.: `dc` / `dc2`)

### Migration
newly added table needs to be populated, refer to [Migration Documentation](https://doc.akka.io/docs/akka-persistence-cassandra/current/migrations.html) in [plugin upgrade](#akka-cassandra-persistence-plugin-upgrade) section,
Expand Down
1 change: 1 addition & 0 deletions kubernetes/beta/config-maps/cassandra-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ metadata:
name: cassandra-configmap
data:
cassandra-hosts: node-0-server.cassandra.autoip.dcos.thisdcos.directory
cassandra-cluster-dc: datacenter1
cassandra-keyspace: hmda2_journal_beta
cassandra-keyspace-snapshot: hmda2_snapshot_beta
5 changes: 5 additions & 0 deletions kubernetes/beta/hmda-platform/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ spec:
configMapKeyRef:
name: cassandra-configmap
key: cassandra-hosts
- name: CASSANDRA_CLUSTER_DC
valueFrom:
configMapKeyRef:
name: cassandra-configmap
key: cassandra-cluster-dc
- name: CASSANDRA_JOURNAL_KEYSPACE
valueFrom:
configMapKeyRef:
Expand Down
1 change: 1 addition & 0 deletions kubernetes/config-maps/cassandra-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ metadata:
reloader.stakater.com/match: "true"
data:
cassandra-hosts: cluster1-dc1-service.cass-operator
cassandra-cluster-dc: dc1
cassandra-keyspace: hmda2_journal
cassandra-keyspace-snapshot: hmda2_snapshot
5 changes: 5 additions & 0 deletions kubernetes/hmda-platform/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ spec:
configMapKeyRef:
name: cassandra-configmap
key: cassandra-hosts
- name: CASSANDRA_CLUSTER_DC
valueFrom:
configMapKeyRef:
name: cassandra-configmap
key: cassandra-cluster-dc
- name: CASSANDRA_JOURNAL_KEYSPACE
valueFrom:
configMapKeyRef:
Expand Down
5 changes: 5 additions & 0 deletions kubernetes/kind/hmda-platform/helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,11 @@ spec:
configMapKeyRef:
name: cassandra-configmap
key: cassandra-hosts
- name: CASSANDRA_CLUSTER_DC
valueFrom:
configMapKeyRef:
name: cassandra-configmap
key: cassandra-cluster-dc
- name: CASSANDRA_JOURNAL_KEYSPACE
valueFrom:
configMapKeyRef:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apiVersion: v1
data:
cassandra-hosts: cluster2-dc2-all-pods-service:9142
cassandra-cluster-dc: dc2
cassandra-keyspace: hmda2_journal
cassandra-keyspace-snapshot: hmda2_snapshot
kind: ConfigMap
Expand Down

0 comments on commit a185613

Please sign in to comment.