Skip to content
Install the CLI

Reference experimental

velero

These docs describe Kix's main branch, which can include changes not yet released. Read the docs for the latest release.

Velero backup and restore: server, node-agent, a default backup location, and scheduled backups

This page is generated from kix/packages/experimental/velero.

StabilityExperimental
package valuepackages.experimental.velero
Default software version1.18.4
Default aliasesvelero

Kix matches each dependency below to another package instance by instance name, alias, or role. To bind a specific instance, set deps.<name> in your cluster definition. See Declaring dependencies for how required and optional dependencies work.

DependencyRequirement
cloudCredentialsRequired
cloudIdentityOptional
objectStorageOptional
prometheusOptional
repositoryPasswordOptional

Install the AWS object-store plugin, which serves provider velero.io/aws (S3 and S3-compatible stores).

  • Type: boolean
  • Default: true

Image of the AWS plugin init container.

  • Type: submodule

  • Default:

    {
    digest = "sha256:c85a7fa803569e3128c33e4f5766f84ab156c8d171c9f1dd2715581d45ce98fa";
    pullPolicy = "IfNotPresent";
    repository = "docker.io/velero/velero-plugin-for-aws";
    tag = "v1.14.4";
    }

Resolved manifest digest, sha256: followed by 64 hex characters. What will actually run. Null means not resolved.

  • Type: null or string
  • Default: the package’s digest while tag is the package’s tag, otherwise null

Whatever a person wanted to say about this pin. Kix never reads it and a promotion never discards it. Declared here for the same reason as the three fields above: a pin carries its own record-keeping, and the option accepts the whole pin rather than a subset of it.

  • Type: null or string
  • Default: null

Who resolved this pin, for the record. Null when unknown.

  • Type: null or string
  • Default: null

imagePullPolicy for containers using this image. Null leaves it to Kubernetes.

  • Type: null or string
  • Default: "IfNotPresent"

Image repository, registry host included.

  • Type: string
  • Default: "docker.io/velero/velero-plugin-for-aws"

When this pin was resolved, RFC 3339. Null when unknown.

  • Type: null or string
  • Default: null

Revision of the source the image was built from, when Kix built it. Null for upstream images.

  • Type: null or string
  • Default: null

Image tag. What was asked for.

  • Type: string
  • Default: "v1.14.4"

The spec of the default BackupStorageLocation. Keys not listed here pass through to the spec. credential and default are set by the package. A second location is a CR built from out.crds.BackupStorageLocation in Velero’s namespace.

  • Type: open submodule of attribute set of anything
  • Default: { }

The plugin’s settings (for the AWS plugin region, s3Url, s3ForcePathStyle, checksumAlgorithm). An empty string is passed on. With an objectStorage dependency, the package sets s3Url to its Service and refuses one set here, and s3ForcePathStyle defaults to "true". Without one, the network policy opens the port of s3Url (443 when unset) to addresses outside the cluster.

  • Type: attribute set of string

  • Default: { }

  • Example:

    {
    region = "us-east-1";
    s3ForcePathStyle = "true";
    }

Where in the store backups go. Other keys, such as caCertRef, pass through.

  • Type: open submodule of attribute set of anything
  • Default: { }

backupStorageLocation.objectStorage.bucket

Section titled “backupStorageLocation.objectStorage.bucket”

Bucket name. Bucket names are global to the store, so there is no default.

  • Type: string

backupStorageLocation.objectStorage.prefix

Section titled “backupStorageLocation.objectStorage.prefix”

Directory in the bucket for every Velero object. Velero marks a location Unavailable when the bucket’s top level holds directories it did not write, so a shared bucket needs one.

  • Type: null or string
  • Default: null

Object-store plugin that serves the location.

  • Type: string
  • Default: "velero.io/aws"

More plugins, init container name to image. Each image copies its plugin into /target, as Velero’s own plugin images do.

  • Type: attribute set of (submodule)

  • Default: { }

  • Example:

    {
    velero-plugin-for-gcp = {
    repository = "docker.io/velero/velero-plugin-for-gcp";
    tag = "v1.14.0";
    };
    }

Resolved manifest digest, sha256: followed by 64 hex characters. What will actually run. Null means not resolved.

  • Type: null or string
  • Default: the package’s digest while tag is the package’s tag, otherwise null

Whatever a person wanted to say about this pin. Kix never reads it and a promotion never discards it. Declared here for the same reason as the three fields above: a pin carries its own record-keeping, and the option accepts the whole pin rather than a subset of it.

  • Type: null or string
  • Default: null

Who resolved this pin, for the record. Null when unknown.

  • Type: null or string
  • Default: null

imagePullPolicy for containers using this image. Null leaves it to Kubernetes.

  • Type: null or string
  • Default: "IfNotPresent"

Image repository, registry host included.

  • Type: string

When this pin was resolved, RFC 3339. Null when unknown.

  • Type: null or string
  • Default: null

Revision of the source the image was built from, when Kix built it. Null for upstream images.

  • Type: null or string
  • Default: null

Image tag. What was asked for.

  • Type: string

Velero feature flags, passed as --features to the server and node-agent.

  • Type: list of string

  • Default: [ ]

  • Example:

    [
    "EnableCSI"
    ]

Image of the server and node-agent. Its major.minor must match the vendored CRDs.

  • Type: submodule

  • Default:

    {
    digest = "sha256:c89fb5b6d1fd6afd368e0f483e6f5555fd62851a1eada8ac5c72482e674ca17b";
    pullPolicy = "IfNotPresent";
    repository = "docker.io/velero/velero";
    tag = "v1.18.4";
    }

Resolved manifest digest, sha256: followed by 64 hex characters. What will actually run. Null means not resolved.

  • Type: null or string
  • Default: the package’s digest while tag is the package’s tag, otherwise null

Whatever a person wanted to say about this pin. Kix never reads it and a promotion never discards it. Declared here for the same reason as the three fields above: a pin carries its own record-keeping, and the option accepts the whole pin rather than a subset of it.

  • Type: null or string
  • Default: null

Who resolved this pin, for the record. Null when unknown.

  • Type: null or string
  • Default: null

imagePullPolicy for containers using this image. Null leaves it to Kubernetes.

  • Type: null or string
  • Default: "IfNotPresent"

Image repository, registry host included.

  • Type: string
  • Default: "docker.io/velero/velero"

When this pin was resolved, RFC 3339. Null when unknown.

  • Type: null or string
  • Default: null

Revision of the source the image was built from, when Kix built it. Null for upstream images.

  • Type: null or string
  • Default: null

Image tag. What was asked for.

  • Type: string
  • Default: "v1.18.4"

Enable metrics endpoint and monitoring resources (ServiceMonitor, PrometheusRules) when prometheus is available.

  • Type: boolean
  • Default: true

Scrape interval (e.g. ”30s”). Null = use Prometheus default.

  • Type: null or string
  • Default: null

How long each schedule, by its name in schedules, may go without a successful backup before VeleroBackupMissing fires, as a Prometheus duration. A schedule not listed takes kix.schedules.staleAfter of its cron line: two periods plus two hours, so @daily gives 50h and a line that names days of the week gives 338h, and one missed run does not fire it. List a schedule whose period cannot be read, such as one that names days of the month: while the alerts render, the build fails without it. An age over 6d is compared with the last success’s timestamp, which Velero reports only after a success since the server started.

  • Type: attribute set of string matching the pattern ([0-9]+(ms|s|m|h|d|w|y))+

  • Default: { }

  • Example:

    {
    monthly = "64d";
    }

How long a Schedule this package does not render, such as one built through out.mkSchedule, may go without a successful backup before VeleroBackupMissing fires. The package cannot read those cron lines, so one age covers them all. The default suits daily schedules; a weekly one needs “338h”.

  • Type: string matching the pattern ([0-9]+(ms|s|m|h|d|w|y))+
  • Default: "50h"
  • Example: "338h"

Annotations on the node-agent DaemonSet, for a controller that reads them, such as one that restarts the workload when a Secret it reads changes.

  • Type: attribute set of string

  • Default: { }

  • Example:

    {
    "secret.reloader.stakater.com/reload" = "velero-credentials";
    }

Run node-agent, which file-system backups and the CSI data mover need.

  • Type: boolean
  • Default: true

Extra environment variables of node-agent, such as HTTPS_PROXY, NO_PROXY, or GOMAXPROCS. The backup, restore, and data mover pods node-agent launches copy them. A value is a string, a fieldRef source, or a secretKeyRef naming a Secret managed outside Kix with kix.untrackedRef. The credentials file, scratch directory, node name, and namespace variables are set by the package.

  • Type: attribute set of (null or string or env var source with `valueFrom`)
  • Default: { }

Flags appended to velero node-agent server.

  • Type: list of string
  • Default: [ ]

Resources of the node-agent container. No limits by default, following Velero’s advice not to throttle or OOM-kill backups.

  • Type: submodule

  • Default:

    {
    requests = {
    cpu = "500m";
    memory = "512Mi";
    };
    }

Dynamic resource claims the container uses. Null leaves it unset.

  • Type: null or (list of (submodule))
  • Default: null

Name of an entry in the pod’s resourceClaims.

  • Type: string

Request within the claim to use. Null uses the whole claim.

  • Type: null or string
  • Default: null

Resource quantities by name.

  • Type: open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: { }

The cpu quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: null

nodeAgent.resources.limits.ephemeral-storage

Section titled “nodeAgent.resources.limits.ephemeral-storage”

The ephemeral-storage quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: null

The memory quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: null

Resource quantities by name.

  • Type: open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: { }

The cpu quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: "500m"

nodeAgent.resources.requests.ephemeral-storage

Section titled “nodeAgent.resources.requests.ephemeral-storage”

The ephemeral-storage quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: null

The memory quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: "512Mi"

node-agent’s configuration (Velero’s NodeAgentConfigs: loadConcurrency, loadAffinity, podResources, backupPVC, priorityClassName, …), written to the node-agent ConfigMap.

  • Type: open submodule of attribute set of anything

  • Default: { }

  • Example:

    {
    loadConcurrency = {
    globalConfig = 2;
    };
    podResources = {
    cpuRequest = "500m";
    memoryRequest = "512Mi";
    };
    }

Labels for the pods. The package adds the instance’s selector labels and app.kubernetes.io/component = data-path, which the network policies select on.

  • Type: attribute set of string
  • Default: { }

The global entry of the repository-maintenance ConfigMap (Velero’s JobConfigs: keepLatestMaintenanceJobs, podResources, loadAffinity, priorityClassName, …). Used while node-agent is on.

  • Type: open submodule of attribute set of anything

  • Default: { }

  • Example:

    {
    keepLatestMaintenanceJobs = 3;
    }

Labels for the pods. The package adds the instance’s selector labels and app.kubernetes.io/component = data-path, which the network policies select on.

  • Type: attribute set of string
  • Default: { }

Schedules, by name. Each is a Schedule spec; keys not listed pass through.

  • Type: attribute set of (open submodule of attribute set of anything)
  • Default: { }

Cron line: five fields or a descriptor (@daily, @every 6h), optionally after CRON_TZ=<zone>.

  • Type: string matching the pattern ((CRON_TZ|TZ)=[^ ]+ +)?(@.+|[^ ]+( +[^ ]+){4})
  • Example: "CRON_TZ=UTC 0 3 * * *"

The Backup spec each run uses. Keys not listed pass through.

  • Type: open submodule of attribute set of anything
  • Default: { }

BackupStorageLocation name. Null uses the package’s default location.

  • Type: null or string
  • Default: null

Annotations on the server Deployment, for a controller that reads them, such as one that restarts the workload when a Secret it reads changes.

  • Type: attribute set of string

  • Default: { }

  • Example:

    {
    "secret.reloader.stakater.com/reload" = "velero-credentials";
    }

Extra environment variables of the server, such as HTTPS_PROXY, NO_PROXY, or GOMAXPROCS. The repository maintenance Jobs copy them. A value is a string, a fieldRef source, or a secretKeyRef naming a Secret managed outside Kix with kix.untrackedRef. The credentials file, scratch directory, plugin path, and namespace variables are set by the package.

  • Type: attribute set of (null or string or env var source with `valueFrom`)
  • Default: { }

Flags appended to velero server.

  • Type: list of string

  • Default: [ ]

  • Example:

    [
    "--default-repo-maintain-frequency=24h"
    ]

Resources of the server container. The defaults are velero install’s.

  • Type: submodule

  • Default:

    {
    limits = {
    cpu = "1";
    memory = "512Mi";
    };
    requests = {
    cpu = "500m";
    memory = "128Mi";
    };
    }

Dynamic resource claims the container uses. Null leaves it unset.

  • Type: null or (list of (submodule))
  • Default: null

Name of an entry in the pod’s resourceClaims.

  • Type: string

Request within the claim to use. Null uses the whole claim.

  • Type: null or string
  • Default: null

Resource quantities by name.

  • Type: open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: { }

The cpu quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: "1"

The ephemeral-storage quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: null

The memory quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: "512Mi"

Resource quantities by name.

  • Type: open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: { }

The cpu quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: "500m"

server.resources.requests.ephemeral-storage

Section titled “server.resources.requests.ephemeral-storage”

The ephemeral-storage quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: null

The memory quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: "128Mi"

Volume policies applied to every backup (a global policies ConfigMap). The first policy a volume matches decides its action.

  • Type: list of (submodule)
  • Default: [ ]
  • Example: [ { conditions.storageClass = [ "local-path" ]; action.type = "fs-backup"; } ]

Parameters for the action, read by the plugin that handles it.

  • Type: null or (attribute set of anything)
  • Default: null

What Velero does with a matching volume.

  • Type: one of "skip", "snapshot", "fs-backup", "custom"

What a volume must match. Every field set must match; an unset field matches any volume.

  • Type: submodule
  • Default: { }

Capacity range “<min>,<max>”, either side may be empty, e.g. “0,100Gi”.

  • Type: null or string
  • Default: null

CSI volumes. { } matches any CSI volume.

  • Type: null or (submodule)
  • Default: null

CSI driver name.

  • Type: null or string
  • Default: null

volumePolicies.*.conditions.csi.volumeAttributes

Section titled “volumePolicies.*.conditions.csi.volumeAttributes”

CSI volume attributes. Needs driver.

  • Type: null or (attribute set of string)
  • Default: null

NFS volumes. { } matches any NFS volume.

  • Type: null or (submodule)
  • Default: null

Exported path.

  • Type: null or string
  • Default: null

NFS server host.

  • Type: null or string
  • Default: null

volumePolicies.*.conditions.pvcAccessModes

Section titled “volumePolicies.*.conditions.pvcAccessModes”

PersistentVolumeClaim access modes.

  • Type: null or (list of (one of "ReadWriteOnce", "ReadOnlyMany", "ReadWriteMany", "ReadWriteOncePod"))
  • Default: null

Labels the PersistentVolumeClaim carries.

  • Type: null or (attribute set of string)
  • Default: null

PersistentVolumeClaim phases.

  • Type: null or (list of (one of "Pending", "Bound", "Lost"))
  • Default: null

PersistentVolumeClaim volume mode.

  • Type: null or one of "Filesystem", "Block"
  • Default: null

StorageClass names.

  • Type: null or (list of string)
  • Default: null

Pod volume source types, as Velero names them.

  • Type: null or (list of (one of "awsAzureDisk", "awsElasticBlockStore", "azureDisk", "azureFile", "cinder", "cephfs", "configMap", "csi", "downwardAPI", "emptyDir", "ephemeral", "fc", "flocker", "flexVolume", "gitRepo", "glusterfs", "gcePersistentDisk", "hostPath", "iscsi", "local", "nfs", "photonPersistentDisk", "portworxVolume", "projected", "quobyte", "rbd", "scaleIO", "secret", "storageOS", "vsphereVolume"))
  • Default: null

The spec of a default VolumeSnapshotLocation, for a provider’s native snapshots. Null builds none. Keys not listed pass through; credential is set by the package when cloudCredentials is a file.

  • Type: null or (open submodule of attribute set of anything)
  • Default: null

The plugin’s settings.

  • Type: attribute set of string
  • Default: { }

Volume-snapshotter plugin.

  • Type: string
  • Default: "velero.io/aws"