Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Google Cloud Platform icon
Labs

Canary Deployments with Kubernetes and Jenkins

Canary deployments are a great way to achieve greater stability when doing continuous deployments. By testing changes in a live environment with real users, you can deploy with greater confidence while minimizing the impact of bugs and issues on your users. In this learning activity, you will implement a simple canary deployment to a Kubernetes Cluster as part of a Jenkins Pipeline.

Google Cloud Platform icon
Lab platform
Lab Info
Level
Intermediate
Last updated
Sep 23, 2025
Duration
1h 0m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Set up the project and Jenkins and run an initial deployment.

    To this, you will need to perform the following steps:

    1. Fork the sample source code repo: https://github.com/ACloudGuru-Resources/cicd-pipeline-train-schedule-canary.
    2. Change the DOCKER_IMAGE_NAME at the top of the Jenkinsfile to use your docker hub username instead of willbla.
    3. Log in to the Jenkins server.
    4. Set up the credentials in Jenkins (GitHub access token, Docker Hub, and Kubeconfig).
    5. Create a project and build it from your fork.
  2. Challenge

    Add a canary stage to the pipeline and run a successful deployment.

    To complete this, you will need to do the following:

    1. Create a deployment template for the canary deployment with a "canary" track.
    2. Add a canary stage to the Jenkinsfile to perform the canary deployment.
    3. Modify the production deploy stage to clean up the canary deployment after production deployment is approved.
    4. Execute the deployment in Jenkins.

    Don't hesitate to Refer to the example-solution branch of the sample source code repo for an example of how to do this!

About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight