mirror of
https://github.com/actions/actions-runner-controller.git
synced 2025-12-10 11:41:27 +00:00
* Allow users to customize which namespace they deploy their service monitors into * Add missing metrics object reference * Update charts/actions-runner-controller/templates/githubwebhook.serviceMonitor.yaml * Update charts/actions-runner-controller/templates/controller.metrics.serviceMonitor.yaml * Update charts/actions-runner-controller/values.yaml Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com>
26 lines
783 B
YAML
26 lines
783 B
YAML
{{- if .Values.metrics.serviceMonitor }}
|
|
apiVersion: monitoring.coreos.com/v1
|
|
kind: ServiceMonitor
|
|
metadata:
|
|
labels:
|
|
{{- include "actions-runner-controller.labels" . | nindent 4 }}
|
|
{{- with .Values.metrics.serviceMonitorLabels }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
name: {{ include "actions-runner-controller.serviceMonitorName" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
spec:
|
|
endpoints:
|
|
- path: /metrics
|
|
port: metrics-port
|
|
{{- if .Values.metrics.proxy.enabled }}
|
|
bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
|
|
scheme: https
|
|
tlsConfig:
|
|
insecureSkipVerify: true
|
|
{{- end }}
|
|
selector:
|
|
matchLabels:
|
|
{{- include "actions-runner-controller.selectorLabels" . | nindent 6 }}
|
|
{{- end }}
|