Zack Williams | c8c32e0 | 2018-11-04 14:43:21 -0700 | [diff] [blame^] | 1 | --- |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 2 | # 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 | |
| 16 | apiVersion: apps/v1beta1 |
| 17 | kind: Deployment |
| 18 | metadata: |
| 19 | name: ofagent |
| 20 | namespace: {{ .Values.global.namespace }} |
| 21 | serviceAccountName: {{ .Values.global.namespace }}-serviceaccount |
| 22 | spec: |
Gopinath Taget | fff8934 | 2018-04-16 12:12:17 -0700 | [diff] [blame] | 23 | replicas: {{ .Values.replicas.ofagent }} |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 24 | template: |
| 25 | metadata: |
| 26 | labels: |
| 27 | app: ofagent |
| 28 | annotations: |
Gopinath Taget | 7f357cf | 2018-07-03 12:34:38 -0700 | [diff] [blame] | 29 | cni: "calico" |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 30 | spec: |
| 31 | serviceAccountName: {{ .Values.global.namespace }}-serviceaccount |
| 32 | terminationGracePeriodSeconds: 10 |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 33 | containers: |
Zack Williams | c8c32e0 | 2018-11-04 14:43:21 -0700 | [diff] [blame^] | 34 | - name: ofagent |
| 35 | image: {{ .Values.ofagentImage }} |
| 36 | imagePullPolicy: {{ .Values.imagePullPolicy }} |
| 37 | 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 |