Add simple longhorn config file deployed on homelab

This commit is contained in:
2026-02-26 15:40:55 +01:00
parent f9dab18b41
commit 43e8490725

25
longhorn.yaml Normal file
View File

@@ -0,0 +1,25 @@
# kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/v1.7.2/deploy/longhorn.yaml
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: longhorn-ingress
namespace: longhorn-system
annotations:
cert-manager.io/cluster-issuer: "step-ca-issuer" # On dit à cert-manager d'utiliser ton émetteur Step-CA
traefik.ingress.kubernetes.io/router.entrypoints: websecure
spec:
tls:
- hosts:
- longhorn.teyssier.lan
secretName: longhorn-tls # On réutilise ton certif s'il est ClusterWide ou on en génère un
rules:
- host: longhorn.teyssier.lan
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: longhorn-frontend
port:
number: 80