From 6b88e2df4700d7ed06003dd7594bf6561eb70aca Mon Sep 17 00:00:00 2001 From: Megha Mehta Date: Sun, 21 Mar 2021 01:40:05 +0530 Subject: [PATCH] add argocd for prod --- kustomize-guestbook/overlays/prod/argo-app.yaml | 16 ++++++++++++++++ .../overlays/prod/kustomization.yaml | 3 ++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 kustomize-guestbook/overlays/prod/argo-app.yaml diff --git a/kustomize-guestbook/overlays/prod/argo-app.yaml b/kustomize-guestbook/overlays/prod/argo-app.yaml new file mode 100644 index 0000000..da62615 --- /dev/null +++ b/kustomize-guestbook/overlays/prod/argo-app.yaml @@ -0,0 +1,16 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: guestbook + namespace: argocd + # finalizers: + # - resources-finalizer.argocd.argoproj.io +spec: + destination: + namespace: prod-kustomize-guestbook + server: https://kubernetes.default.svc + project: default + source: + path: kustomize-guestbook/overlays/dev + repoURL: https://github.com/radtac-craft/argocd-example-apps.git + targetRevision: HEAD \ No newline at end of file diff --git a/kustomize-guestbook/overlays/prod/kustomization.yaml b/kustomize-guestbook/overlays/prod/kustomization.yaml index a9f1d8b..268be52 100644 --- a/kustomize-guestbook/overlays/prod/kustomization.yaml +++ b/kustomize-guestbook/overlays/prod/kustomization.yaml @@ -2,4 +2,5 @@ bases: - ../../base namePrefix: prod- patchesStrategicMerge: -- ingress.yaml \ No newline at end of file +- ingress.yaml +- argo-app.yaml \ No newline at end of file