• 请不要在回答技术问题时复制粘贴 AI 生成的内容
dunhanson
V2EX  ›  程序员

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

  •  
  •   dunhanson · Jul 13, 2021 · 1374 views
    This topic created in 1791 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   ·   1056 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 19:00 · PVG 03:00 · LAX 12:00 · JFK 15:00
    ♥ Do have faith in what you're doing.