blob: f5ef095e97452afc6f7c44a45dfc414a36a1bece [file] [log] [blame]
Zack Williams2749ae52018-09-28 09:43:43 -07001---
Scott Baker08b9f452018-09-19 16:28:13 -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
16{{- if .Values.alarm_generator_enable }}
17apiVersion: apps/v1beta1
18kind: Deployment
19metadata:
20 name: alarm-generator
21 namespace: {{ .Values.global.namespace }}
22 serviceAccountName: {{ .Values.global.namespace }}-serviceaccount
23spec:
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 Williams2749ae52018-09-28 09:43:43 -070035 image: {{ .Values.global.registry }}{{ .Values.images.alarm_generator.repository }}:{{ tpl .Values.images.alarm_generator.tag . }}
36 imagePullPolicy: {{ .Values.images.alarm_generator.pullPolicy }}
Scott Baker08b9f452018-09-19 16:28:13 -070037 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 }}