Zack Williams | 2749ae5 | 2018-09-28 09:43:43 -0700 | [diff] [blame] | 1 | --- |
Scott Baker | 08b9f45 | 2018-09-19 16:28:13 -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 | {{- if .Values.alarm_generator_enable }} |
| 17 | apiVersion: apps/v1beta1 |
| 18 | kind: Deployment |
| 19 | metadata: |
| 20 | name: alarm-generator |
| 21 | namespace: {{ .Values.global.namespace }} |
| 22 | serviceAccountName: {{ .Values.global.namespace }}-serviceaccount |
| 23 | spec: |
| 24 | replicas: {{ .Values.replicas.alarm_generator }} |
| 25 | template: |
| 26 | metadata: |
| 27 | labels: |
| 28 | app: alarm-generator |
| 29 | annotations: |
| 30 | cni: "calico" |
| 31 | spec: |
| 32 | serviceAccountName: {{ .Values.global.namespace }}-serviceaccount |
| 33 | containers: |
| 34 | - name: alarm-generator |
Zack Williams | 2749ae5 | 2018-09-28 09:43:43 -0700 | [diff] [blame] | 35 | image: {{ .Values.global.registry }}{{ .Values.images.alarm_generator.repository }}:{{ tpl .Values.images.alarm_generator.tag . }} |
| 36 | imagePullPolicy: {{ .Values.images.alarm_generator.pullPolicy }} |
Scott Baker | 08b9f45 | 2018-09-19 16:28:13 -0700 | [diff] [blame] | 37 | env: |
| 38 | - name: POD_IP |
| 39 | valueFrom: |
| 40 | fieldRef: |
| 41 | fieldPath: status.podIP |
| 42 | - name: NAMESPACE |
| 43 | valueFrom: |
| 44 | fieldRef: |
| 45 | fieldPath: metadata.namespace |
| 46 | args: |
| 47 | {{ toYaml .Values.alarm_generator_args | indent 12 }} |
| 48 | {{- end }} |