initial commit
This commit is contained in:
commit
9b38922fba
5 changed files with 76 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
**/.DS_Store
|
3
README.md
Normal file
3
README.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# Deployment repo for grafana-backuper.
|
||||||
|
|
||||||
|
[](https://argo.services.yolokube.de/applications/grafana-backuper)
|
59
base/grafana-backuper.yaml
Normal file
59
base/grafana-backuper.yaml
Normal file
|
@ -0,0 +1,59 @@
|
||||||
|
---
|
||||||
|
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: 1800
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: grafana-backuper
|
||||||
|
image: git.ar21.de/yolokube/grafana-backuper:latest
|
||||||
|
env:
|
||||||
|
- name: GRAFANA_URL
|
||||||
|
value: "http://prometheus-grafana.prometheus"
|
||||||
|
- name: GRAFANA_AUTH_TOKEN
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: grafana-secrets
|
||||||
|
key: grafana-auth-token
|
||||||
|
- name: GIT_REPO_URL
|
||||||
|
value: "https://git.ar21.de/yolokube/grafana-dashboards.git"
|
||||||
|
- name: GIT_USER
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: git-secrets
|
||||||
|
key: git-user
|
||||||
|
- name: GIT_EMAIL
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: git-secrets
|
||||||
|
key: git-email
|
||||||
|
- name: GIT_PASS
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: git-secrets
|
||||||
|
key: git-pass
|
||||||
|
- name: GIT_SIGNING_KEY
|
||||||
|
value: /app/keys/signing-key.asc
|
||||||
|
volumeMounts:
|
||||||
|
- name: key-volume
|
||||||
|
mountPath: /app/keys
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
volumes:
|
||||||
|
- name: key-volume
|
||||||
|
secret:
|
||||||
|
secretName: gpg-key
|
||||||
|
restartPolicy: Never
|
4
base/kustomization.yaml
Normal file
4
base/kustomization.yaml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- grafana-backuper.yaml
|
9
overlay/kustomization.yaml
Normal file
9
overlay/kustomization.yaml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
resources:
|
||||||
|
- ../base
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
images:
|
||||||
|
- name: git.ar21.de/yolokube/grafana-backuper
|
||||||
|
newName: git.ar21.de/yolokube/grafana-backuper
|
||||||
|
newTag: "latest"
|
||||||
|
namespace: grafana-backuper
|
Reference in a new issue