You've already forked reposilite-charts
All checks were successful
Helm / helm-lint (push) Successful in 6s
Helm / helm-unittest (push) Successful in 6s
Generate README / generate-parameters (push) Successful in 28s
Markdown linter / markdown-link-checker (push) Successful in 18s
Release / publish-chart (push) Successful in 8s
Markdown linter / markdown-lint (push) Successful in 28s
47 lines
2.3 KiB
YAML
47 lines
2.3 KiB
YAML
{{- if eq (include "reposilite.podMonitor.enabled" $) "true" }}
|
|
---
|
|
apiVersion: monitoring.coreos.com/v1
|
|
kind: PodMonitor
|
|
metadata:
|
|
{{- with (include "reposilite.podMonitor.annotations" . | fromYaml) }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- with (include "reposilite.podMonitor.labels" . | fromYaml) }}
|
|
labels:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
name: {{ include "reposilite.fullname" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
spec:
|
|
podMetricsEndpoints:
|
|
- basicAuth:
|
|
password:
|
|
key: {{ include "reposilite.secrets.prometheusBasicAuth.passwordKey" . }}
|
|
name: {{ include "reposilite.secrets.prometheusBasicAuth.name" . }}
|
|
username:
|
|
key: {{ include "reposilite.secrets.prometheusBasicAuth.usernameKey" . }}
|
|
name: {{ include "reposilite.secrets.prometheusBasicAuth.name" . }}
|
|
enableHttp2: {{ required "The enableHttp2 option of the podMonitor is not defined!" .Values.prometheus.metrics.podMonitor.enableHttp2 }}
|
|
followRedirects: {{ required "The followRedirects option of the podMonitor is not defined!" .Values.prometheus.metrics.podMonitor.followRedirects }}
|
|
honorLabels: {{ required "The honorLabels option of the podMonitor is not defined!" .Values.prometheus.metrics.podMonitor.honorLabels }}
|
|
interval: {{ required "The scrape interval of the podMonitor is not defined!" .Values.prometheus.metrics.podMonitor.interval }}
|
|
path: {{ required "The metric path of the podMonitor is not defined!" .Values.prometheus.metrics.podMonitor.path }}
|
|
port: {{ required "The metric port of the podMonitor is not defined!" .Values.prometheus.metrics.podMonitor.port | quote }}
|
|
{{- with .Values.prometheus.metrics.podMonitor.relabelings }}
|
|
relabelings:
|
|
{{- toYaml . | nindent 6 }}
|
|
{{- end }}
|
|
scrapeTimeout: {{ required "The scrape timeout of the podMonitor is not defined!" .Values.prometheus.metrics.podMonitor.scrapeTimeout }}
|
|
scheme: {{ required "The scheme of the podMonitor is not defined!" .Values.prometheus.metrics.podMonitor.scheme }}
|
|
{{- with .Values.prometheus.metrics.podMonitor.tlsConfig }}
|
|
tlsConfig:
|
|
{{- toYaml . | nindent 6 }}
|
|
{{- end }}
|
|
namespaceSelector:
|
|
matchNames:
|
|
- {{ .Release.Namespace }}
|
|
selector:
|
|
matchLabels:
|
|
{{- include "reposilite.pod.selectorLabels" . | nindent 6 }}
|
|
{{- end }} |