Adds example usage for Kustomize 2 (#6)
This commit is contained in:
parent
8a1cb4a02d
commit
179faabd63
|
@ -1,7 +1,7 @@
|
||||||
# ArgoCD Example Apps
|
# ArgoCD Example Apps
|
||||||
|
|
||||||
This repository contains example applications for demoing ArgoCD functionality. Feel free
|
This repository contains example applications for demoing ArgoCD functionality. Feel free
|
||||||
to register this repository to your ArgoCD instance, or fork this repo and push your own commits
|
to register this repository to your ArgoCD instance, or fork this repo and push your own commits
|
||||||
to explore ArgoCD and GitOps!
|
to explore ArgoCD and GitOps!
|
||||||
|
|
||||||
| Application | Description |
|
| Application | Description |
|
||||||
|
@ -10,7 +10,8 @@ to explore ArgoCD and GitOps!
|
||||||
| [ksonnet-guestbook](ksonnet-guestbook/) | The guestbook application as a ksonnet app |
|
| [ksonnet-guestbook](ksonnet-guestbook/) | The guestbook application as a ksonnet app |
|
||||||
| [helm-guestbook](helm-guestbook/) | The guestbook application as a Helm chart |
|
| [helm-guestbook](helm-guestbook/) | The guestbook application as a Helm chart |
|
||||||
| [jsonnet-guestbook](jsonnet-guestbook/) | The guestbook application as a raw jsonnet |
|
| [jsonnet-guestbook](jsonnet-guestbook/) | The guestbook application as a raw jsonnet |
|
||||||
| [kustomize-guestbook](kustomize-guestbook/) | The guestbook application as a kustomize app |
|
| [kustomize-guestbook](kustomize-guestbook/) | The guestbook application as a Kustomize 1 app |
|
||||||
|
| [kustomize2-guestbook](kustomize2-guestbook/) | The guestbook application as a Kustomize 2 app |
|
||||||
| [pre-post-sync](pre-post-sync/) | Demonstrates Argo CD PreSync and PostSync hooks |
|
| [pre-post-sync](pre-post-sync/) | Demonstrates Argo CD PreSync and PostSync hooks |
|
||||||
| [helm-dependency](helm-dependency/) | Demonstrates how to customize an OTS (off-the-shelf) helm chart from an upstream repo |
|
| [helm-dependency](helm-dependency/) | Demonstrates how to customize an OTS (off-the-shelf) helm chart from an upstream repo |
|
||||||
| [blue-green-deploy](blue-green-deploy/) | Demonstrates an Argo CD Sync hook which performs a blue/green deployment |
|
| [blue-green-deploy](blue-green-deploy/) | Demonstrates an Argo CD Sync hook which performs a blue/green deployment |
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
apiVersion: apps/v1beta2
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: guestbook-ui
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
revisionHistoryLimit: 3
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: guestbook-ui
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: guestbook-ui
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- image: gcr.io/heptio-images/ks-guestbook-demo:0.2
|
||||||
|
name: guestbook-ui
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
|
@ -0,0 +1,10 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: guestbook-ui
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: 80
|
||||||
|
selector:
|
||||||
|
app: guestbook-ui
|
|
@ -0,0 +1,7 @@
|
||||||
|
namePrefix: kustomize-
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- guestbook-ui-deployment.yaml
|
||||||
|
- guestbook-ui-svc.yaml
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
Loading…
Reference in New Issue