Parameters
The parent key for all of the following parameters is cluster_backup
.
enabled
type |
bool |
default |
|
Whether to create the ArgoCD app for the component. Setting this to false, effectively disables the component from being deployed.
The manifests will still appear in the catalog, but without the ArgoCD app they won’t get deployed. |
backend_type
type |
string |
default |
|
values |
|
Which backend type to configure for the backup. Currently, the component supports backing up to S3 (compatible) buckets and SFTP.
bucket
type |
dictionary |
Holds the name and credentials for an S3 type storage bucket. This bucket will be used to store the backups.
The bucket configuration is ignored (but must be present) when backend_type isn’t set to s3 .
|
sftp
type |
dictionary |
This section holds SFTP connection details.
When backend_type
is set to sftp
, the SFTP connection will be used to store the backups.
The SFTP configuration is ignored when backend_type isn’t set to sftp .
|
path
type |
string |
default |
|
The path on the SFTP server where the backups should be stored. Relative paths are interpreted relative to the SSH user’s home directory on the server.
extra_ssh_config
type |
string |
default |
|
Any additional contents for the backup job’s ~/.ssh/config
file.
The value must be a valid snippet of SSH config.
The contents are appended to a file which contains a basic config that’s constructed from parameters sftp.host
, sftp.port
and sftp.user
.
~/.ssh/config
Host <sftp.host>
Port <sftp.port>
User <sftp.user>
IdentityFile ~/.ssh/ssh_key
The SSH config file is mounted to the backup job pod via K8up’s PodConfig
mechanism as /home/k8up/.ssh
.
Additionally, the PodConfig
sets environment variable HOME
to /home/k8up
.
ssh_private_key
type |
string |
default |
|
The private key to use to authenticate on the SFTP server. To ensure that the SSH key will be handled correctly, the component will always append a trailing new line to the provided value.
images
type |
dictionary |
Dictionary holding the container image versions used by this component.
object_dumper
type |
dictionary |
default |
|
Object dumper is script that exports all retrievable objects from a Kubernetes API and dumps them as a Tar archive. See github.com/projectsyn/k8s-object-dumper.
password
type |
string |
default |
|
Password used to encrypt the backup. The default is a reference to a secret within Vault.
ignored
type |
list |
default |
|
Resource types which will not be backed up.
It is usually no longer necessary to ignore resources with no |
must_exist
type |
list |
default |
|
Resource types which must exist on any Kubernetes cluster. Used to sanity-check the backup process.
They must be fully qualified resource types <resource>.<group>
, e.g. deployments.apps
.
As of k8up v2.11.1 the errors from backup commands are ignored (issue). This means that if a resource type listed in |