简体   繁体   English

将更新推送到gcloud容器/吊舱

[英]push updates to gcloud containers/pods

Went through to tutorial without any issues but I'm confused on the best way to push updates to the application. 顺利完成了教程 ,但我对将更新推送到应用程序的最佳方法感到困惑。 The tutorial mentions a bit about kubectl rolling-update but not really following that. 本教程仅提及了有关kubectl rolling-update内容,但并未真正遵循。 Any feedback on exact steps to use after deploying the app? 部署应用程序后对使用的确切步骤有任何反馈吗?

You should use the kubectl rolling update command. 您应该使用kubectl滚动更新命令。

For a bit of background, imagine that you have an application that is running in 10 pods. 作为背景知识,假设您有一个在10个容器中运行的应用程序。 Now you have a new version of your application. 现在,您有了应用程序的新版本。 You don't want to stop the current version and then start the new version, because you will have a period of time where you aren't serving any user traffic. 您不想停止当前版本然后再启动新版本,因为您将有一段时间不提供任何用户流量。 And if there is an issue with the new version, that period of time may be quite long as you push the new version, detect an issue, remove the new version, and restart the old version. 并且,如果新版本存在问题,则在您推送新版本,检测到问题,删除新版本并重新启动旧版本时,该时间可能会很长。 A rolling update will replace your pods one at a time with a new pod running the updated version of your application. 滚动更新将一次用运行您的应用程序更新版本的新Pod替换您的Pod。 This allows you to gradually shift incoming requests to the new version without any downtime. 这使您可以将传入的请求逐渐转移到新版本,而无需停机。 It also allows you to catch issues with your new version while it serving a fraction of incoming requests. 它还可以在服务于少量传入请求的同时捕获新版本的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM