deploy/grafana-backuper.yaml: Create basic k8s resources
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
6f445cd7ee
commit
2dfd9a01d0
1 changed files with 38 additions and 0 deletions
38
deploy/grafana-backuper.yaml
Normal file
38
deploy/grafana-backuper.yaml
Normal file
|
@ -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: "<grafana-token>"
|
||||||
|
- name: GIT_REPO_URL
|
||||||
|
value: "https://git.ar21.de/yolokube/grafana-dashboards.git"
|
||||||
|
- name: GIT_USER
|
||||||
|
value: "<git-user>"
|
||||||
|
- name: GIT_PASS
|
||||||
|
value: "<git-password>"
|
||||||
|
- name: GIT_SIGNING_KEY
|
||||||
|
value: "<key_path>"
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
restartPolicy: never
|
Loading…
Reference in a new issue