blob: efb2b913dc60f37ac66ca5d5b1e2fc9917f34a17 [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:
Gopinath Taget06bc2ff2018-04-16 10:16:41 -070024type: NodePort
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070025 ports:
26 - name: ssh
27 port: 8101
28 targetPort: 8101
Gopinath Taget06bc2ff2018-04-16 10:16:41 -070029 nodePort: 30115
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070030 - name: of
31 port: 6653
32 targetPort: 6653
33 - name: ui
34 port: 8181
35 targetPort: 8181
Gopinath Taget06bc2ff2018-04-16 10:16:41 -070036 nodePort: 30120
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070037 selector:
38 app: onos
39---
40apiVersion: apps/v1beta1
41kind: Deployment
42metadata:
43 name: onos
44 namespace: {{ .Values.global.namespace }}
45 serviceAccountName: {{ .Values.global.namespace }}-serviceaccount
46spec:
47 replicas: 1
48 template:
49 metadata:
50 labels:
51 app: onos
52 annotations:
53 cni: "calico"
54 spec:
55 serviceAccountName: {{ .Values.global.namespace }}-serviceaccount
56 containers:
57 - name: onos
58 image: {{ .Values.pull_docker_registry }}{{ .Values.images.onos.repository }}:{{ .Values.images.onos.tag }}
59 env:
60 - name: POD_IP
61 valueFrom:
62 fieldRef:
63 fieldPath: status.podIP
64 - name: NAMESPACE
65 valueFrom:
66 fieldRef:
67 fieldPath: metadata.namespace
68 - name: ONOS_APPS
69 value: "drivers,openflow-base"
70 ports:
71 - containerPort: 8101
72 name: ssh-port
73 - containerPort: 6653
74 name: of-port
75 - containerPort: 8181
76 name: ui-port
77 imagePullPolicy: {{ .Values.image_pull_policy }}