edgemesh icon indicating copy to clipboard operation
edgemesh copied to clipboard

Regarding accessing of HTTP and HTTPS Gateway simultaneously!!

Open abhinavjha126 opened this issue 3 years ago • 7 comments

I am using Kubeedge version v1. 8.1.I am not able to add HTTP and HTTPS Gateway access together. What should I do??????

abhinavjha126 avatar Apr 18 '22 05:04 abhinavjha126

Please provide some environment information, some yaml files of gateway,virtualservice, logs, etc.

Poorunga avatar Apr 18 '22 06:04 Poorunga

@Poorunga This is my VIRTUAL SERVICE File

apiVersion: networking.istio.io/v1beta1 kind: VirtualService metadata: name: edgemesh-gateway-svc namespace: zbl spec: gateways:

  • edgemesh-gateway hosts:
  • '*.web.com' http:
  • match:
    • uri: prefix: / route:
    • destination: host: nginx-custom port: number: 80

Please tell how can i add one more VIRTUAL SERVICE along with this.It is not accepting 2 VIRTUAL SERVICE. I want to add another VIRTUAL SERVICE with TCP Protocol for mongo. Will i have to make 2 different file or one file is sufficient for VIRTUAL SERVICE????

abhinavjha126 avatar Apr 18 '22 14:04 abhinavjha126

EdgeMesh only support one HttpRoute match now.

Poorunga avatar Apr 19 '22 03:04 Poorunga

A virtual service can only configure a single TCP service.

sdghchj avatar May 05 '22 02:05 sdghchj

@Poorunga @sdghchj Can u please provide VirtualService for tcp protocol

abhinavjha126 avatar May 10 '22 06:05 abhinavjha126

A virtual service can only configure a single TCP service.

Can u please send the virtualservice file

abhinavjha126 avatar May 10 '22 06:05 abhinavjha126

apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
  name: edgemesh-gateway
spec:
  selector:
    kubeedge: edgemesh-gateway
  servers:
    - hosts:
        - '*'
      port:
        name: tcp-1
        number: 80
        protocol: TCP
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: edgemesh-gateway-svc
spec:
  gateways:
    - edgemesh-gateway
  hosts:
    - '*'
  tcp:
    - route:
      - destination:
          host: xxxxxx-svc
          port:
            number: 8080

sdghchj avatar May 10 '22 06:05 sdghchj