如何向所有正在运行的Pod发送命令 由 eet发布于 2020-05-17 14:02:04 kubernetes 收藏 假设容器已暴露端口80。 如何将命令发送到所有正在运行的Pod,而不是1。 由于负载均衡器会将流量路由到仅1个Pod。 (注意:此处使用HAproxy负载均衡器,仅供参考) 评论 请 登录后发表观点 择一人深爱 2020-05-17 14:02:05 There is no particular way, kubectl exec only works one container at a time so you will need to call it into a loop if you want to use it on many. 点赞 评论 到底啦
There is no particular way,
kubectl exec
only works one container at a time so you will need to call it into a loop if you want to use it on many.