Skip to content

jmwhorton/k8s-postgres-bkup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

k8s-postgres-bkup

This project will schedule a container to run on OpenShift to backup and save a (relatively small) postgres DB to a target location.

Instructions

  1. Add configuration info needed (between angle brackets) in cronjob_template.yaml
    1. Template assumes a secret file that already contains postgres credentials. If one doesn't exist, just add them to the secret_template.yaml
    2. Adjust the timing of the backups if desired. Defaults to every day at 2am.
  2. Add configuration info needed in secret_template.yaml
  3. Add the secret to Openshift
    • oc create -f secret_template.yaml
  4. Add the cronjob to Openshift
    • oc create -f cronjob_template.yaml

Uninstall

oc delete cronjob/postgres-bkup

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published