40 lines
997 B
YAML
40 lines
997 B
YAML
---
|
|
apiVersion: networking.istio.io/v1beta1
|
|
kind: Gateway
|
|
metadata:
|
|
name: teastore-gateway
|
|
namespace: ptp-chat
|
|
spec:
|
|
selector:
|
|
istio: ingressgateway # Holt sich das Standard-Ingress-Gateway
|
|
servers:
|
|
- port:
|
|
number: 443
|
|
name: https-teastore
|
|
protocol: HTTPS
|
|
hosts:
|
|
- teastore.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: teastore-vs
|
|
namespace: ptp-chat
|
|
spec:
|
|
hosts:
|
|
- teastore.k8s.bittehackmichnicht.de
|
|
gateways:
|
|
- teastore-gateway
|
|
http:
|
|
- match:
|
|
- uri:
|
|
prefix: /
|
|
route:
|
|
- destination:
|
|
host: teastore-webui.ptp-chat.svc.cluster.local
|
|
port:
|
|
number: 8080
|