Richard Jankowski | d7921b7 | 2018-02-20 16:55:12 -0500 | [diff] [blame] | 1 | apiVersion: v1 |
2 | kind: Service | ||||
3 | metadata: | ||||
4 | name: vcli | ||||
5 | namespace: voltha | ||||
6 | labels: | ||||
7 | name: vcli | ||||
8 | spec: | ||||
9 | ports: | ||||
10 | - name: ssh | ||||
11 | port: 5022 | ||||
12 | targetPort: 22 | ||||
13 | selector: | ||||
14 | app: vcli | ||||
15 | --- | ||||
16 | apiVersion: apps/v1beta1 | ||||
17 | kind: Deployment | ||||
18 | metadata: | ||||
19 | name: vcli | ||||
20 | namespace: voltha | ||||
21 | spec: | ||||
22 | replicas: 1 | ||||
23 | template: | ||||
24 | metadata: | ||||
25 | labels: | ||||
26 | app: vcli | ||||
27 | annotations: | ||||
Stephane Barbarie | 2d4e07f | 2018-03-26 16:46:45 -0400 | [diff] [blame] | 28 | cni: "calico" |
Richard Jankowski | d7921b7 | 2018-02-20 16:55:12 -0500 | [diff] [blame] | 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 |