I made an containerized application using ECR, EKS.
For my CI-CD pipeline, I have AWS Code pipeline:
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.