--- apiVersion: cert-manager.io/v1 kind: Certificate metadata: name: nextcloud-cert namespace: istio-system spec: secretName: nextcloud-cert commonName: nextcloud.minhas.io dnsNames: - nextcloud.minhas.io issuerRef: name: letsencrypt-prod kind: ClusterIssuer group: cert-manager.io ... --- apiVersion: networking.istio.io/v1beta1 kind: Gateway metadata: name: nextcloud-gateway namespace: nextcloud spec: selector: istio: ingressgateway servers: - port: number: 443 name: https protocol: HTTPS tls: mode: SIMPLE credentialName: nextcloud-cert hosts: - nextcloud.minhas.io ... --- apiVersion: networking.istio.io/v1beta1 kind: VirtualService metadata: name: nextcloud-gateway namespace: nextcloud spec: hosts: - nextcloud.minhas.io gateways: - nextcloud-gateway http: - match: - uri: prefix: / route: - destination: port: number: 80 host: nextcloud ...