Kubernetes EKS, AWS CodeBuild & AWS Lambda

4/9/2020

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)

-- Edcel Cabrera Vista
amazon-web-services
aws-lambda
kubernetes

1 Answer

4/15/2020

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.

-- Bryan Calvo Benoit
Source: StackOverflow