This is an automated email from the ASF dual-hosted git repository.
daisyguo pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/incubator-openwhisk-deploy-kube.git
The following commit(s) were added to refs/heads/master by this push:
new 720abad Bug fix for an issue in zookeeper volume mount (#231)
720abad is described below
commit 720abadb5249eb96d5f27afd1cc21387ab85652d
Author: David Grove <[email protected]>
AuthorDate: Fri Jun 22 03:52:06 2018 -0400
Bug fix for an issue in zookeeper volume mount (#231)
Due to a typo in the pod specification, we were incorrectly mounting
the zk-data volume twice and not mounting the zk-datalog volume at
all. This resulted on zookeeper crashing after restart because log
data had been written to the data directory.
Fixes #230.
---
helm/templates/zookeeper.yaml | 2 +-
kubernetes/zookeeper/zookeeper.yml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/helm/templates/zookeeper.yaml b/helm/templates/zookeeper.yaml
index 572b594..dc4d7f3 100644
--- a/helm/templates/zookeeper.yaml
+++ b/helm/templates/zookeeper.yaml
@@ -68,7 +68,7 @@ spec:
- mountPath: /data
name: zk-data
- mountPath: /datalog
- name: zk-data
+ name: zk-datalog
{{- end }}
env:
{{- if .Values.zookeeper.persistence.enabled }}
diff --git a/kubernetes/zookeeper/zookeeper.yml
b/kubernetes/zookeeper/zookeeper.yml
index b411b71..e91696c 100644
--- a/kubernetes/zookeeper/zookeeper.yml
+++ b/kubernetes/zookeeper/zookeeper.yml
@@ -71,7 +71,7 @@ spec:
- mountPath: /data
name: zk-data
- mountPath: /datalog
- name: zk-data
+ name: zk-datalog
env:
- name: "ZOO_DATA_DIR"
value: /data