deploy/grafana-backuper.yaml: Improve k8s deployment
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Tom Neuber 2024-02-17 13:41:05 +01:00
parent e5c5dbcb7d
commit ad7b67990e
Signed by: tom
GPG Key ID: F17EFE4272D89FF6
2 changed files with 29 additions and 7 deletions

1
.gitignore vendored
View File

@ -21,3 +21,4 @@
# Go workspace file
go.work
secrets.yaml

View File

@ -15,24 +15,45 @@ spec:
failedJobsHistoryLimit: 3
jobTemplate:
spec:
ttlSecondsAfterFinished: 300
ttlSecondsAfterFinished: 1800
template:
spec:
containers:
- name: grafana-backuper
image: https://git.ar21.de/yolokube/grafana-backuper:latest
image: git.ar21.de/yolokube/grafana-backuper:latest
env:
- name: GRAFANA_URL
value: "http://prometheus-grafana.prometheus"
- name: GRAFANA_AUTH_TOKEN
value: "<grafana-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
value: "<git-user>"
valueFrom:
secretKeyRef:
name: git-secrets
key: git-user
- name: GIT_EMAIL
valueFrom:
secretKeyRef:
name: git-secrets
key: git-email
- name: GIT_PASS
value: "<git-password>"
valueFrom:
secretKeyRef:
name: git-secrets
key: git-pass
- name: GIT_SIGNING_KEY
value: "<key_path>"
value: /app/keys/signing-key.asc
volumeMounts:
- name: key-volume
mountPath: /app/keys
imagePullPolicy: IfNotPresent
restartPolicy: never
volumes:
- name: key-volume
secret:
secretName: gpg-key
restartPolicy: Never