Skip to content

Instantly share code, notes, and snippets.

@xring
Created May 30, 2019 03:00
Show Gist options
  • Save xring/92babe137b9f837e34aad117919437d8 to your computer and use it in GitHub Desktop.
Save xring/92babe137b9f837e34aad117919437d8 to your computer and use it in GitHub Desktop.
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
name: api
namespace: x
spec:
selector:
istio: ingressgateway
servers:
- hosts:
- api.xring.info
port:
name: http
number: 80
protocol: HTTP
tls:
httpsRedirect: true
- hosts:
- api.xring.info
port:
name: https
number: 443
protocol: HTTPS
tls:
mode: SIMPLE
privateKey: /etc/istio/ingressgateway-certs/tls.key
serverCertificate: /etc/istio/ingressgateway-certs/tls.crt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment