Skip to content

jorop/kubernetes-s3-mongodb-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Kubernetes mongodb backup and S3 upload with slack notification

Make a backup from your mongodb and upload it to an S3 bucket. Intended for uploading backups with a cron job.

Environment Variables

The below table lists all of the Environment Variables that are configurable for kubernetes-s3-mongodb-backup.

Environment Variable Purpose
AWS_ACCESS_KEY_ID (Required) AWS IAM Access Key ID.
AWS_SECRET_ACCESS_KEY (Required) AWS IAM Secret Access Key. Should have very limited IAM permissions (see below for example) and should be configured using a Secret in Kubernetes.
AWS_DEFAULT_REGION (Required) Region of the S3 Bucket (e.g. eu-west-2).
AWS_BUCKET_NAME (Required) The name of the S3 bucket.
AWS_BUCKET_BACKUP_PATH (Required) Path the backup file should be saved to in S3. E.g. /database/myblog/backups. Do not put a trailing / or specify the filename.
AWS_S3_ENDPOINT (Optional) Endpoint other than AWS. E.g. https://s3-storage.example.com
MONGODB_ROOT_USER (Required) Name of the mongodb root user.
MONGODB_ROOT_PASSWORD (Required) Password of the mongodb root user.
MONGODB_SERVICE_NAME (Required) Name of the mongodb service.
MONGODB_PORT_NUMBER (Required) Port Number of the mongodb service.
SLACK_ENABLED (Optional) (true/false) Enable or disable the Slack Integration (Default False).
SLACK_USERNAME (Optional) Username to use for the Slack Integration (Default: s3-upload).
SLACK_CHANNEL (Required if Slack enabled) Slack Channel the WebHook is configured for.
SLACK_WEBHOOK_URL (Required if Slack enabled) What is the Slack WebHook URL to post to? Should be configured using a Secret in Kubernetes.

Releases

No releases published

Packages

No packages published