V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
brightrystal
V2EX  ›  Kubernetes

请问大佬们,有尝试过在 k3s 上登录阿里云镜像私有库吗?

  •  
  •   brightrystal · 184 天前 · 545 次点击
    这是一个创建于 184 天前的主题,其中的信息可能已经有所发展或是发生改变。

    mirrors:
      "registry.cn-shenzhen.aliyuncs.com":
          endpoint:
             - "https://registry.cn-shenzhen.aliyuncs.com"
    configs:
      "registry.cn-shenzhen.aliyuncs.com":
         auth:
            username: "账号"
            password: "密码"
    

    最近趁着双十一薅了一堆 vps ,打算搭建一个 k3s 集群,私有库我是打算用阿里云的私有镜像库,但是发现它好像没办法在 k3s 登录使用,但是用 --user 这种方式能把镜像拉下来

    sudo ctr image pull --user 账号:密码 registry.cn-shenzhen.aliyuncs.com/xxxx/xxxxx:v1.0.0
    

    不知道大佬们有没有遇到过这个问题

    4 条回复    2023-12-02 12:05:34 +08:00
    bigha
        1
    bigha  
       171 天前
    当然能用了 自己搭建的 harbor 仓库都能用
    brightrystal
        2
    brightrystal  
    OP
       170 天前
    解决问题了,发现是某几个节点没有配置镜像的授权,我以为每个节点的运行时配置都是由 Master 节点统一配置的,😔
    johnzr
        3
    johnzr  
       154 天前 via iPhone
    k3s 你搭配 rancher 用吗?还是裸命令行?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2390 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 11:56 · PVG 19:56 · LAX 04:56 · JFK 07:56
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.