Hacker News new | past | comments | ask | show | jobs | submit login

Don’t do that, use

    kubectl set image deployment/foo main=main:new-image
instead



It also accepts "*" if you don't know or care about the container name(s)

    kubectl set image deployment/foo "*=the/new/image"
and then, my other favorite (albeit horribly named, IMHO) "rollout status" to watch it progress:

    kubectl rollout status deployment/foo


TIL. Thanks for the advice.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: