简体   繁体   中英

Kubernetes EKS, AWS CodeBuild & AWS Lambda

I made an containerized application using ECR, EKS.

For my CI-CD pipeline, I have AWS Code pipeline:

  • AWS Code Commit - GitHub
  • AWS CodeBuild that will automatically perform build tasks such us building the app in a docker image, tag the image and lastly push the image to ECR.

In my deploy process I need it to be on AWS pipeline so I turn to AWS Lambda that can execute functions to rollout an update; However, in libraries such as kubernetes python, nodeJS client. There is no API that will do the kubectl rollout restart deployment . My deployment process is pretty simple do a rollout update withoun any change in image tag (the same image tag)

You could use a deploy tool for kubernetes, in my current setup I'm using samson and a lambda function to let samson knows when there is a new image pushed to ecr, when it occours you can then deploy the new image to your kubernetes cluster.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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