32 lines
733 B
YAML
32 lines
733 B
YAML
apiVersion: networking.istio.io/v1
|
|
kind: Gateway
|
|
metadata:
|
|
name: istio-gateway
|
|
namespace: istio-ingress
|
|
annotations:
|
|
sidecar.istio.io/inect: true
|
|
spec:
|
|
selector:
|
|
istio: ingressgateway
|
|
servers:
|
|
- port:
|
|
number: 80
|
|
name: http
|
|
protocol: HTTP
|
|
hosts:
|
|
- '*.apps.linvogel.internal'
|
|
- '*.apps.linvogel.ch'
|
|
# tls:
|
|
# httpsRedirect: true # sends 301 redirect for http requests
|
|
- port:
|
|
number: 443
|
|
name: https
|
|
protocol: HTTPS
|
|
hosts:
|
|
- '*.apps.linvogel.internal'
|
|
- '*.apps.linvogel.ch'
|
|
tls:
|
|
mode: SIMPLE # enables HTTPS on this port
|
|
serverCertificate: /etc/certs/servercert.pem
|
|
privateKey: /etc/certs/privatekey.pem
|
|
# TODO: secret here |