Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions examples/v1/kubernetes/simple/app.pipecd.yaml
Original file line number Diff line number Diff line change
@@ -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.
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/)
27 changes: 27 additions & 0 deletions examples/v1/kubernetes/simple/deployment.yaml
Original file line number Diff line number Diff line change
@@ -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
11 changes: 11 additions & 0 deletions examples/v1/kubernetes/simple/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: simple
spec:
selector:
app: simple
ports:
- protocol: TCP
port: 9085
targetPort: 9085
Loading