简体   繁体   English

Jenkins CI/CD 部署到 AWS EKS 没有 Docker 注册表

[英]Jenkins CI/CD deployment to AWS EKS without Docker registry

We are trying to setup a development CI/CD pipeline with Jenkins that builds the Docker Images and deploy that Directly to AWS EKS cluster.我们正在尝试使用 Jenkins 设置开发 CI/CD 管道,构建 Docker 图像并将其直接部署到 AWS EKS 集群。 Is this even possible??这甚至可能吗?

Our Existing system我们现有的系统

  • Jenkins as CI to pick the Code from GitLab and Build Docker Image Jenkins 作为 CI 从 GitLab 中选择代码并构建 Docker 图像
  • After Build, Jenkins push the Image to Jfrog Artifactory(Professional) Build完成后,Jenkins将Image推送到Jfrog Artifactory(Professional)
  • We use Harness for CD, that picks the Image from Artifactory and deploy that to AWS我们使用 Harness for CD,它从 Artifactory 中挑选图像并将其部署到 AWS

Here, Artifiactory and Harness Incurs cost for us and we don't want to use that for Development builds.在这里,Artifiactory 和 Harness 会给我们带来成本,我们不想将其用于开发构建。 So, we have setup a Docker Registry with Soantype Nexus3 OSS(open source version).因此,我们使用 Soantype Nexus3 OSS(开源版本)设置了一个 Docker Registry。

I would like to know two Options here:我想在这里知道两个选项:

  1. if I can use Jenkins to Build Docker Image and Push that to Nexus Docker Registry and Use Jenkins Itself for CD to deploy that to AWS EKS?如果我可以使用 Jenkins 构建 Docker 图像并将其推送到 Nexus Docker 注册表并使用 Jenkins 本身作为 CD 将其部署到 AWS EKS?
  2. Build Docker images with Jenkins and directly deploy that to AWS EKS without even having to store it in a docker registry?使用 Jenkins 构建 Docker 图像并直接将其部署到 AWS EKS,甚至无需将其存储在 docker 注册表中?

Any suggestions and help is highly appreciated!非常感谢任何建议和帮助!

the first option much better.第一个选项好多了。

because one day may need roll-back docker image on Kubernetes.因为有一天可能需要回滚 Kubernetes 上的 docker 映像。 (even development environment) (甚至开发环境)

or you can use AWS ECR.或者您可以使用 AWS ECR。 it's easier to use on EKS.它更容易在 EKS 上使用。

and I think ECR is cheaper than Nexus operation cost.而且我认为 ECR 比 Nexus 运营成本便宜。

You may be happy to know that Harness has created a free software version of it's CD service, called Harness Continuous Delivery Community Edition , which should work nicely for your development builds.您可能很高兴知道 Harness 已经为其 CD 服务创建了一个免费软件版本,称为 Harness Continuous Delivery Community Edition ,它应该非常适合您的开发构建。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM