Files
k3s-manifests/infra/longhorn/longhorn-ingress.yaml

27 lines
796 B
YAML

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: longhorn-ingress
namespace: longhorn-system
annotations:
cert-manager.io/cluster-issuer: letsencrypt-production
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.tls: "true"
spec:
ingressClassName: traefik # We use Traefik as the ingress controller
tls:
- hosts:
- longhorn.mrt0rtikize.ru
secretName: longhorn-tls
rules:
- host: longhorn.mrt0rtikize.ru
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: longhorn-frontend # Service managing Longhorn dashboard
port:
number: 80 # Service port where Longhorn UI runs