Skip to search

GarageReplication

garage.rajsingh.info / v1beta1

apiVersion: garage.rajsingh.info/v1beta1 kind: GarageReplication metadata: name: example
View raw schema
apiVersion string
APIVersion 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
kind string
Kind 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
metadata object
spec object required
GarageReplicationSpec defines the desired state of GarageReplication. GarageReplication copies objects between two independent Garage clusters through their S3 APIs, for replication and migration. It is not a backup: there are no point-in-time snapshots and no restore, and in mode Mirror a deletion or an overwrite on the source reaches the destination on the next run. Each run executes one Kubernetes Job per bucket in the GarageReplication's namespace, so the Jobs need network access to both S3 endpoints. Only objects (and their user metadata) are copied: buckets, keys, permissions, quotas, website and lifecycle configuration are not. Deleting a GarageReplication never deletes object data on either side.
buckets []object required
Buckets lists the buckets to replicate, keyed by destination bucket.
minItems: 1
maxItems: 50
destination string required
Destination is the bucket name (global alias) on the destination cluster. It is the list key, so destinations are unique.
pattern: ^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$
minLength: 3
maxLength: 63
source string required
Source is the bucket name (global alias) on the source cluster.
pattern: ^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$
minLength: 3
maxLength: 63
destination object required
Destination is the cluster objects are written to. Its credentials need read and write permission on the destination buckets. Destination buckets must already exist: replication never creates buckets. A destination bucket can be written by only one GarageReplication.
clusterRef object
ClusterRef references a GarageCluster (operator-managed or a management handle). The S3 endpoint and region are resolved from it. A cross-namespace reference requires a GarageReferenceGrant in the cluster's namespace that allows kind GarageReplication.
kubeConfigSecretRef object
KubeConfigSecretRef is reserved for a future remote Kubernetes client integration. It is currently rejected by admission because the operator does not use it.
key string required
The key of the secret to select from. Must be a valid secret key.
name string
Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
optional boolean
Specify whether the Secret or its key must be defined
name string required
Name of the GarageCluster resource.
maxLength: 253
namespace string
Namespace of the GarageCluster. Defaults to the referencing resource's namespace. Cross-namespace references require a GarageReferenceGrant where supported by the owning resource. GarageNode and GarageAdminToken reject them.
maxLength: 63
credentialsSecretRef object required
CredentialsSecretRef references a Secret in the GarageReplication's namespace holding an S3 access key. The Secret must carry the label garage.rajsingh.info/replication-credentials: "true" (for a GarageKey, set it in spec.secretTemplate.labels). The access key ID is sent to the endpoint, so without this opt-in the right to create a GarageReplication would amount to reading any Secret, or using any other application's key. The default data keys match the Secret generated for a GarageKey.
accessKeyIdKey string
AccessKeyIDKey is the data key holding the access key ID.
pattern: ^[-._a-zA-Z0-9]+$
minLength: 1
maxLength: 253
name string required
Name of the Secret in the GarageReplication's namespace.
pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
minLength: 1
maxLength: 253
secretAccessKeyKey string
SecretAccessKeyKey is the data key holding the secret access key.
pattern: ^[-._a-zA-Z0-9]+$
minLength: 1
maxLength: 253
endpoint object
Endpoint is an S3 endpoint of any Garage cluster, inside or outside Kubernetes.
caBundleRef object
CABundleRef references a ConfigMap holding a PEM CA bundle used, in addition to the system trust store, to verify the endpoint's TLS certificate.
key string
Key of the ConfigMap holding the PEM bundle.
pattern: ^[-._a-zA-Z0-9]+$
minLength: 1
maxLength: 253
name string required
Name of the ConfigMap.
pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
minLength: 1
maxLength: 253
region string
Region is the Garage s3_region used for request signing.
pattern: ^[A-Za-z0-9_.-]+$
minLength: 1
maxLength: 128
url string required
URL of the S3 API: scheme and host (with an optional port) only, e.g. https://s3.example.com or http://garage.ns.svc:3900. Buckets are addressed path-style below it, so it has no path, query, fragment or credentials.
pattern: ^https?://[^\s/?#@]+/?$
minLength: 1
maxLength: 2048
failedJobsHistoryLimit integer
FailedJobsHistoryLimit is the number of finished failed Jobs to keep.
format: int32
minimum: 0
maximum: 50
mirror object
Mirror configures mode Mirror. Required when mode is Mirror and rejected otherwise.
maxDeleteSize string
MaxDeleteSize caps the total size of the destination objects one run may delete per bucket, in bytes with an optional K, M, G or T suffix (binary multiples: KiB, MiB, GiB, TiB), e.g. "10G". Once reached the run stops and fails with reason MaxDeletesExceeded, like maxDeletes. Empty means no size cap.
pattern: ^[0-9]+(\.[0-9]+)?[KMGTkmgt]?$
maxLength: 32
maxDeletes integer required
MaxDeletes caps the number of destination objects one run may delete per bucket. Once reached the run stops and fails with reason MaxDeletesExceeded; deletions done before that point are kept.
format: int64
minimum: 1
mode string
Mode controls whether changes on the source can remove data on the destination. - Copy: copy new and changed objects. Source deletions are not propagated. Changed objects are overwritten on the destination. - Mirror: the destination reflects the source, including deletions, capped by mirror.maxDeletes per bucket and run. The first run waits for the trigger-sync annotation.
enum: Copy, Mirror
podTemplate object
PodTemplate customizes the replication Pods.
affinity object
Affinity for the Pods.
nodeAffinity object
Describes node affinity scheduling rules for the pod.
preferredDuringSchedulingIgnoredDuringExecution []object
The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.
preference object required
A node selector term, associated with the corresponding weight.
matchExpressions []object
A list of node selector requirements by node's labels.
key string required
The label key that the selector applies to.
operator string required
Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
values []string
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. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
matchFields []object
A list of node selector requirements by node's fields.
key string required
The label key that the selector applies to.
operator string required
Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
values []string
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. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
weight integer required
Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.
format: int32
requiredDuringSchedulingIgnoredDuringExecution object
If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.
nodeSelectorTerms []object required
Required. A list of node selector terms. The terms are ORed.
matchExpressions []object
A list of node selector requirements by node's labels.
key string required
The label key that the selector applies to.
operator string required
Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
values []string
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. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
matchFields []object
A list of node selector requirements by node's fields.
key string required
The label key that the selector applies to.
operator string required
Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
values []string
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. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
podAffinity object
Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
preferredDuringSchedulingIgnoredDuringExecution []object
The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.
podAffinityTerm object required
Required. A pod affinity term, associated with the corresponding weight.
labelSelector object
A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods.
matchExpressions []object
matchExpressions is a list of label selector requirements. The requirements are ANDed.
key string required
key is the label key that the selector applies to.
operator string required
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
values []string
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.
matchLabels object
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.
matchLabelKeys []string
MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set.
mismatchLabelKeys []string
MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
namespaceSelector object
A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces.
matchExpressions []object
matchExpressions is a list of label selector requirements. The requirements are ANDed.
key string required
key is the label key that the selector applies to.
operator string required
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
values []string
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.
matchLabels object
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.
namespaces []string
namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace".
topologyKey string required
This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.
weight integer required
weight associated with matching the corresponding podAffinityTerm, in the range 1-100.
format: int32
requiredDuringSchedulingIgnoredDuringExecution []object
If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.
labelSelector object
A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods.
matchExpressions []object
matchExpressions is a list of label selector requirements. The requirements are ANDed.
key string required
key is the label key that the selector applies to.
operator string required
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
values []string
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.
matchLabels object
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.
matchLabelKeys []string
MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set.
mismatchLabelKeys []string
MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
namespaceSelector object
A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces.
matchExpressions []object
matchExpressions is a list of label selector requirements. The requirements are ANDed.
key string required
key is the label key that the selector applies to.
operator string required
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
values []string
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.
matchLabels object
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.
namespaces []string
namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace".
topologyKey string required
This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.
podAntiAffinity object
Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
preferredDuringSchedulingIgnoredDuringExecution []object
The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and subtracting "weight" from the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.
podAffinityTerm object required
Required. A pod affinity term, associated with the corresponding weight.
labelSelector object
A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods.
matchExpressions []object
matchExpressions is a list of label selector requirements. The requirements are ANDed.
key string required
key is the label key that the selector applies to.
operator string required
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
values []string
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.
matchLabels object
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.
matchLabelKeys []string
MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set.
mismatchLabelKeys []string
MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
namespaceSelector object
A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces.
matchExpressions []object
matchExpressions is a list of label selector requirements. The requirements are ANDed.
key string required
key is the label key that the selector applies to.
operator string required
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
values []string
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.
matchLabels object
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.
namespaces []string
namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace".
topologyKey string required
This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.
weight integer required
weight associated with matching the corresponding podAffinityTerm, in the range 1-100.
format: int32
requiredDuringSchedulingIgnoredDuringExecution []object
If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.
labelSelector object
A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods.
matchExpressions []object
matchExpressions is a list of label selector requirements. The requirements are ANDed.
key string required
key is the label key that the selector applies to.
operator string required
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
values []string
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.
matchLabels object
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.
matchLabelKeys []string
MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set.
mismatchLabelKeys []string
MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
namespaceSelector object
A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces.
matchExpressions []object
matchExpressions is a list of label selector requirements. The requirements are ANDed.
key string required
key is the label key that the selector applies to.
operator string required
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
values []string
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.
matchLabels object
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.
namespaces []string
namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace".
topologyKey string required
This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.
annotations object
Annotations added to the Pods.
labels object
Labels added to the Pods.
nodeSelector object
NodeSelector for the Pods.
priorityClassName string
PriorityClassName for the Pods.
maxLength: 253
tolerations []object
Tolerations for the Pods.
effect string
Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
key string
Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.
operator string
Operator represents a key's relationship to the value. Valid operators are Exists, Equal, Lt, and Gt. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. Lt and Gt perform numeric comparisons (requires feature gate TaintTolerationComparisonOperators).
tolerationSeconds integer
TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.
format: int64
value string
Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.
resources object
Resources for the replication container.
claims []object
Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This field depends on the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers.
name string required
Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container.
request string
Request is the name chosen for a request in the referenced claim. If empty, everything from the claim is made available, otherwise only the result of this request.
limits object
Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
requests object
Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
retry object
Retry bounds retries and duration of each per-bucket Job.
activeDeadlineSeconds integer
ActiveDeadlineSeconds bounds the duration of a per-bucket Job.
format: int64
minimum: 60
backoffLimit integer
BackoffLimit is the number of Pod retries of a per-bucket Job. Each retry restarts the bucket's comparison; already copied objects are skipped.
format: int32
minimum: 0
maximum: 10
schedule string
Schedule is a cron expression (standard 5-field syntax, descriptors such as @hourly, optional CRON_TZ= prefix; UTC otherwise). Without a schedule, runs happen only through the garage.rajsingh.info/trigger-sync annotation (one-shot mode, e.g. for migrations).
maxLength: 128
source object required
Source is the cluster objects are read from. Its credentials only need read permission on the source buckets.
clusterRef object
ClusterRef references a GarageCluster (operator-managed or a management handle). The S3 endpoint and region are resolved from it. A cross-namespace reference requires a GarageReferenceGrant in the cluster's namespace that allows kind GarageReplication.
kubeConfigSecretRef object
KubeConfigSecretRef is reserved for a future remote Kubernetes client integration. It is currently rejected by admission because the operator does not use it.
key string required
The key of the secret to select from. Must be a valid secret key.
name string
Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
optional boolean
Specify whether the Secret or its key must be defined
name string required
Name of the GarageCluster resource.
maxLength: 253
namespace string
Namespace of the GarageCluster. Defaults to the referencing resource's namespace. Cross-namespace references require a GarageReferenceGrant where supported by the owning resource. GarageNode and GarageAdminToken reject them.
maxLength: 63
credentialsSecretRef object required
CredentialsSecretRef references a Secret in the GarageReplication's namespace holding an S3 access key. The Secret must carry the label garage.rajsingh.info/replication-credentials: "true" (for a GarageKey, set it in spec.secretTemplate.labels). The access key ID is sent to the endpoint, so without this opt-in the right to create a GarageReplication would amount to reading any Secret, or using any other application's key. The default data keys match the Secret generated for a GarageKey.
accessKeyIdKey string
AccessKeyIDKey is the data key holding the access key ID.
pattern: ^[-._a-zA-Z0-9]+$
minLength: 1
maxLength: 253
name string required
Name of the Secret in the GarageReplication's namespace.
pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
minLength: 1
maxLength: 253
secretAccessKeyKey string
SecretAccessKeyKey is the data key holding the secret access key.
pattern: ^[-._a-zA-Z0-9]+$
minLength: 1
maxLength: 253
endpoint object
Endpoint is an S3 endpoint of any Garage cluster, inside or outside Kubernetes.
caBundleRef object
CABundleRef references a ConfigMap holding a PEM CA bundle used, in addition to the system trust store, to verify the endpoint's TLS certificate.
key string
Key of the ConfigMap holding the PEM bundle.
pattern: ^[-._a-zA-Z0-9]+$
minLength: 1
maxLength: 253
name string required
Name of the ConfigMap.
pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
minLength: 1
maxLength: 253
region string
Region is the Garage s3_region used for request signing.
pattern: ^[A-Za-z0-9_.-]+$
minLength: 1
maxLength: 128
url string required
URL of the S3 API: scheme and host (with an optional port) only, e.g. https://s3.example.com or http://garage.ns.svc:3900. Buckets are addressed path-style below it, so it has no path, query, fragment or credentials.
pattern: ^https?://[^\s/?#@]+/?$
minLength: 1
maxLength: 2048
successfulJobsHistoryLimit integer
SuccessfulJobsHistoryLimit is the number of finished successful Jobs to keep.
format: int32
minimum: 0
maximum: 50
suspend boolean
Suspend stops starting new runs. A run already in progress finishes; delete its Jobs to stop it immediately.
transfer object
Transfer tunes the copy.
bandwidthLimit string
BandwidthLimit caps the transfer rate of each per-bucket Job in bytes per second, with an optional K, M, G suffix (binary multiples: KiB/s, MiB/s, GiB/s), e.g. "50M". Empty means unlimited.
pattern: ^[0-9]+(\.[0-9]+)?[KMGkmg]?$
maxLength: 32
checkers integer
Checkers is the number of objects compared in parallel per bucket.
format: int32
minimum: 1
maximum: 128
concurrency integer
Concurrency is the number of objects transferred in parallel per bucket.
format: int32
minimum: 1
maximum: 64
maxConcurrentBuckets integer
MaxConcurrentBuckets is the number of buckets replicated in parallel.
format: int32
minimum: 1
maximum: 50
verification string
Verification runs a comparison of source and destination after each successful copy. Check compares sizes and MD5 hashes (size only for multipart objects without a stored MD5) and fails the run on any difference.
enum: None, Check
status object
GarageReplicationStatus defines the observed state of GarageReplication.
buckets []object
Buckets reports per-bucket results, keyed by destination bucket.
activeJob string
ActiveJob is the Job currently replicating this bucket.
destination string required
Destination bucket; the list key.
hold string
Hold is set when this bucket must not run again without a person asking. Scheduled runs skip a held bucket. Only the trigger-sync annotation releases it; editing the spec does not.
enum: SourceEmpty, MaxDeletesExceeded, AwaitingTrigger
lastCompletionTime string
LastCompletionTime is when LastJob finished.
format: date-time
lastError string
LastError is a fixed reason for a failed LastJob.
enum: AuthFailed, BucketNotFound, EndpointUnreachable, SourceEmpty, MaxDeletesExceeded, VerificationFailed, DeadlineExceeded, TransferErrors, Unknown
lastJob string
LastJob is the last finished Job recorded for this bucket.
lastMode string
LastMode is the mode LastJob ran in. A Mirror bucket whose last Job did not run in Mirror mode waits for a trigger-sync (hold AwaitingTrigger) before its first Mirror run.
lastResult string
LastResult is the outcome of LastJob.
enum: Succeeded, Failed, Cancelled
lastRunId string
LastRunID is the run of LastJob.
lastStatistics object
LastStatistics are the copy engine's counters for LastJob. Unset when the engine reported none (e.g. the Pod was killed).
bytes integer required
Bytes is the number of bytes written to the destination.
format: int64
checks integer required
Checks is the number of objects compared and found up to date.
format: int64
deletes integer required
Deletes is the number of destination objects deleted (Mirror).
format: int64
differences integer
Differences is the number of differences found by verification.
format: int64
elapsedSeconds integer required
ElapsedSeconds is the duration of the copy.
format: int64
errors integer required
Errors is the number of errors.
format: int64
transfers integer required
Transfers is the number of objects written to the destination.
format: int64
lastSuccessfulTime string
LastSuccessfulTime is when the last successful Job for this bucket finished.
format: date-time
lastVerification string
LastVerification is the verification outcome when verification ran.
enum: Passed, Failed
source string required
Source bucket.
conditions []object
Conditions: Ready (configuration resolved; reasons include CredentialsNotAllowed and DestinationConflict), Synced (every bucket succeeded in the last run on the current configuration), Suspended.
lastTransitionTime string required
lastTransitionTime 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.
format: date-time
message string required
message is a human readable message indicating details about the transition. This may be an empty string.
maxLength: 32768
observedGeneration integer
observedGeneration 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.
format: int64
minimum: 0
reason string required
reason 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.
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
minLength: 1
maxLength: 1024
status string required
status of the condition, one of True, False, Unknown.
enum: True, False, Unknown
type string required
type of condition in CamelCase or in foo.example.com/CamelCase.
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
maxLength: 316
currentRun object
CurrentRun describes the run in progress.
buckets []string
Buckets lists the destination buckets taking part in the run.
completionTime string
CompletionTime is when the run finished.
format: date-time
id string required
ID identifies the run; it is part of the Job names.
reason string required
Reason is why the run started.
enum: Initial, Scheduled, Triggered
result string
Result is Succeeded when every bucket of the run succeeded, else Failed.
enum: Succeeded, Failed, Cancelled
specHash string
SpecHash identifies the configuration the run started with.
startTime string required
StartTime is when the run started.
format: date-time
trigger string
Trigger is the trigger-sync annotation value that started the run.
lastOperation object
LastOperation records the outcome of the last trigger-sync annotation.
error string
Error contains the error message when Succeeded is false
succeeded boolean
Succeeded indicates the operation completed without error
triggeredAt string
TriggeredAt is when the operation was triggered
format: date-time
type string
Type is the operation type (e.g. "Snapshot", "Repair:Blocks", "Scrub:start")
lastRun object
LastRun describes the most recent finished run.
buckets []string
Buckets lists the destination buckets taking part in the run.
completionTime string
CompletionTime is when the run finished.
format: date-time
id string required
ID identifies the run; it is part of the Job names.
reason string required
Reason is why the run started.
enum: Initial, Scheduled, Triggered
result string
Result is Succeeded when every bucket of the run succeeded, else Failed.
enum: Succeeded, Failed, Cancelled
specHash string
SpecHash identifies the configuration the run started with.
startTime string required
StartTime is when the run started.
format: date-time
trigger string
Trigger is the trigger-sync annotation value that started the run.
lastScheduleTime string
LastScheduleTime is the start time of the most recent run.
format: date-time
lastSuccessfulSyncTime string
LastSuccessfulSyncTime is when the most recent run in which every bucket succeeded finished.
format: date-time
lastSyncTime string
LastSyncTime is when the most recent run finished, whatever its result.
format: date-time
nextSyncTime string
NextSyncTime is when the next scheduled run starts. Unset without a schedule or while suspended.
format: date-time
observedGeneration integer
ObservedGeneration is the last observed generation.
format: int64
phase string
Phase summarizes the state.
enum: Pending, Idle, Syncing, Suspended, Failed

No matches. Try .spec.buckets for an exact path