jellyfin: migrate metrics-block to httproute as well

This commit is contained in:
2026-07-04 16:27:27 -04:00
parent d06ef83ee2
commit 93663535bc
+14 -13
View File
@@ -1,4 +1,4 @@
{{- if and (.Values.jellyfin.metrics.enabled) (.Values.jellyfin.ingress.enabled) -}} {{- if and (.Values.jellyfin.metrics.enabled) (.Values.jellyfin.httpRoute.enabled) -}}
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
@@ -13,21 +13,22 @@ spec:
port: 6767 port: 6767
targetPort: 6767 targetPort: 6767
--- ---
apiVersion: networking.k8s.io/v1 apiVersion: gateway.networking.k8s.io/v1
kind: Ingress kind: HTTPRoute
metadata: metadata:
name: block-metrics name: block-metrics
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
spec: spec:
parentRefs:
{{- toYaml .Values.jellyfin.httpRoute.parentRefs | nindent 4 }}
hostnames:
{{- toYaml .Values.jellyfin.httpRoute.hostnames | nindent 4 }}
rules: rules:
- host: {{ (index .Values.jellyfin.ingress.hosts 0).host }} - matches:
http: - path:
paths: type: PathPrefix
- pathType: Prefix value: /metrics
path: "/metrics" backendRefs:
backend: - name: dummy-svc
service: port: 6767
name: dummy-svc
port:
number: 6767
{{- end }} {{- end }}