Browse Source

Add examples for a plain-YAML guestbook and kustomize guestbook

pull/3/head
Jesse Suen 7 years ago
parent
commit
d9c52b4c89
No known key found for this signature in database GPG Key ID: 90C911E8A6106562
  1. 4
      README.md
  2. 20
      guestbook/guestbook-ui-deployment.yaml
  3. 12
      guestbook/guestbook-ui-svc.yaml
  4. 0
      ksonnet-guestbook/.gitignore
  5. 0
      ksonnet-guestbook/app.yaml
  6. 0
      ksonnet-guestbook/components/guestbook-ui.jsonnet
  7. 2
      ksonnet-guestbook/components/params.libsonnet
  8. 0
      ksonnet-guestbook/environments/base.libsonnet
  9. 0
      ksonnet-guestbook/environments/default/globals.libsonnet
  10. 0
      ksonnet-guestbook/environments/default/main.jsonnet
  11. 0
      ksonnet-guestbook/environments/default/params.libsonnet
  12. 0
      ksonnet-guestbook/environments/dev/globals.libsonnet
  13. 0
      ksonnet-guestbook/environments/dev/main.jsonnet
  14. 0
      ksonnet-guestbook/environments/dev/params.libsonnet
  15. 0
      ksonnet-guestbook/environments/prod/globals.libsonnet
  16. 0
      ksonnet-guestbook/environments/prod/main.jsonnet
  17. 0
      ksonnet-guestbook/environments/prod/params.libsonnet
  18. 5
      kustomize-guestbook/base/kustomization.yaml
  19. 7
      kustomize-guestbook/dev/kustomization.yaml
  20. 11
      kustomize-guestbook/prod/kustomization.yaml

4
README.md

@ -6,9 +6,11 @@ to explore ArgoCD and GitOps!
| Application | Description |
|-------------|-------------|
| [guestbook](guestbook/) | The ksonnet hello word application |
| [guestbook](guestbook/) | A hello word application |
| [ksonnet-guestbook](ksonnet-guestbook/) | The guestbook application as a ksonnet app |
| [helm-guestbook](helm-guestbook/) | The guestbook application as a Helm chart |
| [jsonnet-guestbook](jsonnet-guestbook/) | The guestbook application as a raw jsonnet |
| [kustomize-guestbook](kustomize-guestbook/) | The guestbook application as a kustomize app |
| [pre-post-sync](pre-post-sync/) | Demonstrates ArgoCD PreSync and PostSync hooks |
| [blue-green-deploy](blue-green-deploy/) | Demonstrates an ArgoCD Sync hook which performs a blue/green deployment |
| [sock-shop](sock-shop/) | A microservices demo application (https://microservices-demo.github.io) |

20
guestbook/guestbook-ui-deployment.yaml

@ -0,0 +1,20 @@
---
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: guestbook-ui
spec:
replicas: 1
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

12
guestbook/guestbook-ui-svc.yaml

@ -0,0 +1,12 @@
---
apiVersion: v1
kind: Service
metadata:
name: guestbook-ui
spec:
ports:
- port: 80
targetPort: 80
selector:
app: guestbook-ui
type: LoadBalancer

0
guestbook/.gitignore → ksonnet-guestbook/.gitignore

0
guestbook/app.yaml → ksonnet-guestbook/app.yaml

0
guestbook/components/guestbook-ui.jsonnet → ksonnet-guestbook/components/guestbook-ui.jsonnet

2
guestbook/components/params.libsonnet → ksonnet-guestbook/components/params.libsonnet

@ -9,7 +9,7 @@
"guestbook-ui": {
containerPort: 80,
image: "gcr.io/heptio-images/ks-guestbook-demo:0.2",
name: "guestbook-ui",
name: "ks-guestbook-ui",
replicas: 1,
servicePort: 80,
type: "LoadBalancer",

0
guestbook/environments/base.libsonnet → ksonnet-guestbook/environments/base.libsonnet

0
guestbook/environments/default/globals.libsonnet → ksonnet-guestbook/environments/default/globals.libsonnet

0
guestbook/environments/default/main.jsonnet → ksonnet-guestbook/environments/default/main.jsonnet

0
guestbook/environments/default/params.libsonnet → ksonnet-guestbook/environments/default/params.libsonnet

0
guestbook/environments/dev/globals.libsonnet → ksonnet-guestbook/environments/dev/globals.libsonnet

0
guestbook/environments/dev/main.jsonnet → ksonnet-guestbook/environments/dev/main.jsonnet

0
guestbook/environments/dev/params.libsonnet → ksonnet-guestbook/environments/dev/params.libsonnet

0
guestbook/environments/prod/globals.libsonnet → ksonnet-guestbook/environments/prod/globals.libsonnet

0
guestbook/environments/prod/main.jsonnet → ksonnet-guestbook/environments/prod/main.jsonnet

0
guestbook/environments/prod/params.libsonnet → ksonnet-guestbook/environments/prod/params.libsonnet

5
kustomize-guestbook/base/kustomization.yaml

@ -0,0 +1,5 @@
namePrefix: kustomize-
resources:
- ../../guestbook/guestbook-ui-deployment.yaml
- ../../guestbook/guestbook-ui-svc.yaml

7
kustomize-guestbook/dev/kustomization.yaml

@ -0,0 +1,7 @@
namePrefix: dev-
bases:
- ../base
commonLabels:
environment: dev

11
kustomize-guestbook/prod/kustomization.yaml

@ -0,0 +1,11 @@
namePrefix: prod-
bases:
- ../base
commonLabels:
environment: prod
imageTags:
- name: gcr.io/heptio-images/ks-guestbook-demo
newTag: "0.1"
Loading…
Cancel
Save