在 Kubernetes 上发布新版本时自动更新容器镜像 [英] Auto Update Container Image When New Build Released on Kubernetes

查看:29
本文介绍了在 Kubernetes 上发布新版本时自动更新容器镜像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个私人存储库.当镜像在这个私有存储库上更新时,我想自动更新我在 Kubernetes 上的镜像.我怎样才能做到这一点?

I have a private repository. I want to update my image on Kubernetes automatically when the image is updated on this private repository. How can I achieve this?

推荐答案

Kubernetes 原生不具备有新镜像时自动重新部署 Pod 的特性.理想情况下,您想要的是一个启用 GitOps 风格部署的工具,其中 git 中的状态更改将同步到 Kubernetes 集群.有 FluxArgoCD 支持 GitOps 的开源工具.

Kubernetes natively does not have the feature of automatically redeploying pods when there is a new image. Ideally what you want is a tool which enables GitOps style deployment wherein state change in git will be synced to the Kubernetes cluster. There is Flux and ArgoCD open source tools which supports GitOps.

最近有一个公告将这两个项目合并为ArgoFlux.

Recently there is an announcement to combine these two projects as ArgoFlux.

这篇关于在 Kubernetes 上发布新版本时自动更新容器镜像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆