Skip to main content
Version: 3.6

DisasterRecoveryAction CRD reference

The DisasterRecoveryAction CRD represents a DR operation such as failover and failback and maps directly to Stork actions.

Example

apiVersion: multicluster.portworx.com/v1alpha1
kind: DisasterRecoveryAction
metadata:
name: <disaster-recovery-action-name>
namespace: <namespace>
spec:
actionType: Failover # Required. One of: Failover, Failback
protectionGroupReference: <protection-group-name> # Required
failoverParameters: # Required when actionType is Failover
namespaces: # Required. Namespaces to failover
- <namespace>

DisasterRecoveryAction

FieldDescriptionType
apiVersionAPIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
string
kindKind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
string
specDisasterRecoveryActionSpec defines the desired state of DisasterRecoveryActionobject
statusDisasterRecoveryActionStatus defines the observed state of DisasterRecoveryActionobject

spec fields

FieldDescriptionType
actionTypeActionType defines the type of disaster recovery actionstring
failbackParametersFailbackParameters contains parameters for failback actionobject
failbackParameters.excludeSelectorsExcludeSelectors specifies label selectors that identify resources to be excluded from DR operations.object
failbackParameters.namespacesNamespaces is the list of namespaces to failbackarray
failbackParameters.selectorsSelectors and ExcludeSelectors are mutually exclusive. Only one of these
may be set at a time to avoid ambiguous filtering of resources during DR
operations.
object
failbackParameters.typesTypes restricts the DR operation to the specified Kubernetes resource kinds. If empty, all supported types are considered.array
failbackParameters.types.groupstring
failbackParameters.types.kindstring
failbackParameters.types.versionstring
failoverParametersFailoverParameters contains parameters for failover actionobject
failoverParameters.excludeSelectorsExcludeSelectors specifies label selectors that identify resources to be excluded from DR operations.object
failoverParameters.namespacesNamespaces is the list of namespaces to failoverarray
failoverParameters.selectorsSelectors and ExcludeSelectors are mutually exclusive. Only one of these
may be set at a time to avoid ambiguous filtering of resources during DR
operations.
object
failoverParameters.skipSourceClusterDomainDeactivationSkipSourceClusterDomainDeactivation indicates whether to skip deactivating the source cluster domain during failover.boolean
failoverParameters.skipSourceOperationsSkipSourceOperations indicates whether to skip operations on source clusterboolean
failoverParameters.typesTypes restricts the DR operation to the specified Kubernetes resource kinds. If empty, all supported types are considered.array
failoverParameters.types.groupstring
failoverParameters.types.kindstring
failoverParameters.types.versionstring
protectionGroupReferenceProtectionGroupReference is the reference to the protection groupstring

status fields

FieldDescriptionType
compliantCompliant represents the compliance status of the disaster recovery action.object
compliant.reasonReason is short description of why the resource is in non compliant state.string
compliant.statusStatus: is true then resource is compliant and operational.boolean
conditionsConditions represent the latest available observations of the DisasterRecoveryAction's statearray
conditions.lastTransitionTimelastTransitionTime is the last time the condition transitioned from one status to another.
This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
string
conditions.messagemessage is a human readable message indicating details about the transition.
This may be an empty string.
string
conditions.observedGenerationobservedGeneration represents the .metadata.generation that the condition was set based upon.
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
with respect to the current state of the instance.
integer
conditions.reasonreason contains a programmatic identifier indicating the reason for the condition's last transition.
Producers of specific condition types may define expected values and meanings for this field,
and whether the values are considered a guaranteed API.
The value should be a CamelCase string.
This field may not be empty.
string
conditions.statusstatus of the condition, one of True, False, Unknown.string
conditions.typetype of condition in CamelCase or in foo.example.com/CamelCase.string
finishTimestampFinishTimestamp is the time when the disaster recovery action operation finishedstring
lastAgentUpdateTimestampLastAgentUpdateTimestamp is the time when the disaster recovery action status was last updated by the agentstring
reasonReason provides additional information about the current statusstring
referencesReferences stores all sub-resources created for disaster recovery action operation
Map of Kubernetes resource kind to array of object references in format: <uid>#<name>#<namespace>
object
stageStage represents the current stage of the disaster recovery action operationstring
startTimestampStartTimestamp is the time when the disaster recovery action was createdstring
statusStatus represents the current status of the disaster recovery action operationstring
summarySummary provides a summary of the disaster recovery action operationobject
summary.summarySummary contains per-namespace disaster recovery operation statusarray
summary.summary.namespaceNamespace is the namespace namestring
summary.summary.reasonReason provides additional information about the statusstring
summary.summary.statusStatus is the status of the operation for this namespacestring
In this topic: