blob: 848bd3a820e836a5042833bb57445911764cb0a1 [file] [log] [blame]
Richard Jankowskid7921b72018-02-20 16:55:12 -05001apiVersion: v1
2kind: Service
3metadata:
4 name: vcli
5 namespace: voltha
6 labels:
7 name: vcli
8spec:
9 ports:
10 - name: ssh
11 port: 5022
12 targetPort: 22
13 selector:
14 app: vcli
15---
16apiVersion: apps/v1beta1
17kind: Deployment
18metadata:
19 name: vcli
20 namespace: voltha
21spec:
22 replicas: 1
23 template:
24 metadata:
25 labels:
26 app: vcli
27 annotations:
28 cni: "weave"
29 spec:
30 containers:
31 - name: vcli
32 image: voltha-cli
33 env:
34 - name: POD_IP
35 valueFrom:
36 fieldRef:
37 fieldPath: status.podIP
38 - name: NAMESPACE
39 valueFrom:
40 fieldRef:
41 fieldPath: metadata.namespace
42 args:
43 - "/cli/cli/setup.sh"
44 - "-C consul:8500"
45 - "-g voltha:50555"
46 - "-s voltha:18880"
47 - "-G"
48 ports:
49 - containerPort: 22
50 name: ssh-port
51 imagePullPolicy: Never
52
53