Files
kubernetes-config/longhorn/longhorn-istio.yaml
jona.klaess 79e13e55b3
All checks were successful
Mirror to GitHub / mirror (push) Successful in 8s
fix longhorn config
2026-06-09 17:19:38 +02:00

36 lines
965 B
YAML

apiVersion: networking.istio.io/v1beta1
kind: Gateway
metadata:
name: longhorn-gateway
namespace: longhorn-system
spec:
selector:
istio: ingressgateway # Holt sich das Standard-Ingress-Gateway
servers:
- port:
number: 443
name: https-longhorn
protocol: HTTPS
hosts:
- longhorn.k8s.bittehackmichnicht.de
tls:
mode: SIMPLE # TLS-Termination am Gateway, damit der VirtualService den Traffic aufteilen kann
credentialName: istio-cert # Name des TLS-Zertifikats in Kubernetes, das für die Verschlüsselung verwendet wird
---
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: longhorn-vs
namespace: longhorn-system
spec:
hosts:
- longhorn.k8s.bittehackmichnicht.de
gateways:
- longhorn-gateway
http:
- route:
- destination:
host: longhorn-frontend.longhorn-system.svc.cluster.local
port:
number: 80