gateway.yaml
701 Bytes
apiVersion: gateway.networking.k8s.io/v1beta1
kind: Gateway
metadata:
name: gateway-http
spec:
gatewayClassName: istio
listeners:
- name: http-all
port: 80
protocol: HTTP
---
apiVersion: gateway.networking.k8s.io/v1beta1
kind: Gateway
metadata:
name: gateway-https
spec:
gatewayClassName: istio
listeners:
- name: https-base
protocol: HTTPS
port: 443
hostname: "example.com"
tls:
certificateRefs:
- kind: Secret
name: exact-cert
- name: https-subs
protocol: HTTPS
port: 443
hostname: "*.example.com"
tls:
certificateRefs:
- kind: Secret
name: subs-cert
---