Add simple longhorn config file deployed on homelab
This commit is contained in:
25
longhorn.yaml
Normal file
25
longhorn.yaml
Normal 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
|
||||||
Reference in New Issue
Block a user