Canary deployments apply the change to a small number of users before rolling it out to all users, thereby minimizing risk.
Create Deployment Stages: Separate stages for canary and full deployment.
Canary deployment Traffic shifting - Direct traffic from Kubernetes ingress controllers or AWS ALB to canary pods.
Monitoring and Rollback: Add monitoring, such as Prometheus to monitor canary stability and automate rollbacks.
Example Jenkinsfile:
