构建并使用 ArgoCD 部署 Dockerfile。

huangapple go评论49阅读模式
英文:

Build and deploy Dockerfile with ArgoCD

问题

我正在尝试在 ArgoCD 中加载一个应用程序,对于存储在注册表中的图像一切正常;但是在部署之前是否可以应用一个 Dockerfile 到图像上,通过 helm chart/yaml 应用程序告诉 ArgoCD 呢?

在 ArgoCD 文档中,似乎暗示这是可能的:
https://argo-cd.readthedocs.io/en/stable/operator-manual/custom_tools/#byoi-build-your-own-image

英文:

I am trying to load an application in ArgoCD, and for images stored in the registry all fine; but could it be possible to apply a Dockerfile to an image before deploying it, telling it to ArgoCD via helm chart/yaml app?

In the ArgoCD documentation, it seems to suggest that it's possible:
https://argo-cd.readthedocs.io/en/stable/operator-manual/custom_tools/#byoi-build-your-own-image

答案1

得分: 0

不,这不可能。 ArgoCD 不会自行构建图像,这不是它的责任。

您必须构建图像并将其发布到某个地方,然后通过 ArgoCD 部署它们。就像您在没有 ArgoCD 的情况下一样:Kubernetes 不会构建图像,它需要从某个地方拉取图像。

您提到的链接是用于构建自定义的 ArgoCD 图像。

英文:

No it's not possible. ArgoCD won't build images on its own, it's not its responsibility.

You have to build images and publish them somewhere to deploy them via ArgoCD. Like you would without ArgoCD: Kubernetes won't build images, it need to pull them from somewhere.

The link you are referring to is for building a custom ArgoCD image.

huangapple
  • 本文由 发表于 2023年4月19日 17:21:23
  • 转载请务必保留本文链接:https://go.coder-hub.com/76052808.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定