From 5fcc46c23e068716dd4766c3a6f9c166618de8d5 Mon Sep 17 00:00:00 2001 From: rahulshendre Date: Mon, 24 Aug 2026 18:36:46 +0530 Subject: [PATCH 1/2] examples: add v1 Kubernetes simple example Signed-off-by: rahulshendre --- examples/v1/kubernetes/simple/app.pipecd.yaml | 17 ++++++++++++ examples/v1/kubernetes/simple/deployment.yaml | 27 +++++++++++++++++++ examples/v1/kubernetes/simple/service.yaml | 11 ++++++++ 3 files changed, 55 insertions(+) create mode 100644 examples/v1/kubernetes/simple/app.pipecd.yaml create mode 100644 examples/v1/kubernetes/simple/deployment.yaml create mode 100644 examples/v1/kubernetes/simple/service.yaml diff --git a/examples/v1/kubernetes/simple/app.pipecd.yaml b/examples/v1/kubernetes/simple/app.pipecd.yaml new file mode 100644 index 0000000000..af1f23b51a --- /dev/null +++ b/examples/v1/kubernetes/simple/app.pipecd.yaml @@ -0,0 +1,17 @@ +apiVersion: pipecd.dev/v1beta1 +kind: Application +spec: + name: simple + labels: + env: example + team: product + plugins: + kubernetes: + input: + manifests: + - deployment.yaml + - service.yaml + description: | + This app demonstrates how to deploy a Kubernetes application with [Quick Sync](https://pipecd.dev/docs-v1.0.x/concepts/#sync-strategy) strategy. + No pipeline is specified then in each deployment PipeCD will roll out the new version and switch all traffic to it immediately. + 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/) diff --git a/examples/v1/kubernetes/simple/deployment.yaml b/examples/v1/kubernetes/simple/deployment.yaml new file mode 100644 index 0000000000..f1e0d4b29a --- /dev/null +++ b/examples/v1/kubernetes/simple/deployment.yaml @@ -0,0 +1,27 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: simple + labels: + app: simple +spec: + replicas: 2 + selector: + matchLabels: + app: simple + pipecd.dev/variant: primary + template: + metadata: + labels: + app: simple + pipecd.dev/variant: primary + annotations: + sidecar.istio.io/inject: "false" + spec: + containers: + - name: helloworld + image: ghcr.io/pipe-cd/helloworld:v0.32.0 + args: + - server + ports: + - containerPort: 9085 diff --git a/examples/v1/kubernetes/simple/service.yaml b/examples/v1/kubernetes/simple/service.yaml new file mode 100644 index 0000000000..52ca9d1f59 --- /dev/null +++ b/examples/v1/kubernetes/simple/service.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: Service +metadata: + name: simple +spec: + selector: + app: simple + ports: + - protocol: TCP + port: 9085 + targetPort: 9085 From 26687dfb993c37515d7d048e8fa7ef02f4da60b2 Mon Sep 17 00:00:00 2001 From: Rahul Shendre <144231863+rahulshendre@users.noreply.github.com> Date: Mon, 24 Aug 2026 19:27:22 +0530 Subject: [PATCH 2/2] chore: add copilot suggestion Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Rahul Shendre <144231863+rahulshendre@users.noreply.github.com> --- examples/v1/kubernetes/simple/app.pipecd.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/v1/kubernetes/simple/app.pipecd.yaml b/examples/v1/kubernetes/simple/app.pipecd.yaml index af1f23b51a..9688157701 100644 --- a/examples/v1/kubernetes/simple/app.pipecd.yaml +++ b/examples/v1/kubernetes/simple/app.pipecd.yaml @@ -13,5 +13,5 @@ spec: - service.yaml description: | This app demonstrates how to deploy a Kubernetes application with [Quick Sync](https://pipecd.dev/docs-v1.0.x/concepts/#sync-strategy) strategy. - No pipeline is specified then in each deployment PipeCD will roll out the new version and switch all traffic to it immediately. + When no pipeline is specified, PipeCD will roll out the new version and switch all traffic to it immediately. 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/)