blob: c70f408517fbe8350cd0c3e1cf5298af9ee90ab4 [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
16apiVersion: apps/v1beta1
17kind: 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 }}
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070024 template:
25 metadata:
26 labels:
27 app: ofagent
28 annotations:
Gopinath Taget7f357cf2018-07-03 12:34:38 -070029 cni: "calico"
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070030 spec:
31 serviceAccountName: {{ .Values.global.namespace }}-serviceaccount
32 terminationGracePeriodSeconds: 10
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070033 containers:
Zack Williamsc8c32e02018-11-04 14:43:21 -070034 - name: ofagent
Zack Williams2749ae52018-09-28 09:43:43 -070035 image: {{ .Values.global.registry }}{{ .Values.images.ofagent.repository }}:{{ tpl .Values.images.ofagent.tag . }}
36 imagePullPolicy: {{ .Values.images.ofagent.pullPolicy }}
Zack Williamsc8c32e02018-11-04 14:43:21 -070037 env:
38 - name: NAMESPACE
39 valueFrom:
40 fieldRef:
41 fieldPath: metadata.namespace
42 args:
43{{ toYaml .Values.ofagent_args | indent 12 }}
44 volumeMounts:
45 - name: ofagent-logconfig-vol
46 mountPath: /ofagent/ofagent/logconfig.yml
47 subPath: logconfig.yml
48 volumes:
49 - name: ofagent-logconfig-vol
50 configMap:
51 name: ofagent-logconfig
52 items:
53 - key: logconfig
54 path: logconfig.yml