blob: 154955150d247f83b4efc9f0a5621284fa060b99 [file] [log] [blame]
Gopinath Tagete2dff4d2018-03-15 17:22:28 -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.
14
15apiVersion: v1
16kind: Service
17metadata:
18 name: onos
19 namespace: {{ .Values.global.namespace }}
20 serviceAccountName: {{ .Values.global.namespace }}-serviceaccount
21 labels:
22 name: onos
23spec:
24 ports:
25 - name: ssh
26 port: 8101
27 targetPort: 8101
28 - name: of
29 port: 6653
30 targetPort: 6653
31 - name: ui
32 port: 8181
33 targetPort: 8181
34 selector:
35 app: onos
36---
37apiVersion: apps/v1beta1
38kind: Deployment
39metadata:
40 name: onos
41 namespace: {{ .Values.global.namespace }}
42 serviceAccountName: {{ .Values.global.namespace }}-serviceaccount
43spec:
44 replicas: 1
45 template:
46 metadata:
47 labels:
48 app: onos
49 annotations:
50 cni: "calico"
51 spec:
52 serviceAccountName: {{ .Values.global.namespace }}-serviceaccount
53 containers:
54 - name: onos
55 image: {{ .Values.pull_docker_registry }}{{ .Values.images.onos.repository }}:{{ .Values.images.onos.tag }}
56 env:
57 - name: POD_IP
58 valueFrom:
59 fieldRef:
60 fieldPath: status.podIP
61 - name: NAMESPACE
62 valueFrom:
63 fieldRef:
64 fieldPath: metadata.namespace
65 - name: ONOS_APPS
66 value: "drivers,openflow-base"
67 ports:
68 - containerPort: 8101
69 name: ssh-port
70 - containerPort: 6653
71 name: of-port
72 - containerPort: 8181
73 name: ui-port
74 imagePullPolicy: {{ .Values.image_pull_policy }}