Skip to content

Examples: Add v1 Kubernetes bluegreen example - #7236

Merged
mohammedfirdouss merged 4 commits into
pipe-cd:masterfrom
rahulshendre:examples-v1-k8s-bluegreen
Sep 3, 2026
Merged

Examples: Add v1 Kubernetes bluegreen example#7236
mohammedfirdouss merged 4 commits into
pipe-cd:masterfrom
rahulshendre:examples-v1-k8s-bluegreen

Conversation

@rahulshendre

Copy link
Copy Markdown
Contributor

What this PR does:
Add bluegreen deployment strategy example for v1

Why we need it:
Adding more examples

Which issue(s) this PR fixes:

Part of #6266

Does this PR introduce a user-facing change?:

  • How are users affected by this change:
  • Is this breaking change:
  • How to migrate (if breaking change):

Signed-off-by: rahulshendre <rahulshendre789@gmail.com>
Copilot AI lite review requested due to automatic review settings August 25, 2026 12:50
@rahulshendre
rahulshendre requested a review from a team as a code owner August 25, 2026 12:50
@netlify

netlify Bot commented Aug 25, 2026

Copy link
Copy Markdown

Deploy Preview for pipecd-site canceled.

Name Link
🔨 Latest commit 226ab28
🔍 Latest deploy log https://app.netlify.com/projects/pipecd-site/deploys/6a957fa362ed2a00089038f0

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new PipeCD v1 (plugin-based piped) Kubernetes BlueGreen example application under examples/v1/, expanding the set of runnable reference configurations for users preparing pipedv1 setups.

Changes:

  • Added a BlueGreen pipeline example using canary rollout + traffic routing + approval stages.
  • Added Kubernetes manifests (Deployment + Service) wired for variant-based traffic switching.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
examples/v1/kubernetes/bluegreen/app.pipecd.yaml Defines the v1 Application and BlueGreen pipeline stages, plus plugin manifest inputs and references.
examples/v1/kubernetes/bluegreen/deployment.yaml Adds the base Deployment manifest labeled for PRIMARY variant rollout.
examples/v1/kubernetes/bluegreen/service.yaml Adds the Service manifest selecting the PRIMARY variant and enabling traffic switching via label changes.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +20 to +22
- name: helloworld
image: ghcr.io/pipe-cd/helloworld:v0.30.0
args:
Comment on lines +34 to +35
This app demonstrates how to deploy a Kubernetes app by BlueGreen strategy without requiring any mesh.
References: [adding a new app](https://pipecd.dev/docs-v1.0.x/user-guide/managing-application/adding-an-application/), [app configuration](https://pipecd.dev/docs-v1.0.x/user-guide/managing-application/configuration-reference/)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The v1 example uses versioned docs-v1.0.x paths since the unversioned docs URLs redirect to the latest stable release, which right now is v0 itself.
Keeping them pinned to docs-v1.0.x makes sure that the links are correct for v1 users

Signed-off-by: rahulshendre <rahulshendre789@gmail.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

rahulshendre and others added 2 commits August 25, 2026 18:43

@mohammedfirdouss mohammedfirdouss left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mohammedfirdouss
mohammedfirdouss merged commit 858a3c6 into pipe-cd:master Sep 3, 2026
64 checks passed
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Thank you for contributing to PipeCD, @rahulshendre! The changes in this pull request will be part of the upcoming release!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants