如何防止Traefik提供默认的自签名证书

时间:2020-10-12 09:30:21

标签: docker kubernetes nexus traefik-ingress

我正在尝试在traefik v2.3.1后面设置nexus 3 docker注册表,问题是我想做什么

docker login <docker_url> -u <user> -p <password>

我收到此错误

Error response from daemon: Get https://docker_url/v1/users/: x509: certificate is valid for 6ddc59ad70b84f1659f8ffb82376935b.6f07c26f5a92b019cea10818bc6b7b7e.traefik.default, not docker_url

Treafik参数

          - "--entryPoints.web.address=:80/tcp"
          - "--entryPoints.websecure.address=:443/tcp"
          - "--entryPoints.traefik.address=:9000/tcp"
          - "--api.dashboard=true"
          - "--api.insecure"
          - "--ping=true"
          - "--providers.kubernetescrd"
          - "--providers.kubernetesingress"
          - "--log.level=DEBUG"
          - "--serversTransport.insecureSkipVerify=true"

IngressRouteTCP

apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: nexus
spec:
  routes:
    - match: Host(`docker_url`)
      kind: Rule
      services:
        - name: nexus-svc
          port: 5000

在nexus 3中,我配置了一个docker注册表以使用http监听端口5000

所以我的问题是真的,我只需要执行treafik即可停止提供默认的自我认证证书,否则我看不到另一个问题

感谢您的提前帮助

0 个答案:

没有答案