how to solve tls gateway 404 problem on istio1.10

  1. create secret

    kubectl create -n istio-system secret tls chenshi --key=chenshi.de.key --cert=chenshi.de.crt
    
  2. prepare gateway.yaml

    apiVersion: networking.istio.io/v1alpha3
    kind: Gateway
    metadata:
      name: chenshi
      namespace: istio-system
    spec:
      selector:
        istio: ingressgateway
      servers:
      - port:
          number: 80
          name: http
          protocol: HTTP
        hosts:
        - "*.chenshi.de"
        tls:
          httpsRedirect: true
      - port:
          number: 443
          name: https
          protocol: HTTPS
        tls:
          mode: SIMPLE
          credentialName: chenshi
        hosts:
        - "*.chenshi.de"
    

references: