stash-postgres - PostgreSQL database backup/restore plugin for Stash by AppsCode
$ helm repo add appscode https://charts.appscode.com/stable/
$ helm repo update
$ helm install stash-postgres-11.2 appscode/stash-postgres -n kube-system --version=11.2
This chart deploys necessary Function
and Task
definition to backup or restore PostgreSQL database 11.2 using Stash on a Kubernetes cluster using the Helm package manager.
- Kubernetes 1.11+
To install the chart with the release name stash-postgres-11.2
:
$ helm install stash-postgres-11.2 appscode/stash-postgres -n kube-system --version=11.2
The command deploys necessary Function
and Task
definition to backup or restore PostgreSQL database 11.2 using Stash on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
To uninstall/delete the stash-postgres-11.2
:
$ helm delete stash-postgres-11.2 -n kube-system
The command removes all the Kubernetes components associated with the chart and deletes the release.
The following table lists the configurable parameters of the stash-postgres
chart and their default values.
Parameter | Description | Default |
---|---|---|
nameOverride | Overrides name template | "" |
fullnameOverride | Overrides fullname template | "" |
image.registry | Docker registry used to pull Postgres addon image | stashed |
image.repository | Docker image used to backup/restore PosegreSQL database | stash-postgres |
image.tag | Tag of the image that is used to backup/restore PostgreSQL database. This is usually same as the database version it can backup. | "11.2" |
backup.cmd | Postgres dump command, can either be: pg_dumpall or pg_dump | "pg_dumpall" |
backup.args | Arguments to pass to backup.cmd command during backup process |
"" |
restore.args | Arguments to pass to psql command during restore process |
"" |
Specify each parameter using the --set key=value[,key=value]
argument to helm install
. For example:
$ helm install stash-postgres-11.2 appscode/stash-postgres -n kube-system --version=11.2 --set image.registry=stashed
Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example:
$ helm install stash-postgres-11.2 appscode/stash-postgres -n kube-system --version=11.2 --values values.yaml