Jin Kwon
Jin Kwon

Reputation: 22027

How can I make the /swagger-ui.html to work behind ingress?

My application is deployed into the EKS.

Here comes my helm values.

  ingress:
    enabled: true
    annotations:
      nginx.ingress.kubernetes.io/rewrite-target: /$1
    hosts:
      - host: apigateway.dev.mycompany.io
        paths:
          - /my-service/(.*)

When I go to the http://apigateway.dev.mycompany.io/my-service/swagger-ui.html,

It redirects to http://apigateway.dev.mycompany.io/webjars/swagger-ui/index.html with 404.

How can I make it work as it works in my local browser?

Upvotes: 0

Views: 26

Answers (0)

Related Questions