Help me to translit Ingress to VirtualService.
I have this ingress and it works:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: example-https-service
namespace: cnv-dev
annotations:
meta.helm.sh/release-name: example-https-service
meta.helm.sh/release-namespace: cnv-dev
nginx.ingress.kubernetes.io/app-root: /
nginx.ingress.kubernetes.io/backend-protocol: HTTPS
nginx.ingress.kubernetes.io/rewrite-target: /$2
nginx.ingress.kubernetes.io/use-regex: 'true'
spec:
tls:
- hosts:
- dev-cnv-srv.example.com
secretName: cnv-tls-certs
rules:
- host: dev-cnv-srv.example.com
http:
paths:
- path: / example-https-service(/|$)(.*)
pathType: Prefix
backend:
service:
name: example-https-service
port:
number: 8090
How should I translate it to VirtualService properly?