36 lines
965 B
YAML
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
|