Richard Jankowski | 54f7a86 | 2017-12-20 13:31:10 -0500 | [diff] [blame] | 1 | apiVersion: v1 |
| 2 | kind: Service |
| 3 | metadata: |
| 4 | name: vcli |
Richard Jankowski | d445438 | 2018-02-08 16:21:43 -0500 | [diff] [blame] | 5 | namespace: voltha |
Richard Jankowski | 54f7a86 | 2017-12-20 13:31:10 -0500 | [diff] [blame] | 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 |
Richard Jankowski | d445438 | 2018-02-08 16:21:43 -0500 | [diff] [blame] | 20 | namespace: voltha |
Richard Jankowski | 54f7a86 | 2017-12-20 13:31:10 -0500 | [diff] [blame] | 21 | spec: |
| 22 | replicas: 2 |
| 23 | template: |
| 24 | metadata: |
| 25 | labels: |
| 26 | app: vcli |
Stephane Barbarie | 5e8d9e4 | 2018-02-07 16:15:05 -0500 | [diff] [blame] | 27 | annotations: |
| 28 | cni: "weave" |
Richard Jankowski | 54f7a86 | 2017-12-20 13:31:10 -0500 | [diff] [blame] | 29 | spec: |
| 30 | containers: |
| 31 | - name: vcli |
Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 32 | image: voltha-cli |
Richard Jankowski | 54f7a86 | 2017-12-20 13:31:10 -0500 | [diff] [blame] | 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 | |