26 lines
770 B
YAML
26 lines
770 B
YAML
# 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
|