Stephane Barbarie | 5e8d9e4 | 2018-02-07 16:15:05 -0500 | [diff] [blame] | 1 | apiVersion: v1 |
| 2 | kind: Service |
| 3 | metadata: |
| 4 | name: onos |
Stephane Barbarie | 3559506 | 2018-02-08 08:34:39 -0500 | [diff] [blame] | 5 | namespace: voltha |
Stephane Barbarie | 5e8d9e4 | 2018-02-07 16:15:05 -0500 | [diff] [blame] | 6 | labels: |
| 7 | name: onos |
| 8 | spec: |
| 9 | ports: |
| 10 | - name: ssh |
| 11 | port: 8101 |
| 12 | targetPort: 8101 |
| 13 | - name: of |
| 14 | port: 6653 |
| 15 | targetPort: 6653 |
| 16 | - name: ui |
| 17 | port: 8181 |
| 18 | targetPort: 8181 |
| 19 | selector: |
| 20 | app: onos |
| 21 | --- |
| 22 | apiVersion: apps/v1beta1 |
| 23 | kind: Deployment |
| 24 | metadata: |
| 25 | name: onos |
Stephane Barbarie | 3559506 | 2018-02-08 08:34:39 -0500 | [diff] [blame] | 26 | namespace: voltha |
Stephane Barbarie | 5e8d9e4 | 2018-02-07 16:15:05 -0500 | [diff] [blame] | 27 | spec: |
| 28 | replicas: 1 |
| 29 | template: |
| 30 | metadata: |
| 31 | labels: |
| 32 | app: onos |
| 33 | annotations: |
| 34 | cni: "weave" |
| 35 | spec: |
| 36 | containers: |
| 37 | - name: onos |
| 38 | image: "voltha-onos:latest" |
| 39 | env: |
| 40 | - name: POD_IP |
| 41 | valueFrom: |
| 42 | fieldRef: |
| 43 | fieldPath: status.podIP |
| 44 | - name: NAMESPACE |
| 45 | valueFrom: |
| 46 | fieldRef: |
| 47 | fieldPath: metadata.namespace |
| 48 | - name: ONOS_APPS |
| 49 | value: "drivers,openflow-base" |
| 50 | ports: |
| 51 | - containerPort: 8101 |
| 52 | name: ssh-port |
| 53 | - containerPort: 6653 |
| 54 | name: of-port |
| 55 | - containerPort: 8181 |
| 56 | name: ui-port |
| 57 | imagePullPolicy: Never |