Restore [velero.io/v1]
- 描述
- Restore is a Velero resource that represents the application of resources from a Velero backup to a target Kubernetes cluster.
- 类型
object
规格
.spec
- 描述
- RestoreSpec defines the specification for a Velero restore.
- 类型
object
.spec.excludedNamespaces
- 描述
- ExcludedNamespaces contains a list of namespaces that are not included in the restore.
- 类型
array
.spec.excludedNamespaces[]
- 类型
string
.spec.excludedResources
- 描述
- ExcludedResources is a slice of resource names that are not included in the restore.
- 类型
array
.spec.excludedResources[]
- 类型
string
.spec.hooks
- 描述
- Hooks represent custom behaviors that should be executed during or post restore.
- 类型
object
.spec.hooks.resources
- 类型
array
.spec.hooks.resources[]
- 描述
- RestoreResourceHookSpec defines one or more RestoreResrouceHooks that should be executed based on the rules defined for namespaces, resources, and label selector.
- 类型
object- 必填
name
.spec.hooks.resources[].excludedNamespaces
- 描述
- ExcludedNamespaces specifies the namespaces to which this hook spec does not apply.
- 类型
array
.spec.hooks.resources[].excludedNamespaces[]
- 类型
string
.spec.hooks.resources[].excludedResources
- 描述
- ExcludedResources specifies the resources to which this hook spec does not apply.
- 类型
array
.spec.hooks.resources[].excludedResources[]
- 类型
string
.spec.hooks.resources[].includedNamespaces
- 描述
- IncludedNamespaces specifies the namespaces to which this hook spec applies. If empty, it applies to all namespaces.
- 类型
array
.spec.hooks.resources[].includedNamespaces[]
- 类型
string
.spec.hooks.resources[].includedResources
- 描述
- IncludedResources specifies the resources to which this hook spec applies. If empty, it applies to all resources.
- 类型
array
.spec.hooks.resources[].includedResources[]
- 类型
string
.spec.hooks.resources[].labelSelector
- 描述
- LabelSelector, if specified, filters the resources to which this hook spec applies.
- 类型
object
.spec.hooks.resources[].labelSelector.matchExpressions
- 描述
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- 类型
array
.spec.hooks.resources[].labelSelector.matchExpressions[]
- 描述
- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.spec.hooks.resources[].labelSelector.matchExpressions[].values
- 描述
- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
- 类型
array
.spec.hooks.resources[].labelSelector.matchExpressions[].values[]
- 类型
string
.spec.hooks.resources[].labelSelector.matchLabels
- 描述
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
- 类型
object
.spec.hooks.resources[].postHooks
- 描述
- PostHooks is a list of RestoreResourceHooks to execute during and after restoring a resource.
- 类型
array
.spec.hooks.resources[].postHooks[]
- 描述
- RestoreResourceHook defines a restore hook for a resource.
- 类型
object
.spec.hooks.resources[].postHooks[].exec
- 描述
- Exec defines an exec restore hook.
- 类型
object- 必填
command
.spec.hooks.resources[].postHooks[].exec.command
- 描述
- Command is the command and arguments to execute from within a container after a pod has been restored.
- 类型
array
.spec.hooks.resources[].postHooks[].exec.command[]
- 类型
string
.spec.hooks.resources[].postHooks[].init
- 描述
- Init defines an init restore hook.
- 类型
object
.spec.hooks.resources[].postHooks[].init.initContainers
- 描述
- InitContainers is list of init containers to be added to a pod during its restore.
- 类型
array
.spec.hooks.resources[].postHooks[].init.initContainers[]
- 类型
object
.spec.includedNamespaces
- 描述
- IncludedNamespaces is a slice of namespace names to include objects from. If empty, all namespaces are included.
- 类型
array
.spec.includedNamespaces[]
- 类型
string
.spec.includedResources
- 描述
- IncludedResources is a slice of resource names to include in the restore. If empty, all resources in the backup are included.
- 类型
array
.spec.includedResources[]
- 类型
string
.spec.labelSelector
- 描述
- LabelSelector is a metav1.LabelSelector to filter with when restoring individual objects from the backup. If empty or nil, all objects are included. Optional.
- 类型
object
.spec.labelSelector.matchExpressions
- 描述
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- 类型
array
.spec.labelSelector.matchExpressions[]
- 描述
- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.spec.labelSelector.matchExpressions[].values
- 描述
- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
- 类型
array
.spec.labelSelector.matchExpressions[].values[]
- 类型
string
.spec.labelSelector.matchLabels
- 描述
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
- 类型
object
.spec.namespaceMapping
- 描述
- NamespaceMapping is a map of source namespace names to target namespace names to restore into. Any source namespaces not included in the map will be restored into namespaces of the same name.
- 类型
object
.spec.orLabelSelectors
- 描述
- OrLabelSelectors is list of metav1.LabelSelector to filter with when restoring individual objects from the backup. If multiple provided they will be joined by the OR operator. LabelSelector as well as OrLabelSelectors cannot co-exist in restore request, only one of them can be used
- 类型
array
.spec.orLabelSelectors[]
- 描述
- A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.
- 类型
object
.spec.orLabelSelectors[].matchExpressions
- 描述
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- 类型
array
.spec.orLabelSelectors[].matchExpressions[]
- 描述
- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.spec.orLabelSelectors[].matchExpressions[].values
- 描述
- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
- 类型
array
.spec.orLabelSelectors[].matchExpressions[].values[]
- 类型
string
.spec.orLabelSelectors[].matchLabels
- 描述
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
- 类型
object
.spec.resourceModifier
- 描述
- ResourceModifier specifies the reference to JSON resource patches that should be applied to resources before restoration.
- 类型
object- 必填
kindname
.spec.restoreStatus
- 描述
- RestoreStatus specifies which resources we should restore the status field. If nil, no objects are included. Optional.
- 类型
object
.spec.restoreStatus.excludedResources
- 描述
- ExcludedResources specifies the resources to which will not restore the status.
- 类型
array
.spec.restoreStatus.excludedResources[]
- 类型
string
.spec.restoreStatus.includedResources
- 描述
- IncludedResources specifies the resources to which will restore the status. If empty, it applies to all resources.
- 类型
array
.spec.restoreStatus.includedResources[]
- 类型
string
.spec.uploaderConfig
- 描述
- UploaderConfig specifies the configuration for the restore.
- 类型
object
.status
- 描述
- RestoreStatus captures the current status of a Velero restore
- 类型
object
.status.hookStatus
- 描述
- HookStatus contains information about the status of the hooks.
- 类型
object
.status.progress
- 描述
- Progress contains information about the restore's execution progress. Note that this information is best-effort only -- if Velero fails to update it during a restore for any reason, it may be inaccurate/stale.
- 类型
object
.status.validationErrors
- 描述
- ValidationErrors is a slice of all validation errors (if applicable)
- 类型
array
.status.validationErrors[]
- 类型
string
API 端点
可用的 API 端点如下:
/apis/velero.io/v1/namespaces/{namespace}/restoresDELETE: delete collection of RestoreGET: list objects of kind RestorePOST: create a new Restore
/apis/velero.io/v1/namespaces/{namespace}/restores/{name}DELETE: delete the specified RestoreGET: read the specified RestorePATCH: partially update the specified RestorePUT: replace the specified Restore
/apis/velero.io/v1/namespaces/{namespace}/restores
- HTTP 方法
DELETE- 描述
- delete collection of Restore
- HTTP 响应
- HTTP 方法
GET- 描述
- list objects of kind Restore
- HTTP 响应
- HTTP 方法
POST- 描述
- create a new Restore
- 查询参数
- 请求体参数
- HTTP 响应
/apis/velero.io/v1/namespaces/{namespace}/restores/{name}
- HTTP 方法
DELETE- 描述
- delete the specified Restore
- 查询参数
- HTTP 响应
- HTTP 方法
GET- 描述
- read the specified Restore
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update the specified Restore
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace the specified Restore
- 查询参数
- 请求体参数
- HTTP 响应