feat(helm): add helm chart

This commit is contained in:
cyrilix committed 2022-10-13 14:20:34 +02:00
1 parent 5cab1cd96d
commit 86bfdd5622
9 files changed
+247 -73

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
{{- if .Values.podMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: {{ include "pod-cleaner.fullname" . }}
labels:
{{- include "pod-cleaner.labels" . | nindent 4 }}
spec:
selector:
matchLabels:
{{- include "pod-cleaner.labels" . | nindent 4 }}
podMetricsEndpoints:
- port: {{ include "pod-cleaner.metrics.portName" . | quote }}
path: {{ .Values.podMonitor.path | quote }}
{{- if .Values.podMonitor.tlsConfig }}
scheme: "https"
tlsConfig:
{{- toYaml .Values.podMonitor.tlsConfig | trim | nindent 8 }}
{{- end }}
interval: {{ .Values.podMonitor.interval }}
scrapeTimeout: {{ .Values.podMonitor.additionalLabels }}
namespaceSelector:
matchNames:
- {{ .Release.Namespace }}
{{- if .Values.podMonitor.additionalLabels }}
jobLabel:
{{- toYaml .Values.podMonitor.additionalLabels | trim | nindent 4 }}
{{- end }}
{{- end }}