$ oc label node/<node_name> node-role.kubernetes.io/nodeAgent=""
You can use the following APIs with OADP:
Velero API documentation is maintained by Velero and is not maintained by Red Hat. For more information, see API types (Velero documentation).
The following are the OADP APIs:
DataProtectionApplicationSpec
BackupLocation
SnapshotLocation
ApplicationConfig
VeleroConfig
CustomPlugin
ResticConfig
PodConfig
Features
DataMover
For more information, see in OADP Operator(Go documentation).
The following are DataProtectionApplicationSpec
OADP APIs:
Property | Type | Description |
---|---|---|
|
Defines the list of configurations to use for |
|
|
Defines the list of configurations to use for |
|
|
map [ UnsupportedImageKey ] string |
Can be used to override the deployed dependent images for development. Options are |
|
Used to add annotations to pods deployed by Operators. |
|
|
Defines the configuration of the DNS of a pod. |
|
|
Defines the DNS parameters of a pod in addition to those generated from |
|
|
*bool |
Used to specify whether or not you want to deploy a registry for enabling backup and restore of images. |
|
Used to define the data protection application’s server configuration. |
|
|
Defines the configuration for the DPA to enable the Technology Preview features. |
The following are BackupLocation
OADP APIs:
Property | Type | Description |
---|---|---|
|
Location to store volume snapshots, as described in Backup Storage Location. |
|
|
Automates creation of a bucket at some cloud storage providers for use as a backup storage location. |
The For more information about the support scope of Red Hat Technology Preview features, see Technology Preview Features Support Scope. |
The following are SnapshotLocation
OADP APIs:
Property | Type | Description |
---|---|---|
|
Location to store volume snapshots, as described in Volume Snapshot Location. |
The following are ApplicationConfig
OADP APIs:
Property | Type | Description |
---|---|---|
|
Defines the configuration for the Velero server. |
|
|
Defines the configuration for the Restic server. |
The following are VeleroConfig
OADP APIs:
Property | Type | Description |
---|---|---|
|
[] string |
Defines the list of features to enable for the Velero instance. |
|
[] string |
The following types of default Velero plugins can be installed: |
|
Used for installation of custom Velero plugins. Default and custom plugins are described in OADP plugins |
|
|
Represents a config map that is created if defined for use in conjunction with the |
|
|
To install Velero without a default backup storage location, you must set the |
|
|
Defines the configuration of the |
|
|
Velero server’s log level (use |
The following are CustomPlugin
OADP APIs:
Property | Type | Description |
---|---|---|
|
Name of custom plugin. |
|
|
Image of custom plugin. |
The following are ResticConfig
OADP APIs:
Property | Type | Description |
---|---|---|
|
*bool |
If set to |
|
[]int64 |
Defines the Linux groups to be applied to the |
|
A user-supplied duration string that defines the Restic timeout. Default value is |
|
|
Defines the configuration of the |
The following are PodConfig
OADP APIs:
Property | Type | Description |
---|---|---|
|
Defines the |
|
|
Defines the list of tolerations to be applied to a Velero deployment or a Restic |
|
|
Set specific resource |
|
|
Labels to add to pods. |
The Data Protection Application (DPA) uses the nodeSelector
field to select which nodes can run the node agent. The nodeSelector
field is the recommended form of node selection constraint.
Run the node agent on any node that you choose by adding a custom label:
$ oc label node/<node_name> node-role.kubernetes.io/nodeAgent=""
Any label specified must match the labels on each node. |
Use the same custom label in the DPA.spec.configuration.nodeAgent.podConfig.nodeSelector
field, which you used for labeling nodes:
configuration:
nodeAgent:
enable: true
podConfig:
nodeSelector:
node-role.kubernetes.io/nodeAgent: ""
The following example is an anti-pattern of nodeSelector
and does not work unless both labels, node-role.kubernetes.io/infra: ""
and node-role.kubernetes.io/worker: ""
, are on the node:
configuration:
nodeAgent:
enable: true
podConfig:
nodeSelector:
node-role.kubernetes.io/infra: ""
node-role.kubernetes.io/worker: ""
The following are Features
OADP APIs:
Property | Type | Description |
---|---|---|
|
Defines the configuration of the Data Mover. |
The following are DataMover
OADP APIs:
Property | Type | Description |
---|---|---|
|
If set to |
|
|
User-supplied Restic |
|
|
A user-supplied duration string for |