Istio 15 Gateway Https

Submitted by Lizhe on Thu, 06/25/2020 - 06:34

 

kubectl create -n istio-system secret tls istio-ingressgateway-certs --key private.key --cert certificate.crt

 

apiVersion: networking.istio.io/v1alpha3

kind: Gateway

metadata:

  name: example-gateway

  namespace: lizhe

spec:

  selector: 

    istio: ingressgateway

  servers:

    - port:

        number: 80

        name: http

        protocol: HTTP

      hosts:

      - "istio.pac-deg.com"

    - port:

        number: 443

        name: https

        protocol: HTTPS

      tls:

        mode: SIMPLE

        serverCertificate: /etc/istio/ingressgateway-certs/tls.crt

        privateKey: /etc/istio/ingressgateway-certs/tls.key

      hosts:

      - "istio.pac-deg.com"

 

20200625012611

 

20200625012432

20200625012555

20200625021820