Skip to content

kushagharahi/git-dir-backup-k8s-cronjob

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

git-dir-backup-k8s-cronjob

Backup a volume to Git via Kubernetes CronJob

Setup your volume under the name git. This CronJob will commit everything in that volume to the specified Git server. .gitattributes recommended if using Git as binary storage.

Setup:

  • Fill out env variables
Env Variable Description
SSH-KEY Base64 encoded git ssh key
GIT-REPO Upstream git repo ssh uri
GIT-EMAIL Git email
GIT-NAME Git name
GIT-BRANCH Git branch to commit to
GIT-COMMIT-MSG Git commit msg
  • Fill out volume detail named git
  • Change cron timing if desired (default: nightly)
  • Apply yaml to K8s cluster

About

Backup a volume to Git via Kubernetes CronJob

Resources

License

Stars

Watchers

Forks