Mount entire cassandra directory 91/45491/2
authorDaniel Silverthorn <daniel.silverthorn@amdocs.com>
Tue, 1 May 2018 18:51:42 +0000 (18:51 +0000)
committerDaniel Silverthorn <daniel.silverthorn@amdocs.com>
Wed, 2 May 2018 15:09:43 +0000 (15:09 +0000)
Mounting only the cassandra/data directory causes any data not yet
persisted to be lost. Mounting the commitlog directory as well will
allow cassandra to persist data properly.

Change-Id: If4453e3b39307e0243c20167b568d4ac1af20d12
Issue-ID: OOM-1024
Signed-off-by: Daniel Silverthorn <daniel.silverthorn@amdocs.com>
kubernetes/aai/charts/aai-cassandra/templates/statefulset.yaml
kubernetes/aai/charts/aai-cassandra/values.yaml

index aa3482d..92f05dd 100644 (file)
@@ -77,7 +77,7 @@ spec:
                 fieldPath: status.podIP
         volumeMounts:
           - name: cassandra-data
-            mountPath: /var/lib/cassandra/data
+            mountPath: /var/lib/cassandra
         resources:
 {{ toYaml .Values.resources | indent 10 }}
       {{- if .Values.nodeSelector }}
index 884bc39..baa87c2 100644 (file)
@@ -62,7 +62,7 @@ ingress:
   enabled: false
 
 persistence:
-  enabled: false
+  enabled: true
 
   ## A manually managed Persistent Volume and Claim
   ## Requires persistence.enabled: true