deploy/grafana-backuper.yaml: Improve k8s deployment
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
e5c5dbcb7d
commit
ad7b67990e
2 changed files with 29 additions and 7 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -21,3 +21,4 @@
|
|||
# Go workspace file
|
||||
go.work
|
||||
|
||||
secrets.yaml
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue