$ oc label node/<node_name> node-role.kubernetes.io/nodeAgent=""
The document provides information about the following APIs that you can use with OADP:
Velero API
OADP API
Velero API documentation is maintained by Velero, not by Red Hat. It can be found at Velero API types.
The following tables provide the structure of the OADP API:
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. |
Property | Type | Description |
---|---|---|
|
Location to store volume snapshots, as described in Backup Storage Location. |
|
|
[Technology Preview] 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. |
Property | Type | Description |
---|---|---|
|
Location to store volume snapshots, as described in Volume Snapshot Location. |
Property | Type | Description |
---|---|---|
|
Defines the configuration for the Velero server. |
|
|
Defines the configuration for the Restic server. |
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 |
Property | Type | Description |
---|---|---|
|
Name of custom plugin. |
|
|
Image of custom plugin. |
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 |
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 DPA of OADP uses the nodeSelector
field to select which nodes can run the node agent. The nodeSelector
field is the simplest recommended form of node selection constraint.
Any label specified must match the labels on each node.
The correct way to run the node agent on any node you choose is for you to label the nodes with a custom label:
$ oc label node/<node_name> node-role.kubernetes.io/nodeAgent=""
Use the same custom label in the DPA.spec.configuration.nodeAgent.podConfig.nodeSelector
, which you used for labeling nodes. For example:
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: ""
Property | Type | Description |
---|---|---|
|
Defines the configuration of the Data Mover. |
Property | Type | Description |
---|---|---|
|
If set to |
|
|
User-supplied Restic |
|
|
A user-supplied duration string for |
The OADP API is more fully detailed in OADP Operator.