apiVersion: networking.istio.io/v1
kind: VirtualService
metadata:
  annotations:
    internal.istio.io/route-semantics: ingress
  name: foo-org-tls-istio-autogenerated-k8s-ingress
  namespace: bar
spec:
  gateways:
  - istio-system/tls-istio-autogenerated-k8s-ingress-bar
  hosts:
  - foo.org
  http:
  - route:
    - destination:
        host: httpbin.bar.svc.mydomain
        port:
          number: 80
      weight: 100
---
apiVersion: networking.istio.io/v1
kind: Gateway
metadata:
  name: tls-istio-autogenerated-k8s-ingress-bar
  namespace: istio-system
spec:
  selector:
    istio: ingressgateway
  servers:
  - hosts:
    - foo.org
    port:
      name: https-443-ingress-tls-bar-0
      number: 443
      protocol: HTTPS
    tls:
      credentialName: myingress-cert
      mode: SIMPLE
  - hosts:
    - '*'
    port:
      name: http-80-ingress-tls-bar
      number: 80
      protocol: HTTP
---
