-
Notifications
You must be signed in to change notification settings - Fork 88
/
Copy pathexporter-deployment.yaml
57 lines (57 loc) · 1.76 KB
/
exporter-deployment.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{{ if .Values.exporter.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "litmus.fullname" . }}-monitor
namespace: {{ .Release.Namespace }}
labels:
{{- include "litmus.exporterLabels" . | indent 4 }}
{{- if .Values.exporter.annotations }}
annotations:
{{- toYaml .Values.exporter.annotations | nindent 4 }}
{{- end }}
spec:
replicas: 1
selector:
matchLabels:
{{- include "litmus.exporterSelectors" . | indent 6 }}
template:
metadata:
labels:
{{- include "litmus.exporterLabels" . | indent 8 }}
{{- if .Values.exporter.annotations }}
annotations:
{{- toYaml .Values.exporter.annotations | nindent 10 }}
{{- end }}
spec:
serviceAccountName: {{ include "litmus.fullname" . }}
serviceAccount: {{ include "litmus.fullname" . }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName | quote }}
{{- end }}
containers:
- name: litmus-exporter
image: "{{ .Values.exporter.image.repository }}:{{ .Values.exporter.image.tag }}"
imagePullPolicy: {{ .Values.exporter.image.pullPolicy }}
env:
- name: WATCH_NAMESPACE
value: ''
ports:
- name: http
containerPort: 8080
protocol: TCP
resources:
{{- toYaml .Values.exporter.resources | nindent 12 }}
{{- with .Values.exporter.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.exporter.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.exporter.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{ end }}