Burgyn / MMLib.SwaggerForOcelot

This repo contains swagger extension for ocelot.
MIT License
352 stars 94 forks source link

Swagger Endpoint not working with ingress #165

Closed Kum4r4n closed 3 years ago

Kum4r4n commented 3 years ago

HI, Now I am deploying the microservices in azure Kubernetes, for the time I am using an ingress controller with the path after path is defined, swagger not working for all services

image

this is ingress path define

`apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: name: bubl-ingress namespace: default annotations: kubernetes.io/ingress.class: nginx nginx.ingress.kubernetes.io/ssl-redirect: "false" nginx.ingress.kubernetes.io/use-regex: "true" nginx.ingress.kubernetes.io/configuration-snippet: | rewrite /cu-gw/(.*) /$1 break; spec: rules:

without path setting, swagger is worked, how can I fix that?

Burgyn commented 3 years ago

Hi @Kum4r4n, Can you please provide more detailed information? I have no experience with Ingress. So I have no idea what's going on there.

Thanks.

github-actions[bot] commented 3 years ago

Closing after 8 days of waiting for the additional info requested.