traefik intressRoute不接受TLS证书

发布于 2025-01-24 06:51:17 字数 497 浏览 4 评论 0原文

我已经建立了一个TLS Kubernetes Secret,该秘密正常在非Traefik工作负载上运行。

当我尝试将其使用到我的一个入口路线上时,证书似乎尚未应用,并且分配了“ traefik默认证书”。

下面是我的intressroute .yaml

apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: example
  namespace: example-ns
spec:
  entryPoints:
    - websecure
  routes:
    - match: Host(`example.com`)
      kind: Rule
      services:
        - name: example-svc
          port: 9090
  tls:
    secretName: example-tls

I have set up a TLS kubernetes secret which is operating normally on the non-traefik workloads.

When I try to use it to one of my ingress routes the certificate seems to have not been applied and the "TRAEFIK DEFAULT CERT" is assigned.

Below is my IngressRoute .yaml

apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: example
  namespace: example-ns
spec:
  entryPoints:
    - websecure
  routes:
    - match: Host(`example.com`)
      kind: Rule
      services:
        - name: example-svc
          port: 9090
  tls:
    secretName: example-tls

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

七月上 2025-01-31 06:51:17

找到了!

确实,问题与将TLS商店传递到命名空间和Traefik Pod有关:

level=error msg="Default TLS Stores defined in multiple namespaces: [example traefik]" providerName=kubernetescrd

我从“示例”名称空间中删除了TLS商店,一切正常!

Found it!

Indeed issue was related with passing the TLS Store to both namespaces and traefik pod logged the below:

level=error msg="Default TLS Stores defined in multiple namespaces: [example traefik]" providerName=kubernetescrd

I removed the TLS store from the "example" namespace and everything worked fine!

只为一人 2025-01-31 06:51:17

如果您的证书不可用(或不匹配),则Traefik将使用Traefik默认证书

签署新的可用证书要使用。

If your cert is not availabel (or not match), then traefik will use TRAEFIK DEFAULT CERT.

Please sign new availabel certificate to use.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文