blob: 7eda7534185a9303be322b5b472143c3810d5fe1 [file] [log] [blame]
Andy Bavier20b7da42018-10-08 13:03:42 -07001---
2# Copyright 2018-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
Matteo Scandolo5628d4b2021-01-11 11:46:12 -080016apiVersion: apps/v1
Andy Bavier20b7da42018-10-08 13:03:42 -070017kind: Deployment
18metadata:
19 name: {{ template "abstract-olt.fullname" . }}
20 labels:
21 app: {{ template "abstract-olt.name" . }}
22 chart: {{ template "abstract-olt.chart" . }}
23 release: {{ .Release.Name }}
24 heritage: {{ .Release.Service }}
25spec:
26 replicas: {{ .Values.replicaCount }}
27 selector:
28 matchLabels:
29 app: {{ template "abstract-olt.name" . }}
30 release: {{ .Release.Name }}
31 template:
32 metadata:
33 labels:
34 app: {{ template "abstract-olt.name" . }}
35 release: {{ .Release.Name }}
36 {{- with .Values.annotations }}
37 annotations:
38{{ toYaml . | indent 8 }}
39 {{- end }}
40 spec:
41 containers:
42 - name: {{ .Chart.Name }}
Zack Williams2749ae52018-09-28 09:43:43 -070043 image: "{{ .Values.global.registry }}{{ .Values.image.repository }}:{{ tpl .Values.image.tag . }}"
Andy Bavier20b7da42018-10-08 13:03:42 -070044 imagePullPolicy: {{ .Values.image.pullPolicy }}
45 command: ["/app/AbstractOLT", "-log_file", "/dev/stdout"]
46 resources:
47{{ toYaml .Values.resources | indent 12 }}
48 {{- with .Values.nodeSelector }}
49 nodeSelector:
50{{ toYaml . | indent 8 }}
51 {{- end }}
52 {{- with .Values.affinity }}
53 affinity:
54{{ toYaml . | indent 8 }}
55 {{- end }}
56 {{- with .Values.tolerations }}
57 tolerations:
58{{ toYaml . | indent 8 }}
59 {{- end }}