blob: 5843a3a0181aac37ebb2fd3d01e99ea655794ea9 [file] [log] [blame]
Stephane Barbarie5e8d9e42018-02-07 16:15:05 -05001apiVersion: v1
2kind: Service
3metadata:
4 name: onos
5 labels:
6 name: onos
7spec:
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---
21apiVersion: apps/v1beta1
22kind: Deployment
23metadata:
24 name: onos
25spec:
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