[英]Restarting a kubernetes pod from another pod
I'm trying to use argo events to trigger a workflow where I push changes to a database, then I have to restart certain pods so that changes are taken into consideration.我正在尝试使用 argo 事件来触发将更改推送到数据库的工作流程,然后我必须重新启动某些 pod 以便将更改考虑在内。 I know how to use argo to create kubernetes objects, but I don't know how I can use this to restart a pod from within a kubernetes object.
我知道如何使用 argo 创建 kubernetes 对象,但我不知道如何使用它从 kubernetes object 中重新启动 pod。 Alternatively I can also launch a pod from within argo and its container would restart a docker container, is this possible?
或者,我也可以从 argo 内启动一个 pod,它的容器将重新启动一个 docker 容器,这可能吗? If so how?
如果有怎么办?
You can a do zero downtime rolling update via argo rollouts .您可以通过argo rollouts进行零停机滚动更新。
A RollingUpdate slowly replaces the old version with the new version. RollingUpdate 慢慢地用新版本替换旧版本。 As the new version comes up, the old version is scaled down in order to maintain the overall count of the application.
随着新版本的出现,旧版本将按比例缩小以保持应用程序的整体数量。 This is the default strategy of the deployment object
这是部署object的默认策略
Argo Rollouts also supports Canary and BlueGreen. Argo Rollouts 还支持 Canary 和 BlueGreen。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.