내용으로 건너뛰기

Best way to deploy to EKS

0

is it best way to push image to ECR in build phase and runs kubectl command to deploy in test EKS cluster in test account, once testing completes and can we add another build phase that use the same image and run the kubectl command on the production cluster in production account.

질문됨 3년 전357회 조회
2개 답변
2
수락된 답변

Best approach is to implement Continuous Deployment on Amazon EKS using GitOps approach. Then CodeBuild would be restricted to the Continuous Integration phase (tests, scans, builds and pushes). There are many GitOps controllers out there, but Flux and ArgoCD are the most used.

https://aws.amazon.com/blogs/containers/automating-amazon-eks-with-gitops/

AWS
답변함 3년 전
AWS
전문가
검토됨 8달 전
0

Hi,

I see no issues with the approach you have mentioned. It's convenient to manage a single repository and allow cross account read access to it since you need to build and upload to ECR just once.

Another alternative is to setup cross account replication if you want maintain separation between test and production account. But in this case lifecycle rules and IAM policies are not replicated. You can also upload to each account separately. For me it just comes down to preference

--Syd

답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠