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