From 212c4a3ce73ea590ab069df19be0be7064fc4ac3 Mon Sep 17 00:00:00 2001 From: Sven Ketelsen Date: Sun, 5 Jun 2022 15:40:53 +0200 Subject: [PATCH] feat: deployment --- config/default/kustomization.yaml | 2 ++ config/nsodev/kustomization.yaml | 4 +++ config/nsodev/smardigo-mobene.yml | 41 +++++++++++++++++++++++++++++++ config/nsodev/values.yaml | 0 4 files changed, 47 insertions(+) create mode 100644 config/default/kustomization.yaml create mode 100644 config/nsodev/kustomization.yaml create mode 100644 config/nsodev/smardigo-mobene.yml create mode 100644 config/nsodev/values.yaml diff --git a/config/default/kustomization.yaml b/config/default/kustomization.yaml new file mode 100644 index 0000000..9cd6dc9 --- /dev/null +++ b/config/default/kustomization.yaml @@ -0,0 +1,2 @@ +bases: +- ../nsodev \ No newline at end of file diff --git a/config/nsodev/kustomization.yaml b/config/nsodev/kustomization.yaml new file mode 100644 index 0000000..7aa28ea --- /dev/null +++ b/config/nsodev/kustomization.yaml @@ -0,0 +1,4 @@ +resources: +- smardigo-mobene.yml + +namePrefix: "nsodev-" diff --git a/config/nsodev/smardigo-mobene.yml b/config/nsodev/smardigo-mobene.yml new file mode 100644 index 0000000..b196fa7 --- /dev/null +++ b/config/nsodev/smardigo-mobene.yml @@ -0,0 +1,41 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: smardigo-mobene + # You'll usually want to add your resources to the argocd namespace. + namespace: argo-cd + # Add this finalizer ONLY if you want these to cascade delete. + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + # The project the application belongs to. + project: default + # Source of the application manifests + source: + # Can point to either a Helm chart repo or a git repo. + repoURL: https://prodnso-gitea-01.smardigo.digital/argocd/smardigo-mobene.git + # This has no meaning for Helm charts pulled directly from a Helm repo instead of git. + path: smardigo + # For Helm, this refers to the chart version. + targetRevision: main + + # kustomize specific config + kustomize: + + # helm specific config + helm: + valueFiles: + - config/nsodev/values.yaml + + # Destination cluster and namespace to deploy the application + destination: + server: https://kubernetes.default.svc + namespace: cus-mobene-nsodev + + # Sync policy + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true diff --git a/config/nsodev/values.yaml b/config/nsodev/values.yaml new file mode 100644 index 0000000..e69de29