blob: 3101534036a2a06711278e7703eab8031c42cfc2 [file] [log] [blame]
Richard Jankowski00a04662019-02-05 12:18:53 -05001# Copyright 2019-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.
14
15apiVersion: v1
16kind: Service
17metadata:
18 name: onos
19 namespace: voltha
20 labels:
21 name: onos
22spec:
23 ports:
24 - name: ssh
25 port: 8101
26 targetPort: 8101
27 - name: of
28 port: 6653
29 targetPort: 6653
30 - name: ui
31 port: 8181
32 targetPort: 8181
33 selector:
34 app: onos
35---
36apiVersion: apps/v1beta1
37kind: Deployment
38metadata:
39 name: onos
40 namespace: voltha
41spec:
42 replicas: 1
43 template:
44 metadata:
45 labels:
46 app: onos
47 annotations:
48 cni: "calico"
49 spec:
50 containers:
51 - name: onos
52 image: voltha-onos
53 env:
54 - name: POD_IP
55 valueFrom:
56 fieldRef:
57 fieldPath: status.podIP
58 - name: NAMESPACE
59 valueFrom:
60 fieldRef:
61 fieldPath: metadata.namespace
62 - name: ONOS_APPS
63 value: "drivers,openflow-base"
64 ports:
65 - containerPort: 8101
66 name: ssh-port
67 - containerPort: 6653
68 name: of-port
69 - containerPort: 8181
70 name: ui-port
71 imagePullPolicy: IfNotPresent