blob: cef01ac0781bf26a36a2070e5b4176bdad12fb3b [file] [log] [blame]
Scott Baker08b9f452018-09-19 16:28:13 -07001# Copyright 2017-present Open Networking Foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15{{- if .Values.alarm_generator_enable }}
16apiVersion: apps/v1beta1
17kind: Deployment
18metadata:
19 name: alarm-generator
20 namespace: {{ .Values.global.namespace }}
21 serviceAccountName: {{ .Values.global.namespace }}-serviceaccount
22spec:
23 replicas: {{ .Values.replicas.alarm_generator }}
24 template:
25 metadata:
26 labels:
27 app: alarm-generator
28 annotations:
29 cni: "calico"
30 spec:
31 serviceAccountName: {{ .Values.global.namespace }}-serviceaccount
32 containers:
33 - name: alarm-generator
34 image: {{ .Values.alarmGeneratorImage }}
35 imagePullPolicy: {{ .Values.imagePullPolicy }}
36 env:
37 - name: POD_IP
38 valueFrom:
39 fieldRef:
40 fieldPath: status.podIP
41 - name: NAMESPACE
42 valueFrom:
43 fieldRef:
44 fieldPath: metadata.namespace
45 args:
46{{ toYaml .Values.alarm_generator_args | indent 12 }}
47{{- end }}