edgemesh icon indicating copy to clipboard operation
edgemesh copied to clipboard

Wildcard Gateway not supporting (*.mydomain.com)

Open abhinavjha126 opened this issue 3 years ago • 7 comments

Hi, I am using Kubeedge v1.8.1 and using edgemesh on top of it.I am unable to give "WILDCARD GATEWAY".Its not working for me. apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: name: edgemesh-gateway namespace: zbl spec: selector: kubeedge: edgemesh-gateway servers: - hosts: - '*.mydomain.com' port: name: http-0 number: 12345 protocol: HTTP

Instead of this i have to define apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: name: edgemesh-gateway namespace: zbl spec: selector: kubeedge: edgemesh-gateway servers: - hosts: - 'app.mydomain.com' port: name: http-0 number: 12345 protocol: HTTP

Its not supporting host: *.mydomain.com Instead i have to provide: app.mydomain.com

This issue i am asking because i have to add "mongo.mydomain.com" as a virtual service also. Please help

abhinavjha126 avatar Mar 28 '22 11:03 abhinavjha126

need your edgemesh-gateway logs

Poorunga avatar Mar 28 '22 13:03 Poorunga

@Poorunga This is the log 2022-03-29T05:52:37.556126989+00:00 stderr F E0329 05:52:37.556110 1 server.go:133] get pb from conn err: no match virtual service 2022-03-29T05:52:38.859325747+00:00 stderr F I0329 05:52:38.859264 1 server.go:81] tls required 2022-03-29T05:52:38.859565574+00:00 stderr F E0329 05:52:38.859539 1 server.go:133] get pb from conn err: no match virtual service 2022-03-29T05:52:38.865202894+00:00 stderr F I0329 05:52:38.865115 1 server.go:81] tls required 2022-03-29T05:52:38.865469150+00:00 stderr F E0329 05:52:38.865453 1 server.go:133] get pb from conn err: no match virtual service 2022-03-29T05:52:40.090451974+00:00 stderr F I0329 05:52:40.090367 1 server.go:81] tls required 2022-03-29T05:52:40.090694175+00:00 stderr F E0329 05:52:40.090673 1 server.go:133] get pb from conn err: no match virtual service 2022-03-29T05:52:40.091844102+00:00 stderr F I0329 05:52:40.091821 1 server.go:81] tls required 2022-03-29T05:52:40.092009689+00:00 stderr F E0329 05:52:40.091987 1 server.go:133] get pb from conn err: no match virtual service 2022-03-29T05:56:16.672928463+00:00 stderr F I0329 05:56:16.672612 1 server.go:81] tls required

When i am defining gateway as "*.mydomain.com", it is not able to recognize vs with host "app.mydomain.com"

abhinavjha126 avatar Mar 29 '22 05:03 abhinavjha126

it is not able to recognize vs with host "app.mydomain.com"

Maybe this error:

2022-03-29T05:52:38.859565574+00:00 stderr F E0329 05:52:38.859539 1 server.go:133] get pb from conn err: no match virtual service

Please show your gateway.yaml virtualService.yaml

Poorunga avatar Mar 29 '22 06:03 Poorunga

@Poorunga GATEWAY apiVersion: networking.istio.io/v1beta1 kind: Gateway metadata: annotations: name: edgemesh-gateway namespace: abcd spec: selector: kubeedge: edgemesh-gateway servers:

  • hosts:
    • ‘*.mydomain.com' port: name: http-0 number: 80 protocol: HTTPS

VIRTUAL SERVICE apiVersion: networking.istio.io/v1beta1 kind: VirtualService metadata: annotations: name: edgemesh-gateway-svc namespace: abcd spec: gateways:

  • edgemesh-gateway hosts:
  • app.mydomain.com http:
  • match:
    • uri: prefix: / route:
    • destination: host: zbl-internal-nginx-service port: number: 80

Please edit this to see the correct indentation.

abhinavjha126 avatar Mar 30 '22 05:03 abhinavjha126

@Poorunga Please reply.I am stuck at this point

abhinavjha126 avatar Mar 30 '22 20:03 abhinavjha126

multiple virtual services are not working.

For example gateway: *.abc.com vs1: app.abc.com vs2: test.abc.com vs3: new.abc.com

Is this expected behavior?

vikarna avatar Apr 05 '22 05:04 vikarna

@Poorunga Any solutions??

abhinavjha126 avatar Apr 05 '22 10:04 abhinavjha126