VOL-569: Create kubernetes deployment configuration for each voltha service
This update:
- organizes all Voltha components under their own namespace, "voltha". If
you have a script for deploying Voltha, then add namespace.yml at the top.
- adds host volume mounts for Consul's data and config directories
- fixes a bug in Envoy where it was aborting because it couldn't find Consul
even though it was getting the Voltha assignments from Etcd.
Change-Id: I45eaf2d65428c0184df06971ce3797b9122d3055
diff --git a/k8s/zookeeper.yml b/k8s/zookeeper.yml
index 3ef7b3d..2f3ceba 100644
--- a/k8s/zookeeper.yml
+++ b/k8s/zookeeper.yml
@@ -2,6 +2,7 @@
kind: Service
metadata:
name: zoo1
+ namespace: voltha
spec:
clusterIP: None
selector:
@@ -21,6 +22,7 @@
kind: Service
metadata:
name: zoo2
+ namespace: voltha
spec:
clusterIP: None
selector:
@@ -40,6 +42,7 @@
kind: Service
metadata:
name: zoo3
+ namespace: voltha
spec:
clusterIP: None
selector:
@@ -59,6 +62,7 @@
kind: StatefulSet
metadata:
name: zookeeper1
+ namespace: voltha
spec:
serviceName: zoo1
replicas: 1
@@ -96,6 +100,7 @@
kind: StatefulSet
metadata:
name: zookeeper2
+ namespace: voltha
spec:
serviceName: zoo2
replicas: 1
@@ -133,6 +138,7 @@
kind: StatefulSet
metadata:
name: zookeeper3
+ namespace: voltha
spec:
serviceName: zoo3
replicas: 1