forked from SeleniumHQ/docker-selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmonitoring-exporter-deployment.yaml
More file actions
39 lines (39 loc) · 1.71 KB
/
monitoring-exporter-deployment.yaml
File metadata and controls
39 lines (39 loc) · 1.71 KB
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
{{- if eq (include "seleniumGrid.monitoring.enabled" $) "true" }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ template "seleniumGrid.monitoring.exporter.fullname" $ }}
namespace: {{ .Release.Namespace }}
labels: &exporter_labels
app: {{ template "seleniumGrid.monitoring.exporter.fullname" $ }}
app.kubernetes.io/name: {{ template "seleniumGrid.monitoring.exporter.fullname" $ }}
{{- include "seleniumGrid.commonLabels" $ | nindent 4 }}
spec:
replicas: {{ .Values.monitoring.exporter.replicas }}
selector:
matchLabels:
app: {{ template "seleniumGrid.monitoring.exporter.fullname" $ }}
app.kubernetes.io/name: {{ template "seleniumGrid.monitoring.exporter.fullname" $ }}
template:
metadata:
labels: *exporter_labels
annotations:
{{- with .Values.monitoring.exporter.annotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- if or .Values.global.seleniumGrid.imagePullSecret .Values.monitoring.exporter.imagePullSecret }}
imagePullSecrets:
- name: {{ default .Values.global.seleniumGrid.imagePullSecret .Values.monitoring.exporter.imagePullSecret }}
{{- end }}
containers:
- name: graphql-exporter
{{- $imageRegistry := default .Values.global.seleniumGrid.imageRegistry .Values.monitoring.exporter.imageRegistry }}
image: {{ printf "%s/%s:%s" $imageRegistry .Values.monitoring.exporter.imageName .Values.monitoring.exporter.imageTag | quote }}
ports:
- name: metrics
containerPort: {{ .Values.monitoring.exporter.port }}
{{- with .Values.monitoring.exporter.tolerations }}
tolerations: {{ toYaml . | nindent 6 }}
{{- end }}
{{- end }}