VOL-569: Create kubernetes deployment configuration for each voltha service
This update adds kubernetes deployment files for voltha-core, consul, and
the CLI. These files are not yet production-ready; for example, the consul
deployment will have to be augmented to support persistent storage. The
files do work and enable running these services (vcore, consul, and vcli)
on kubernetes.
Change-Id: Ic6708851fa560f381cb368759f26eb073c18d0e3
diff --git a/k8s/vcli.yml b/k8s/vcli.yml
new file mode 100644
index 0000000..1ef3bbd
--- /dev/null
+++ b/k8s/vcli.yml
@@ -0,0 +1,49 @@
+apiVersion: v1
+kind: Service
+metadata:
+ name: vcli
+ labels:
+ name: vcli
+spec:
+ ports:
+ - name: ssh
+ port: 5022
+ targetPort: 22
+ selector:
+ app: vcli
+---
+apiVersion: apps/v1beta1
+kind: Deployment
+metadata:
+ name: vcli
+spec:
+ replicas: 2
+ template:
+ metadata:
+ labels:
+ app: vcli
+ spec:
+ containers:
+ - name: vcli
+ image: "cord/vcli:latest"
+ env:
+ - name: POD_IP
+ valueFrom:
+ fieldRef:
+ fieldPath: status.podIP
+ - name: NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+ args:
+ - "/cli/cli/setup.sh"
+ - "-C consul:8500"
+ - "-g voltha:50555"
+ - "-s voltha:18880"
+ - "-G"
+ ports:
+ - containerPort: 22
+ name: ssh-port
+ imagePullPolicy: Never
+
+