Richard Jankowski | 54f7a86 | 2017-12-20 13:31:10 -0500 | [diff] [blame] | 1 | apiVersion: v1 |
2 | kind: Service | ||||
3 | metadata: | ||||
4 | name: vcli | ||||
5 | labels: | ||||
6 | name: vcli | ||||
7 | spec: | ||||
8 | ports: | ||||
9 | - name: ssh | ||||
10 | port: 5022 | ||||
11 | targetPort: 22 | ||||
12 | selector: | ||||
13 | app: vcli | ||||
14 | --- | ||||
15 | apiVersion: apps/v1beta1 | ||||
16 | kind: Deployment | ||||
17 | metadata: | ||||
18 | name: vcli | ||||
19 | spec: | ||||
20 | replicas: 2 | ||||
21 | template: | ||||
22 | metadata: | ||||
23 | labels: | ||||
24 | app: vcli | ||||
Stephane Barbarie | 5e8d9e4 | 2018-02-07 16:15:05 -0500 | [diff] [blame] | 25 | annotations: |
26 | cni: "weave" | ||||
Richard Jankowski | 54f7a86 | 2017-12-20 13:31:10 -0500 | [diff] [blame] | 27 | spec: |
28 | containers: | ||||
29 | - name: vcli | ||||
Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 30 | image: voltha-cli |
Richard Jankowski | 54f7a86 | 2017-12-20 13:31:10 -0500 | [diff] [blame] | 31 | 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 |