blob: f1aeb00cc1f627d77aeafde54ff07a87b9fdc8fb [file] [log] [blame]
Stephane Barbarie5e8d9e42018-02-07 16:15:05 -05001apiVersion: v1
2kind: Service
3metadata:
4 name: onos
Stephane Barbarie35595062018-02-08 08:34:39 -05005 namespace: voltha
Stephane Barbarie5e8d9e42018-02-07 16:15:05 -05006 labels:
7 name: onos
8spec:
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---
22apiVersion: apps/v1beta1
23kind: Deployment
24metadata:
25 name: onos
Stephane Barbarie35595062018-02-08 08:34:39 -050026 namespace: voltha
Stephane Barbarie5e8d9e42018-02-07 16:15:05 -050027spec:
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