Schedule [velero.io/v1]
- 描述
- Schedule is a Velero resource that represents a pre-scheduled or periodic Backup that should be run.
- 类型
object
规格
.spec
- 描述
- ScheduleSpec defines the specification for a Velero schedule
- 类型
object- 必填
scheduletemplate
.spec.template
- 描述
- Template is the definition of the Backup to be run on the provided schedule
- 类型
object
.spec.template.excludedClusterScopedResources
- 描述
- ExcludedClusterScopedResources is a slice of cluster-scoped resource type names to exclude from the backup. If set to "*", all cluster-scoped resource types are excluded. The default value is empty.
- 类型
array
.spec.template.excludedClusterScopedResources[]
- 类型
string
.spec.template.excludedNamespaceScopedResources
- 描述
- ExcludedNamespaceScopedResources is a slice of namespace-scoped resource type names to exclude from the backup. If set to "*", all namespace-scoped resource types are excluded. The default value is empty.
- 类型
array
.spec.template.excludedNamespaceScopedResources[]
- 类型
string
.spec.template.excludedNamespaces
- 描述
- ExcludedNamespaces contains a list of namespaces that are not included in the backup.
- 类型
array
.spec.template.excludedNamespaces[]
- 类型
string
.spec.template.excludedResources
- 描述
- ExcludedResources is a slice of resource names that are not included in the backup.
- 类型
array
.spec.template.excludedResources[]
- 类型
string
.spec.template.hooks
- 描述
- Hooks represent custom behaviors that should be executed at different phases of the backup.
- 类型
object
.spec.template.hooks.resources
- 描述
- Resources are hooks that should be executed when backing up individual instances of a resource.
- 类型
array
.spec.template.hooks.resources[]
- 描述
- BackupResourceHookSpec defines one or more BackupResourceHooks that should be executed based on the rules defined for namespaces, resources, and label selector.
- 类型
object- 必填
name
.spec.template.hooks.resources[].excludedNamespaces
- 描述
- ExcludedNamespaces specifies the namespaces to which this hook spec does not apply.
- 类型
array
.spec.template.hooks.resources[].excludedNamespaces[]
- 类型
string
.spec.template.hooks.resources[].excludedResources
- 描述
- ExcludedResources specifies the resources to which this hook spec does not apply.
- 类型
array
.spec.template.hooks.resources[].excludedResources[]
- 类型
string
.spec.template.hooks.resources[].includedNamespaces
- 描述
- IncludedNamespaces specifies the namespaces to which this hook spec applies. If empty, it applies to all namespaces.
- 类型
array
.spec.template.hooks.resources[].includedNamespaces[]
- 类型
string
.spec.template.hooks.resources[].includedResources
- 描述
- IncludedResources specifies the resources to which this hook spec applies. If empty, it applies to all resources.
- 类型
array
.spec.template.hooks.resources[].includedResources[]
- 类型
string
.spec.template.hooks.resources[].labelSelector
- 描述
- LabelSelector, if specified, filters the resources to which this hook spec applies.
- 类型
object
.spec.template.hooks.resources[].labelSelector.matchExpressions
- 描述
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- 类型
array
.spec.template.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.template.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.template.hooks.resources[].labelSelector.matchExpressions[].values[]
- 类型
string
.spec.template.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.template.hooks.resources[].post
- 描述
- PostHooks is a list of BackupResourceHooks to execute after storing the item in the backup. These are executed after all "additional items" from item actions are processed.
- 类型
array
.spec.template.hooks.resources[].post[]
- 描述
- BackupResourceHook defines a hook for a resource.
- 类型
object- 必填
exec
.spec.template.hooks.resources[].post[].exec
- 描述
- Exec defines an exec hook.
- 类型
object- 必填
command
.spec.template.hooks.resources[].post[].exec.command
- 描述
- Command is the command and arguments to execute.
- 类型
array
.spec.template.hooks.resources[].post[].exec.command[]
- 类型
string
.spec.template.hooks.resources[].pre
- 描述
- PreHooks is a list of BackupResourceHooks to execute prior to storing the item in the backup. These are executed before any "additional items" from item actions are processed.
- 类型
array
.spec.template.hooks.resources[].pre[]
- 描述
- BackupResourceHook defines a hook for a resource.
- 类型
object- 必填
exec
.spec.template.hooks.resources[].pre[].exec
- 描述
- Exec defines an exec hook.
- 类型
object- 必填
command
.spec.template.hooks.resources[].pre[].exec.command
- 描述
- Command is the command and arguments to execute.
- 类型
array
.spec.template.hooks.resources[].pre[].exec.command[]
- 类型
string
.spec.template.includedClusterScopedResources
- 描述
- IncludedClusterScopedResources is a slice of cluster-scoped resource type names to include in the backup. If set to "*", all cluster-scoped resource types are included. The default value is empty, which means only related cluster-scoped resources are included.
- 类型
array
.spec.template.includedClusterScopedResources[]
- 类型
string
.spec.template.includedNamespaceScopedResources
- 描述
- IncludedNamespaceScopedResources is a slice of namespace-scoped resource type names to include in the backup. The default value is "*".
- 类型
array
.spec.template.includedNamespaceScopedResources[]
- 类型
string
.spec.template.includedNamespaces
- 描述
- IncludedNamespaces is a slice of namespace names to include objects from. If empty, all namespaces are included.
- 类型
array
.spec.template.includedNamespaces[]
- 类型
string
.spec.template.includedResources
- 描述
- IncludedResources is a slice of resource names to include in the backup. If empty, all resources are included.
- 类型
array
.spec.template.includedResources[]
- 类型
string
.spec.template.labelSelector
- 描述
- LabelSelector is a metav1.LabelSelector to filter with when adding individual objects to the backup. If empty or nil, all objects are included. Optional.
- 类型
object
.spec.template.labelSelector.matchExpressions
- 描述
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- 类型
array
.spec.template.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.template.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.template.labelSelector.matchExpressions[].values[]
- 类型
string
.spec.template.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.template.orLabelSelectors
- 描述
- OrLabelSelectors is list of metav1.LabelSelector to filter with when adding individual objects to the backup. If multiple provided they will be joined by the OR operator. LabelSelector as well as OrLabelSelectors cannot co-exist in backup request, only one of them can be used.
- 类型
array
.spec.template.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.template.orLabelSelectors[].matchExpressions
- 描述
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- 类型
array
.spec.template.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.template.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.template.orLabelSelectors[].matchExpressions[].values[]
- 类型
string
.spec.template.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.template.orderedResources
- 描述
- OrderedResources specifies the backup order of resources of specific Kind. The map key is the resource name and value is a list of object names separated by commas. Each resource name has format "namespace/objectname". For cluster resources, simply use "objectname".
- 类型
object
.spec.template.resourcePolicy
- 描述
- ResourcePolicy specifies the referenced resource policies that backup should follow
- 类型
object- 必填
kindname
.spec.template.uploaderConfig
- 描述
- UploaderConfig specifies the configuration for the uploader.
- 类型
object
.spec.template.volumeSnapshotLocations
- 描述
- VolumeSnapshotLocations is a list containing names of VolumeSnapshotLocations associated with this backup.
- 类型
array
.spec.template.volumeSnapshotLocations[]
- 类型
string
.status
- 描述
- ScheduleStatus captures the current state of a Velero schedule
- 类型
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}/schedulesDELETE: delete collection of ScheduleGET: list objects of kind SchedulePOST: create a new Schedule
/apis/velero.io/v1/namespaces/{namespace}/schedules/{name}DELETE: delete the specified ScheduleGET: read the specified SchedulePATCH: partially update the specified SchedulePUT: replace the specified Schedule
/apis/velero.io/v1/namespaces/{namespace}/schedules
- HTTP 方法
DELETE- 描述
- delete collection of Schedule
- HTTP 响应
- HTTP 方法
GET- 描述
- list objects of kind Schedule
- HTTP 响应
- HTTP 方法
POST- 描述
- create a new Schedule
- 查询参数
- 请求体参数
- HTTP 响应
/apis/velero.io/v1/namespaces/{namespace}/schedules/{name}
- HTTP 方法
DELETE- 描述
- delete the specified Schedule
- 查询参数
- HTTP 响应
- HTTP 方法
GET- 描述
- read the specified Schedule
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update the specified Schedule
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace the specified Schedule
- 查询参数
- 请求体参数
- HTTP 响应