blob: e1563ab015ce546c2508b762c915640862802f3d [file] [log] [blame]
Richard Jankowski54f7a862017-12-20 13:31:10 -05001apiVersion: v1
2kind: Service
3metadata:
4 name: vcli
Richard Jankowskid4454382018-02-08 16:21:43 -05005 namespace: voltha
Richard Jankowski54f7a862017-12-20 13:31:10 -05006 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
Richard Jankowskid4454382018-02-08 16:21:43 -050020 namespace: voltha
Richard Jankowski54f7a862017-12-20 13:31:10 -050021spec:
22 replicas: 2
23 template:
24 metadata:
25 labels:
26 app: vcli
Stephane Barbarie5e8d9e42018-02-07 16:15:05 -050027 annotations:
28 cni: "weave"
Richard Jankowski54f7a862017-12-20 13:31:10 -050029 spec:
30 containers:
31 - name: vcli
Richard Jankowskic3c291c2018-02-02 13:57:33 -050032 image: voltha-cli
Richard Jankowski54f7a862017-12-20 13:31:10 -050033 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