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

kubectl patch 更新镜像失败的原因?

  •  
  •   dunhanson · 2021-07-13 17:30:18 +08:00 · 790 次点击
    这是一个创建于 1017 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我在 dashboard 上面修改 deployment 的镜像就没问题,用 patch 就拉取镜像失败,好奇怪

    kubectl patch deployment bxkc-admin -n test -p '{"spec":{"template":{"spec":{"containers":[{"name":"bxkc-admin","image":"harbor.test.com/test/test-admin:2021.0713.1633"}]}}}}'
    
    dunhanson
        1
    dunhanson  
    OP
       2021-07-13 18:13:59 +08:00
    有人遇到过吗
    dunhanson
        2
    dunhanson  
    OP
       2021-07-13 18:26:06 +08:00
    kubectl patch ImagePullBackOff
    dunhanson
        3
    dunhanson  
    OP
       2021-07-13 18:32:38 +08:00
    找到问题了,忘记每个 namespace 都要创建一个 docker secret 了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3279 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 13:02 · PVG 21:02 · LAX 06:02 · JFK 09:02
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.