Files
cluster/services/external-nightscout/ingress.yaml
T
willemjan f585fa0aa9 fix: separate web-entrypoint IngressRoute for http->https redirect
A router with TLS enabled (from the Ingress tls section) never matches on
the plain web entrypoint, so entrypoints web,websecure on the Ingress itself
still 404'd on :80. Keep the Ingress on websecure only and add an
IngressRoute on web with the redirect-https middleware.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <[email protected]>
2026-11-06 20:20:23 +01:00

26 lines
535 B
YAML

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ns
namespace: external
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.tls: "true"
spec:
ingressClassName: traefik
rules:
- host: ns.labzand.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: ns-external
port:
number: 1337
tls:
- hosts:
- ns.labzand.com
secretName: ns-labzand-tls