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