Andy Bavier | f15d53a | 2018-03-07 17:34:30 -0700 | [diff] [blame] | 1 | --- |
| 2 | |
| 3 | # Copyright 2018-present Open Networking Foundation |
| 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | |
| 17 | apiVersion: apps/v1beta2 |
| 18 | kind: Deployment |
| 19 | metadata: |
| 20 | name: {{ template "onos.fullname" . }} |
Gopinath Taget | fff8934 | 2018-04-16 12:12:17 -0700 | [diff] [blame] | 21 | namespace: {{ .Values.namespace }} |
Andy Bavier | f15d53a | 2018-03-07 17:34:30 -0700 | [diff] [blame] | 22 | labels: |
| 23 | app: {{ template "onos.name" . }} |
| 24 | chart: {{ template "onos.chart" . }} |
| 25 | release: {{ .Release.Name }} |
| 26 | heritage: {{ .Release.Service }} |
| 27 | spec: |
| 28 | replicas: {{ .Values.replicaCount }} |
| 29 | selector: |
| 30 | matchLabels: |
| 31 | app: {{ template "onos.name" . }} |
| 32 | release: {{ .Release.Name }} |
| 33 | template: |
| 34 | metadata: |
| 35 | labels: |
| 36 | app: {{ template "onos.name" . }} |
| 37 | release: {{ .Release.Name }} |
| 38 | spec: |
Gopinath Taget | fff8934 | 2018-04-16 12:12:17 -0700 | [diff] [blame] | 39 | serviceAccount: {{ .Values.serviceAccountName }} |
| 40 | serviceAccountName: {{ .Values.serviceAccountName }} |
Andy Bavier | f15d53a | 2018-03-07 17:34:30 -0700 | [diff] [blame] | 41 | containers: |
| 42 | - name: {{ .Chart.Name }} |
Matteo Scandolo | f6c28df | 2018-05-08 11:44:05 -0700 | [diff] [blame] | 43 | image: {{ .Values.onosImage }} |
| 44 | imagePullPolicy: {{ .Values.imagePullPolicy }} |
Gopinath Taget | fff8934 | 2018-04-16 12:12:17 -0700 | [diff] [blame] | 45 | env: |
| 46 | {{ toYaml .Values.onos_env | indent 12 }} |
Andy Bavier | f15d53a | 2018-03-07 17:34:30 -0700 | [diff] [blame] | 47 | ports: |
| 48 | - name: ovsdb |
| 49 | containerPort: {{ .Values.services.ovsdb.port }} |
| 50 | - name: openflow |
| 51 | containerPort: {{ .Values.services.openflow.port }} |
| 52 | - name: ssh |
| 53 | containerPort: {{ .Values.services.ssh.port }} |
| 54 | - name: ui |
| 55 | containerPort: {{ .Values.services.ui.port }} |
| 56 | - name: cluster |
| 57 | containerPort: {{ .Values.services.cluster.port }} |
| 58 | resources: |
| 59 | {{ toYaml .Values.resources | indent 12 }} |
| 60 | {{- with .Values.nodeSelector }} |
| 61 | nodeSelector: |
| 62 | {{ toYaml . | indent 8 }} |
| 63 | {{- end }} |
| 64 | {{- with .Values.affinity }} |
| 65 | affinity: |
| 66 | {{ toYaml . | indent 8 }} |
| 67 | {{- end }} |
| 68 | {{- with .Values.tolerations }} |
| 69 | tolerations: |
| 70 | {{ toYaml . | indent 8 }} |
| 71 | {{- end }} |