blob: 1ef3bbda51f5fcf207e9f8139856bc1a730fd76c [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
25 spec:
26 containers:
27 - name: vcli
28 image: "cord/vcli:latest"
29 env:
30 - name: POD_IP
31 valueFrom:
32 fieldRef:
33 fieldPath: status.podIP
34 - name: NAMESPACE
35 valueFrom:
36 fieldRef:
37 fieldPath: metadata.namespace
38 args:
39 - "/cli/cli/setup.sh"
40 - "-C consul:8500"
41 - "-g voltha:50555"
42 - "-s voltha:18880"
43 - "-G"
44 ports:
45 - containerPort: 22
46 name: ssh-port
47 imagePullPolicy: Never
48
49