blob: 2185ddfb76e3819dccb52740a832b1e08a89b56a [file] [log] [blame]
Zack Williamsc8c32e02018-11-04 14:43:21 -07001---
Gopinath Tagete2dff4d2018-03-15 17:22:28 -07002# Copyright 2017-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
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070017kind: Deployment
18metadata:
19 name: ofagent
20 namespace: {{ .Values.global.namespace }}
21 serviceAccountName: {{ .Values.global.namespace }}-serviceaccount
22spec:
Gopinath Tagetfff89342018-04-16 12:12:17 -070023 replicas: {{ .Values.replicas.ofagent }}
Matteo Scandolo5628d4b2021-01-11 11:46:12 -080024 selector:
25 matchLabels:
26 name: ofagent
27 release: {{ .Release.Name }}
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070028 template:
29 metadata:
30 labels:
31 app: ofagent
32 annotations:
Gopinath Taget7f357cf2018-07-03 12:34:38 -070033 cni: "calico"
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070034 spec:
35 serviceAccountName: {{ .Values.global.namespace }}-serviceaccount
36 terminationGracePeriodSeconds: 10
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070037 containers:
Zack Williamsc8c32e02018-11-04 14:43:21 -070038 - name: ofagent
Zack Williams2749ae52018-09-28 09:43:43 -070039 image: {{ .Values.global.registry }}{{ .Values.images.ofagent.repository }}:{{ tpl .Values.images.ofagent.tag . }}
40 imagePullPolicy: {{ .Values.images.ofagent.pullPolicy }}
Zack Williamsc8c32e02018-11-04 14:43:21 -070041 env:
42 - name: NAMESPACE
43 valueFrom:
44 fieldRef:
45 fieldPath: metadata.namespace
46 args:
47{{ toYaml .Values.ofagent_args | indent 12 }}
48 volumeMounts:
49 - name: ofagent-logconfig-vol
50 mountPath: /ofagent/ofagent/logconfig.yml
51 subPath: logconfig.yml
52 volumes:
53 - name: ofagent-logconfig-vol
54 configMap:
55 name: ofagent-logconfig
56 items:
57 - key: logconfig
58 path: logconfig.yml