peridot/infrastructure/istio-prod/istio-base-gateway.yaml

54 lines
1.1 KiB
YAML
Raw Permalink Normal View History

2022-07-07 20:11:50 +00:00
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: base-gateway-public
namespace: istio-system
spec:
selector:
istio: ingressgateway # use Istio default gateway implementation
servers:
- port:
number: 80
name: http
protocol: HTTP
hosts:
- "*.build.resf.org"
tls:
httpsRedirect: true
- port:
number: 443
name: https
protocol: HTTPS
hosts:
- "*.build.resf.org"
tls:
mode: SIMPLE
credentialName: default-cert
---
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: base-gateway-confidential
namespace: istio-system
spec:
selector:
istio: ingressgateway-internal # use Istio default gateway implementation
servers:
- port:
number: 80
name: http
protocol: HTTP
hosts:
- "*.corp.build.resf.org"
tls:
httpsRedirect: true
- port:
number: 443
name: https
protocol: HTTPS
hosts:
- "*.corp.build.resf.org"
tls:
mode: SIMPLE
credentialName: default-cert