From 2dfd9a01d0c94439e1775d8068caae196474f4a9 Mon Sep 17 00:00:00 2001 From: Tom Neuber Date: Fri, 16 Feb 2024 23:14:42 +0100 Subject: [PATCH] deploy/grafana-backuper.yaml: Create basic k8s resources --- deploy/grafana-backuper.yaml | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 deploy/grafana-backuper.yaml diff --git a/deploy/grafana-backuper.yaml b/deploy/grafana-backuper.yaml new file mode 100644 index 0000000..ed7f50e --- /dev/null +++ b/deploy/grafana-backuper.yaml @@ -0,0 +1,38 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: grafana-backuper +--- +apiVersion: batch/v1 +kind: CronJob +metadata: + name: grafana-backuper + namespace: grafana-backuper +spec: + schedule: "0 * * * *" + successfulJobsHistoryLimit: 1 + failedJobsHistoryLimit: 3 + jobTemplate: + spec: + ttlSecondsAfterFinished: 300 + template: + spec: + containers: + - name: grafana-backuper + image: https://git.ar21.de/yolokube/grafana-backuper:latest + env: + - name: GRAFANA_URL + value: "http://prometheus-grafana.prometheus" + - name: GRAFANA_AUTH_TOKEN + value: "" + - name: GIT_REPO_URL + value: "https://git.ar21.de/yolokube/grafana-dashboards.git" + - name: GIT_USER + value: "" + - name: GIT_PASS + value: "" + - name: GIT_SIGNING_KEY + value: "" + imagePullPolicy: IfNotPresent + restartPolicy: never \ No newline at end of file