简体   繁体   English

从另一个 pod 重新启动 kubernetes pod

[英]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.

相关问题 Kubernetes POD 重启 - Kubernetes POD restarting Kubernetes-如何在 kubernetes 中将数据从一个 Pod 发送到另一个 Pod - Kubernetes-How to send data from a pod to another pod in kubernetes 谷歌发布订阅。 从 AppEngine 到 Kubernetes pod 以及从一个 Kubernetes pod 到另一个 Kubernetes pod 的通信 - Google PubSub. Communication From AppEngine to Kubernetes pod and from one Kubernetes pod to another Kubernetes pod kubernetes:从同一命名空间中的另一个Pod到一个Pod - kubernetes: ssh to a pod from another pod in same namespace 从 Kubernetes pod 内重新启动主机节点上的 Docker 守护进程 - Restarting Docker daemon on host node from within Kubernetes pod 从故障点运行 kubernetes pod 而无需重新启动 - Run the kubernetes pod from the point of failure without restarting 在 Kubernetes 的 pod 中从另一个容器启动一个容器 - Start a container from another one in a pod in Kubernetes Kubernetes pod 重定向到另一个 pod 中的相同端口 - Kubernetes pod redirect to the same port in another pod 在同一 kubernetes 集群中从一个 pod 调用一个 rest api 到另一个 pod - Call a rest api from one pod to another pod in same kubernetes cluster OpenShift从另一个Pod访问Mongodb Pod - OpenShift Access Mongodb Pod from another Pod
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM