V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
dunhanson
V2EX  ›  程序员

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

  •  
  •   dunhanson · Jul 13, 2021 · 1289 views
    This topic created in 1763 days ago, the information mentioned may be changed or developed.

    我在 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
       Jul 13, 2021
    有人遇到过吗
    dunhanson
        2
    dunhanson  
    OP
       Jul 13, 2021
    kubectl patch ImagePullBackOff
    dunhanson
        3
    dunhanson  
    OP
       Jul 13, 2021
    找到问题了,忘记每个 namespace 都要创建一个 docker secret 了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1386 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 17:08 · PVG 01:08 · LAX 10:08 · JFK 13:08
    ♥ Do have faith in what you're doing.