HTTPS port protocol returns bad gateway

Hello,

I installed istio in my kubernetes and also injected in my namespace. Before istio, my app was accessible through https (443) with certificates.

So I created an ingress (my url to istio ingressgateway in port 443 and i also added the certificates) and then I created a gateway through a yaml file :

    apiVersion: networking.istio.io/v1alpha3
    kind: Gateway
    metadata:
      name: home
      namespace: getit-dev
    spec:
      selector:
        istio: ingressgateway
      servers:
      - port:
          number: 443
          name: https
          protocol: HTTPS
        hosts:
        - 'myurl.com'
        tls:
          mode: SIMPLE
          credentialName: getit-secret 

Virtual service

{{ if .Values.istio.enabled }}
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: home-route
  namespace: getit-dev
spec:
  hosts:
  - myurl.com
  gateways:
  - home
  http:
  - route:
    - destination:
        host: {{ .Values.service.name }}
        subset: version
        port:
          number: 8080
{{ end }}

And the destination rules

{{ if .Values.istio.enabled }}
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
  name: home-destination
  namespace: getit-dev
spec:
  host: {{ .Values.service.name }}
  subsets:
  - name: version
    labels:
      version: {{ .Values.productionDeployment.image.version }}
{{ end }}

But when I try to reach my app, there is an error Bad Gateway. Also my istio ingress gateway have a 443 port exposed

Hi. Were you able to solve this. I am having the same issue.

Thanks,
Adrian