如何在多容器容器中更新容器图像

如何在多容器容器中更新容器图像

本文介绍了如何在多容器容器中更新容器图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行一个有三个容器的吊舱.需要在不进行滚动升级的情况下更新其中一个容器的映像.

I am running a pod that has three containers. need to update the image of one of the container without doing a rolling upgrade.

如何在不触摸/重新启动其他两个容器的情况下更新容器映像?

How do I get the container image updated without touching/restarting the other two containers?

推荐答案

如果您问自己这个问题,也许您应该重新考虑一些事情.

If you are asking yourself this question, maybe you should reconsider some things.

如其他评论/答案所述,一旦创建的广告连播,无论其内部是什么,都是一个单元.

As stated in the others comment/answers, a pod once created is one unit whatever is inside of it.

如果您需要缩放Pod的某个部分而不是其余部分,或者仅对一部分进行更新并且不想重新启动其余部分(例如缓存系统),则应该查看容器从您的部署中创建另一个独立的服务器.

If you ever needs to scale some part of the pod and not the rest or do updates of just a part and don't want to restart the rest (a caching system for example), you should look to take out the container from you deployment and create another independent one.

这篇关于如何在多容器容器中更新容器图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 22:14