fix for backup cron
This commit is contained in:
parent
e66d0252d7
commit
1ca9da820f
3 changed files with 19 additions and 19 deletions
19
README.md
19
README.md
|
@ -374,19 +374,20 @@ You can get a cluster local node-exporter, kube-state-metrics, pushgateway & pro
|
|||
|
||||
## Refactoring & Module Overview
|
||||
|
||||
| Module | Version | [namespaces][ns] | [split config and auth][split] | [backup monitoring][bak] |
|
||||
| ------------- | ------- | :--------------: | :----------------------------: | :----------------------: |
|
||||
| c4k-keycloak | 1.4 | x | x | x |
|
||||
| c4k-taiga | 2.0 | x | x | |
|
||||
| c4k-nextcloud | 11.0 | x | x | |
|
||||
| c4k-jitsi | 3.0 | x | x | - |
|
||||
| c4k-forgejo | 6.0 | x | x | x |
|
||||
| c4k-stats | 1.0 | x | x | x |
|
||||
| c4k-website | 2.0 | | | - |
|
||||
| Module | Version | [namespaces][ns] | [split config and auth][split] | [backup monitoring][bak] | [commons backup][back-common] |
|
||||
| ------------- | ------- | :--------------: | :----------------------------: | :----------------------: | :---------------------------: |
|
||||
| c4k-keycloak | 1.4 | x | x | x | |
|
||||
| c4k-taiga | 2.0 | x | x | | |
|
||||
| c4k-nextcloud | 11.0 | x | x | | |
|
||||
| c4k-jitsi | 3.0 | x | x | - | - |
|
||||
| c4k-forgejo | 6.0 | x | x | x | |
|
||||
| c4k-stats | 1.0 | x | x | x | x |
|
||||
| c4k-website | 2.0 | | | - | - |
|
||||
|
||||
[split]: https://repo.prod.meissa.de/meissa/c4k-jitsi/commit/d4fb8ca9e2ab44f9f9923d2e09c81a61e44b39b2
|
||||
[ns]: https://repo.prod.meissa.de/meissa/c4k-keycloak/commit/3639f3d5e6d5b364822a05b3d5d569bbc556a68b
|
||||
[bak]: https://repo.prod.meissa.de/meissa/c4k-keycloak/pulls/5/files
|
||||
[bak-common]:
|
||||
|
||||
## Development & Mirrors
|
||||
|
||||
|
|
|
@ -111,11 +111,10 @@
|
|||
(->
|
||||
(ns/load-and-adjust-namespace "backup/backup-cron.yaml" namespace)
|
||||
(assoc-in [:metadata :labels :app.kubernetes.io/part-of] app-name)
|
||||
(assoc-in [:spec :template :metadata :labels :app.kubernetes.io/part-of] app-name)
|
||||
(assoc-in [:spec :template :spec :containers 0 :image] image)
|
||||
(assoc-in [:spec :template :spec :containers 0 :env] (backup-env config))
|
||||
(assoc-in [:spec :template :spec :containers 0 :volumeMounts] (backup-volume-mounts config))
|
||||
(assoc-in [:spec :template :spec :volumes] (backup-volumes config)))))
|
||||
(assoc-in [:spec :jobTemplate :spec :template :spec :containers 0 :image] image)
|
||||
(assoc-in [:spec :jobTemplate :spec :template :spec :containers 0 :env] (backup-env config))
|
||||
(assoc-in [:spec :jobTemplate :spec :template :spec :containers 0 :volumeMounts] (backup-volume-mounts config))
|
||||
(assoc-in [:spec :jobTemplate :spec :template :spec :volumes] (backup-volumes config)))))
|
||||
|
||||
(defn-spec config map?
|
||||
[config config?]
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
apiVersion: batch/v1
|
||||
kind: CronJob
|
||||
metadata:
|
||||
name: backup-cron
|
||||
namespace: REPLACE_ME
|
||||
labels:
|
||||
app.kubernetes.io/name: backup-cron
|
||||
app.kubernetes.io/part-of: REPLACE_ME
|
||||
name: backup-cron
|
||||
namespace: REPLACE_ME
|
||||
labels:
|
||||
app.kubernetes.io/name: backup-cron
|
||||
app.kubernetes.io/part-of: REPLACE_ME
|
||||
spec:
|
||||
schedule: "10 23 * * *"
|
||||
successfulJobsHistoryLimit: 1
|
||||
|
|
Loading…
Add table
Reference in a new issue