如何在Traefik中使用forwardauth与内部服务?
Traefik允许指定中间件,使用forwardauth
在文档中指定使用外部提供商的文档中对每个请求进行身份验证。
# Forward authentication to example.com
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: test-auth
spec:
forwardAuth:
address: https://example.com/auth
Traefik allows to specify a middleware to authenticate each request using forwardAuth
, in the documentation it specifies to use an external provider.
# Forward authentication to example.com
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: test-auth
spec:
forwardAuth:
address: https://example.com/auth ????
I have an auth server running inside my k8 cluster itself which I want to use instead on an external service, is there a way to use forwardAuth
to point to internal service?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我使用K8完全合格的域名作为此地址的工作:
service-name.namespace.svc.cluster.local.local
。I used K8 Fully Qualified Domain Name as the address for this to work:
service-name.namespace.svc.cluster.local
.