From 37c7cd4046a90bae73bf3b293571b87940a666dc Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Sat, 23 Dec 2023 19:35:35 +0100 Subject: [PATCH 1/2] add argo app --- fail2ban-exporter-argo-application.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 fail2ban-exporter-argo-application.yaml diff --git a/fail2ban-exporter-argo-application.yaml b/fail2ban-exporter-argo-application.yaml new file mode 100644 index 0000000..2889ab8 --- /dev/null +++ b/fail2ban-exporter-argo-application.yaml @@ -0,0 +1,20 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: fail2ban-prometheus + namespace: argocd +spec: + project: default + source: + repoURL: https://git.ar21.de/yolokube/fail2ban-exporter-deployment.git + targetRevision: HEAD + path: deploy + destination: + server: https://kubernetes.default.svc + namespace: fail2ban-prometheus + syncPolicy: + syncOptions: + - CreateNamespace=true + automated: + selfHeal: false + prune: true \ No newline at end of file From c10f23da582410ac674e926c310662c15bf5f569 Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Sat, 23 Dec 2023 19:36:23 +0100 Subject: [PATCH 2/2] remove deploy folder before cloning it --- .drone.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.drone.yml b/.drone.yml index 2966948..0f2a367 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,6 +8,7 @@ steps: - git clone https://git.ar21.de/yolokube/fail2ban-prometheus-exporter.git . - cd /deployment-repo - git clone https://git.ar21.de/yolokube/fail2ban-exporter-deployment.git . + - rm -r /deployment-repo/deploy/* || true - cp -rv /source-repo/deploy /deployment-repo/base - mkdir -p /deployment-repo/deploy - kustomize build -o /deployment-repo/deploy/fail2ban-exporter.yaml