Hi,
I’m having an issue regarding the internal routing of my services. If I define the following virtualService and call it from another namespace does not work.
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
annotations:
meta.helm.sh/release-name: my-svc
meta.helm.sh/release-namespace: service
labels:
app: my-svc
app.kubernetes.io/instance: my-svc
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: my-svc
app.kubernetes.io/version: 0.0.0
name: my-svc
namespace: service
spec:
hosts:
- my-svc
http:
- name: default
route:
- destination:
host: my-svc
Instead of that if I define the following serviceEntry it works:
apiVersion: networking.istio.io/v1alpha3
kind: ServiceEntry
metadata:
annotations:
meta.helm.sh/release-name: my-svc
meta.helm.sh/release-namespace: service
labels:
app: my-service
app.kubernetes.io/instance: my-svc
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: my-svc
app.kubernetes.io/version: 0.0.0
name: my-svc
namespace: service
spec:
endpoints:
- address: my-svc.service.cluster.local
hosts:
- my-svc
ports:
- name: http
number: 80
protocol: HTTP
resolution: DNS
What I’m doing wrong?
Thanks