'How to configure traefik kubernetes ingress to restrict specific API paths?
I have a microservice which is deployed to Kubernetes and has following REST APIs:
- /abc
- /abc/xyz
- /abc/{path-param}/def
The traefik ingress is currently configured as below which provides access to all the APIs.
paths:
- backend:
service:
name: abc
port:
number: 80
path: /abc
pathType: Prefix
Is there a way to restrict access to only /abc/xyz API using traefik ingress configuration?
Thank you.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|