blob: 4327dc09ed29fcb58c2f4e0dace4628219221106 [file] [log] [blame]
Zack Williams41513bf2018-07-07 20:08:35 -07001# Copyright 2017-present Open Networking Foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
Stephane Barbarie5e8d9e42018-02-07 16:15:05 -050014apiVersion: v1
15kind: Service
16metadata:
17 name: onos
Stephane Barbarie35595062018-02-08 08:34:39 -050018 namespace: voltha
Stephane Barbarie5e8d9e42018-02-07 16:15:05 -050019 labels:
20 name: onos
21spec:
22 ports:
23 - name: ssh
24 port: 8101
25 targetPort: 8101
26 - name: of
27 port: 6653
28 targetPort: 6653
29 - name: ui
30 port: 8181
31 targetPort: 8181
32 selector:
33 app: onos
34---
35apiVersion: apps/v1beta1
36kind: Deployment
37metadata:
38 name: onos
Stephane Barbarie35595062018-02-08 08:34:39 -050039 namespace: voltha
Stephane Barbarie5e8d9e42018-02-07 16:15:05 -050040spec:
41 replicas: 1
42 template:
43 metadata:
44 labels:
45 app: onos
46 annotations:
Stephane Barbarie2d4e07f2018-03-26 16:46:45 -040047 cni: "calico"
Stephane Barbarie5e8d9e42018-02-07 16:15:05 -050048 spec:
49 containers:
50 - name: onos
51 image: "voltha-onos:latest"
52 env:
53 - name: POD_IP
54 valueFrom:
55 fieldRef:
56 fieldPath: status.podIP
57 - name: NAMESPACE
58 valueFrom:
59 fieldRef:
60 fieldPath: metadata.namespace
61 - name: ONOS_APPS
62 value: "drivers,openflow-base"
63 ports:
64 - containerPort: 8101
65 name: ssh-port
66 - containerPort: 6653
67 name: of-port
68 - containerPort: 8181
69 name: ui-port
70 imagePullPolicy: Never