Skip to search

GarageCluster

garage.rajsingh.info / v1beta1

apiVersion: garage.rajsingh.info/v1beta1 kind: GarageCluster 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
GarageClusterSpec defines the desired state of GarageCluster
admin object
Admin configures the admin API endpoint and metrics
adminTokenSecretRef object
AdminTokenSecretRef references the secret the operator uses to authenticate with Garage's Admin API. The operator reads this token to manage buckets, keys, and layout on behalf of GarageBucket/GarageKey/GarageNode resources. Required for gateway clusters that use connectTo — the operator needs admin API access to issue ConnectNode commands. If omitted for storage clusters, layout management and bucket/key reconciliation are unavailable. Use GarageAdminToken to create tokens for external tooling; this field is specifically for the operator's own access.
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
bindAddress string
BindAddress is a custom bind address for the Admin API. Can be a TCP address or Unix socket path (e.g., "unix:///run/garage/admin.sock"). If set, this overrides BindPort.
bindPort integer
BindPort is the port to bind for admin API
format: int32
minimum: 1
maximum: 65535
metricsRequireToken boolean
MetricsRequireToken requires Bearer token authentication for the /metrics endpoint. When true, Prometheus scrape configs must include the token from metricsTokenSecretRef.
metricsTokenSecretRef object
MetricsTokenSecretRef references a secret containing a token that protects the /metrics endpoint. Only used when metricsRequireToken is true.
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
traceSink string
TraceSink is the OpenTelemetry collector address for tracing Example: "http://localhost:4317"
affinity object
Affinity for pod scheduling
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.
blocks object
Blocks configures block storage settings
compressionLevel string
CompressionLevel is the zstd compression level 1-19: standard, 20-22: ultra, -1 to -99: fast, "none": disabled
pattern: ^(none|-?[1-9][0-9]*)$
disableScrub boolean
DisableScrub disables automatic monthly data directory scrub
maxConcurrentReads integer
MaxConcurrentReads is the maximum simultaneous block file reads
minimum: 1
maxConcurrentWritesPerRequest integer
MaxConcurrentWritesPerRequest is the maximum parallel block writes per PUT request. Higher values improve throughput but increase memory usage. Default: 3. Recommended: 10-30 for NVMe, 3-10 for HDD. Added in Garage v2.2.0.
minimum: 1
ramBufferMax string | integer
RAMBufferMax is the maximum RAM for buffering blocks
string pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
size string | integer
Size is the size of data blocks (default: 1M)
string pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
useLocalTZ boolean
UseLocalTZ runs lifecycle worker at midnight in local timezone
capacityReservePercent integer
CapacityReservePercent reserves a percentage of PVC capacity for overhead. Only used when LayoutPolicy is "Auto". For example, setting this to 10 will report 90% of PVC size as node capacity. This is useful to reserve headroom for filesystem overhead, snapshots, or growth. Default: 0 (use full PVC size as capacity)
minimum: 0
maximum: 50
connectTo object
ConnectTo specifies the storage cluster this gateway cluster connects to. Required when gateway=true. The gateway cluster will: - Use the same RPC secret as the storage cluster - Connect to the storage cluster's nodes - Register its pods as gateway nodes in the storage cluster's layout
adminApiEndpoint string
AdminAPIEndpoint is the storage cluster's Admin API URL. Used by the operator to discover nodes and register this gateway's pods. Required when clusterRef is not set or is in a different namespace. Example: "http://garage-storage.other-namespace:3903"
adminTokenSecretRef object
AdminTokenSecretRef references the storage cluster's admin token. Required when adminApiEndpoint is set and the storage cluster requires auth. If clusterRef is in the same namespace, the operator reads the token automatically.
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
bootstrapPeers []string
BootstrapPeers are initial peers for cluster formation. Required when clusterRef is not set (the operator can't auto-discover peers). Format: "<64-hex-node-id>@<ip_or_hostname>:<port>"
clusterRef object
ClusterRef references a GarageCluster in the same namespace. When set, the operator automatically reads the RPC secret and admin token from the referenced cluster — no need to set rpcSecretRef or adminTokenSecretRef.
kubeConfigSecretRef object
KubeConfigSecretRef references a secret containing a kubeconfig for a remote Kubernetes cluster. Only needed for multi-cluster federation where the GarageCluster lives in a different Kubernetes cluster entirely (not just a different namespace).
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.
namespace string
Namespace of the GarageCluster. Defaults to the referencing resource's namespace. Cross-namespace references require a GarageReferenceGrant in the target namespace. Not supported on GarageNode.
rpcSecretRef object
RPCSecretRef references a secret containing the shared RPC secret. Required when clusterRef is not set or references a different namespace. The secret must have a key with a 32-byte hex-encoded value.
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
containerSecurityContext object
ContainerSecurityContext for Garage containers
allowPrivilegeEscalation boolean
AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows.
appArmorProfile object
appArmorProfile is the AppArmor options to use by this container. If set, this profile overrides the pod's appArmorProfile. Note that this field cannot be set when spec.os.name is windows.
localhostProfile string
localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is "Localhost".
type string required
type indicates which kind of AppArmor profile will be applied. Valid options are: Localhost - a profile pre-loaded on the node. RuntimeDefault - the container runtime's default profile. Unconfined - no AppArmor enforcement.
capabilities object
The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows.
add []string
Added capabilities
drop []string
Removed capabilities
privileged boolean
Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows.
procMount string
procMount denotes the type of proc mount to use for the containers. The default value is Default which uses the container runtime defaults for readonly paths and masked paths. Note that this field cannot be set when spec.os.name is windows.
readOnlyRootFilesystem boolean
Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows.
runAsGroup integer
The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.
format: int64
runAsNonRoot boolean
Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
runAsUser integer
The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.
format: int64
seLinuxOptions object
The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.
level string
Level is SELinux level label that applies to the container.
role string
Role is a SELinux role label that applies to the container.
type string
Type is a SELinux type label that applies to the container.
user string
User is a SELinux user label that applies to the container.
seccompProfile object
The seccomp options to use by this container. If seccomp options are provided at both the pod & container level, the container options override the pod options. Note that this field cannot be set when spec.os.name is windows.
localhostProfile string
localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is "Localhost". Must NOT be set for any other type.
type string required
type indicates which kind of seccomp profile will be applied. Valid options are: Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied.
windowsOptions object
The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux.
gmsaCredentialSpec string
GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field.
gmsaCredentialSpecName string
GMSACredentialSpecName is the name of the GMSA credential spec to use.
hostProcess boolean
HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.
runAsUserName string
The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
database object
Database configures the metadata database engine
engine string
Engine specifies the database engine to use
enum: lmdb, sqlite, fjall
fjallBlockCacheSize string | integer
FjallBlockCacheSize is the block cache size for Fjall
string pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
lmdbMapSize string | integer
LMDBMapSize is the virtual memory region size for LMDB
string pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
defaultNodeTags []string
DefaultNodeTags are tags applied to all auto-managed nodes. Only used when LayoutPolicy is "Auto". For per-node tags, use LayoutPolicy "Manual" with GarageNode resources.
discovery object
Discovery configures peer discovery mechanisms
consul object
Consul configures Consul-based peer discovery
api string
API specifies the service registration API ("catalog" or "agent")
enum: catalog, agent
caCert string
CACert is the CA certificate for TLS connection
caCertSecretRef object
CACertSecretRef references a secret containing the CA certificate
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
clientCertSecretRef object
ClientCertSecretRef references a secret containing client TLS cert
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
clientKeySecretRef object
ClientKeySecretRef references a secret containing client TLS key
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
datacenters []string
Datacenters for WAN federation
enabled boolean
Enabled enables Consul-based discovery
httpAddr string
HTTPAddr is the full HTTP(S) address of Consul server
meta object
Meta is service metadata key-value pairs
serviceName string
ServiceName for Garage RPC port registration
tags []string
Tags are additional service tags
tlsSkipVerify boolean
TLSSkipVerify skips TLS hostname verification
tokenSecretRef object
TokenSecretRef references a secret containing the bearer token
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
kubernetes object
Kubernetes configures Kubernetes-based peer discovery
enabled boolean
Enabled enables Kubernetes-based discovery
namespace string
Namespace for Garage custom resources
serviceName string
ServiceName label to filter custom resources
skipCRD boolean
SkipCRD skips automatic CRD creation/patching
gateway boolean
Gateway marks this cluster as a gateway-only cluster. Gateway clusters don't store data - they only handle API requests. When true: - Creates a StatefulSet with metadata PVC only (for node identity persistence) - Data storage uses EmptyDir (gateways don't store blocks) - Pods are registered as gateway nodes in the layout (capacity=null) - Must specify connectTo to reference a storage cluster
image string
Image specifies the Garage container image to use. Takes precedence over imageRepository if both are set.
imagePullPolicy string
ImagePullPolicy specifies the image pull policy
imagePullSecrets []object
ImagePullSecrets specifies secrets for pulling images from private registries
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
imageRepository string
ImageRepository overrides just the repository portion of the default Garage image, preserving the default tag for automatic version upgrades. For example, setting this to "my-mirror/garage" with the default tag v2.3.0 produces "my-mirror/garage:v2.3.0". Ignored if image is set.
k2vApi object
K2VAPI configures the K2V (key-value) API endpoint. Omit to disable K2V.
bindAddress string
BindAddress is a custom bind address for the K2V API. Can be a TCP address or Unix socket path (e.g., "unix:///run/garage/k2v.sock"). If set, this overrides BindPort.
bindPort integer
BindPort is the port to bind for K2V API
format: int32
minimum: 1
maximum: 65535
layoutManagement object
LayoutManagement controls automatic layout application behavior. By default, staged layout changes are NOT applied automatically — the operator stages them and waits for manual approval (or the force-layout-apply annotation). Set autoApply: true to apply changes automatically once minNodesHealthy are connected.
autoApply boolean
AutoApply automatically applies staged layout changes
minNodesHealthy integer
MinNodesHealthy is the minimum healthy nodes required before applying layout changes
layoutPolicy string
LayoutPolicy controls whether node layouts are automatically managed or manually configured. - "Auto": The controller automatically assigns all local pods to the layout using the cluster's zone and derives capacity from data PVC size. No GarageNode resources needed. - "Manual": You must create GarageNode resources for each node you want in the layout. Use this for fine-grained control over zones, capacities, or external nodes.
enum: Auto, Manual
logging object
Logging configures logging behavior for Garage nodes
journald boolean
Journald enables logging to systemd journald (requires Garage built with journald feature)
level string
Level sets the log level using RUST_LOG format. Examples: - "info": Default info level for all components - "debug": Debug level for all components - "garage=debug": Debug only for garage module - "garage=debug,netapp=info": Fine-grained per-component levels - "garage=trace,netapp=debug,rusoto=warn": Multiple components See https://docs.rs/env_logger for full syntax.
syslog boolean
Syslog enables logging to syslog (requires Garage built with syslog feature)
maintenance object
Maintenance configures maintenance mode for this cluster.
suspended boolean
Suspended pauses all reconciliation for this cluster. The operator will not make any changes while suspended.
monitoring object
Monitoring configures Prometheus integration for this cluster.
additionalLabels object
AdditionalLabels are added to the ServiceMonitor metadata.
enabled boolean
Enabled creates a ServiceMonitor targeting the admin API /metrics endpoint. Requires prometheus-operator to be installed in the cluster.
interval string
Interval is the Prometheus scrape interval (e.g. "30s", "1m"). Defaults to the Prometheus global scrape interval when unset.
metricRelabelings []object
MetricRelabelings are applied to samples scraped from the admin /metrics endpoint before ingestion (set as the ServiceMonitor endpoint's metricRelabelings). Use them to drop high-cardinality series that nothing queries — e.g. the per-method rpc_duration_* histograms, which dominate a Garage node's metric series count.
action string
action to perform based on the regex matching. `Uppercase` and `Lowercase` actions require Prometheus >= v2.36.0. `DropEqual` and `KeepEqual` actions require Prometheus >= v2.41.0. Default: "Replace"
enum: replace, Replace, keep, Keep, drop, Drop, hashmod, HashMod, labelmap, LabelMap, labeldrop, LabelDrop, labelkeep, LabelKe... replace, Replace, keep, Keep, drop, Drop, hashmod, HashMod, labelmap, LabelMap, labeldrop, LabelDrop, labelkeep, LabelKeep, lowercase, Lowercase, uppercase, Uppercase, keepequal, KeepEqual, dropequal, DropEqual
modulus integer
modulus to take of the hash of the source label values. Only applicable when the action is `HashMod`.
format: int64
regex string
regex defines the regular expression against which the extracted value is matched.
replacement string
replacement value against which a Replace action is performed if the regular expression matches. Regex capture groups are available.
separator string
separator defines the string between concatenated SourceLabels.
sourceLabels []string
sourceLabels defines the source labels select values from existing labels. Their content is concatenated using the configured Separator and matched against the configured regular expression.
targetLabel string
targetLabel defines the label to which the resulting string is written in a replacement. It is mandatory for `Replace`, `HashMod`, `Lowercase`, `Uppercase`, `KeepEqual` and `DropEqual` actions. Regex capture groups are available.
network object
Network configures RPC and API networking
bootstrapPeers []string
BootstrapPeers lists initial peers for cluster formation. Format: "<node_public_key>@<ip_or_hostname>:<port>" Example: - "563e1ac825ee3323aa441e72c26d1030d6d4414aeb3dd25287c531e7fc2bc95d@10.0.0.1:3901" - "ec79480e0ce52ae26fd00c9da684e4fa56f77571b9b8560382f859930e63571d@garage-2.example.com:3901"
rpcBindAddress string
RPCBindAddress is a custom bind address for the RPC server. Can be a TCP address (e.g., "0.0.0.0:3901", "[::]:3901"). If set, this overrides RPCBindPort.
rpcBindOutgoing boolean
RPCBindOutgoing pre-binds outgoing sockets to same IP
rpcBindPort integer
RPCBindPort is the port for inter-cluster RPC
format: int32
minimum: 1
maximum: 65535
rpcPingTimeout string
RPCPingTimeout sets the RPC ping timeout (e.g. "10s", "500ms").
rpcPublicAddr string
RPCPublicAddr is the external address for other nodes to contact this node
rpcPublicAddrSubnet string
RPCPublicAddrSubnet filters autodiscovered IPs to specific subnet
rpcSecretRef object
RPCSecret is a reference to a secret containing the RPC secret The secret must have a key 'rpc-secret' with a 32-byte hex-encoded value
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
rpcTimeout string
RPCTimeout sets the RPC call timeout (e.g. "30s").
service object
Service configures the Kubernetes Service for the cluster
annotations object
Annotations to add to the service.
externalTrafficPolicy string
ExternalTrafficPolicy for LoadBalancer/NodePort
labels object
Labels to add to the service. Operator-managed labels take precedence on conflict.
loadBalancerIP string
LoadBalancerIP for LoadBalancer type
loadBalancerSourceRanges []string
LoadBalancerSourceRanges for LoadBalancer type
type string
Type of service
enum: ClusterIP, NodePort, LoadBalancer
nodeSelector object
NodeSelector for pod scheduling
podAnnotations object
PodAnnotations to add to Garage pods
podDisruptionBudget object
PodDisruptionBudget configures a PodDisruptionBudget for the cluster's StatefulSet. When set, the operator creates a PDB to limit voluntary pod disruptions during node maintenance, rolling updates, or cluster autoscaler actions. If omitted, no PDB is created.
enabled boolean
Enabled enables PodDisruptionBudget creation
maxUnavailable string | integer
MaxUnavailable specifies the maximum number of pods that can be unavailable. Can be an absolute number (e.g., 1) or a percentage (e.g., "25%"). Mutually exclusive with MinAvailable.
minAvailable string | integer
MinAvailable specifies the minimum number of pods that must be available. Can be an absolute number (e.g., 2) or a percentage (e.g., "50%"). Mutually exclusive with MaxUnavailable.
podLabels object
PodLabels to add to Garage pods
priorityClassName string
PriorityClassName for Garage pods
publicEndpoint object
PublicEndpoint configures how remote clusters reach this cluster's nodes Required for multi-cluster federation
externalIP object
ExternalIP configuration
addressTemplate string
AddressTemplate uses go template to generate addresses from pod info Example: "garage-{{.Index}}.example.com"
addresses object
Addresses maps pod names to external IPs
loadBalancer object
LoadBalancer configuration
annotations object
Annotations to add to the service.
labels object
Labels to add to the service. Operator-managed labels take precedence on conflict.
perNode boolean
PerNode creates a separate LoadBalancer service per GarageCluster pod instead of one shared LoadBalancer service. In auto-layout GarageCluster mode, those services are used for operator-driven reverse ConnectClusterNodes calls; the pods still share one Garage ConfigMap, so distinct per-pod rpc_public_addr values are not written into Garage config. Use Manual layout with GarageNode resources when each node also needs its own advertised rpc_public_addr.
nodePort object
NodePort configuration
annotations object
Annotations to add to the service.
basePort integer
BasePort is the starting NodePort; Garage pod N is exposed on BasePort+N. If omitted, the controller allocates starting from the RPC port base (30901).
format: int32
minimum: 30000
maximum: 32767
externalAddresses []string required
ExternalAddresses are the externally-reachable IPs or hostnames of the Kubernetes nodes. The operator maps Garage pod N to ExternalAddresses[N % len(ExternalAddresses)], so the order should be stable. Must have at least one entry.
labels object
Labels to add to the service. Operator-managed labels take precedence on conflict.
type string required
Type specifies how nodes are exposed to remote clusters for RPC
enum: LoadBalancer, NodePort, ExternalIP, Headless
remoteClusters []object
RemoteClusters lists Garage clusters in other Kubernetes clusters to federate with. The operator connects to each remote cluster's Admin API to discover its nodes, merge them into the shared layout, and keep the layout in sync as nodes come and go. All clusters in a federation must share the same RPC secret.
connection object required
Connection defines how to connect to this remote cluster
adminApiEndpoint string required
AdminAPIEndpoint is the admin API endpoint of the remote cluster This should be a reachable HTTP/HTTPS URL (e.g., via Tailscale, LoadBalancer, or port-forward) Example: "http://garage-remote.tailscale:3903"
minLength: 1
adminTokenSecretRef object
AdminTokenSecretRef references the admin token for the remote cluster's API If not specified, uses the local cluster's admin token (for shared-token setups)
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
gatewayRpcEndpointTemplate string
GatewayRPCEndpointTemplate is a hostname:port template used by federation to connect to remote gateway pods individually. The literal `{ordinal}` is replaced with each remote gateway pod's ordinal (0, 1, ...). Example: "ottawa-garage-gw-{ordinal}.keiretsu.ts.net:3901"
defaultCapacity string | integer
DefaultCapacity is the default storage capacity to assign to remote nodes that don't yet have a role in the layout. If not specified, defaults to 100Gi. Set to "0" to add nodes as gateway-only (no storage).
string pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
name string required
Name is a friendly name for this remote cluster
minLength: 1
zone string required
Zone is the zone name for nodes in this remote cluster
minLength: 1
replicas integer required
Replicas is the number of Garage nodes to deploy in this cluster. Set to 0 to keep the cluster declared but stop all pods.
format: int32
minimum: 0
replication object
Replication configures data replication settings. If omitted, defaults to factor: 3 and consistencyMode: consistent.
consistencyMode string
ConsistencyMode controls quorum behavior for read/write operations. Values: - "consistent" (default): Require quorum for both reads and writes. Safest option, ensures strong consistency. - "degraded": Allow reads from single node when quorum unavailable. May return stale data during network partitions. - "dangerous": Allow reads AND writes without quorum. WARNING: May lose data during failures!
enum: consistent, degraded, dangerous
factor integer required
Factor is the replication factor (1, 2, 3, 5, 7, etc.) Must be the same on all nodes in the cluster
minimum: 1
maximum: 7
zoneRedundancyMinZones integer
ZoneRedundancyMinZones is the minimum number of zones required. Only valid when ZoneRedundancyMode is "AtLeast". Must not exceed the replication factor.
minimum: 1
maximum: 7
zoneRedundancyMode string
ZoneRedundancyMode controls how data is distributed across zones. "Maximum": spread replicas across as many zones as possible (default). "AtLeast": require replicas in at least ZoneRedundancyMinZones zones.
enum: Maximum, AtLeast
resources object
Resources specifies compute resources for Garage pods
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/
s3Api object
S3API configures the S3-compatible API endpoint
bindAddress string
BindAddress is a custom bind address for the S3 API. Can be a TCP address (e.g., "0.0.0.0:3900", "[::]:3900") or a Unix socket path (e.g., "unix:///run/garage/s3.sock"). If set, this overrides BindPort.
bindPort integer
BindPort is the port to bind for S3 API
format: int32
minimum: 1
maximum: 65535
region string required
Region is the AWS S3 region name to use
rootDomain string
RootDomain is the root domain suffix for vhost-style S3 access. When set, buckets can be accessed via <bucket-name>.<root-domain>. Examples: - ".s3.garage.tld" -> Access bucket "mybucket" at "mybucket.s3.garage.tld" - ".s3.example.com" -> Access bucket "data" at "data.s3.example.com" Note: Include the leading dot.
security object
Security configures security-related settings
allowInsecureSecretPermissions boolean
AllowInsecureSecretPermissions bypasses Garage's check that secret files (RPC secret, admin token) are not world-readable on disk. Only enable if your container security model handles file permissions externally. Enabling this weakens the defense-in-depth for credential exposure.
allowPunycode boolean
AllowPunycode allows punycode in bucket names
tls object
TLS configures TLS settings
caSecretRef object
CASecretRef references a secret containing the CA certificate for verifying peer nodes
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
certSecretRef object
CertSecretRef references a secret containing the TLS certificate for RPC
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
enabled boolean
Enabled enables TLS for inter-node RPC communication. NOTE: This does NOT enable TLS for S3/Admin APIs - use a service mesh or load balancer for that.
keySecretRef object
KeySecretRef references a secret containing the TLS private key for RPC
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
securityContext object
SecurityContext for Garage pods
appArmorProfile object
appArmorProfile is the AppArmor options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows.
localhostProfile string
localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is "Localhost".
type string required
type indicates which kind of AppArmor profile will be applied. Valid options are: Localhost - a profile pre-loaded on the node. RuntimeDefault - the container runtime's default profile. Unconfined - no AppArmor enforcement.
fsGroup integer
A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- If unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.
format: int64
fsGroupChangePolicy string
fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used. Note that this field cannot be set when spec.os.name is windows.
runAsGroup integer
The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.
format: int64
runAsNonRoot boolean
Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
runAsUser integer
The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.
format: int64
seLinuxChangePolicy string
seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. Valid values are "MountOption" and "Recursive". "Recursive" means relabeling of all files on all Pod volumes by the container runtime. This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node. "MountOption" mounts all eligible Pod volumes with `-o context` mount option. This requires all Pods that share the same volume to use the same SELinux label. It is not possible to share the same volume among privileged and unprivileged Pods. Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their CSIDriver instance. Other volumes are always re-labelled recursively. "MountOption" value is allowed only when SELinuxMount feature gate is enabled. If not specified and SELinuxMount feature gate is enabled, "MountOption" is used. If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes and "Recursive" for all other volumes. This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers. All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. Note that this field cannot be set when spec.os.name is windows.
seLinuxOptions object
The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.
level string
Level is SELinux level label that applies to the container.
role string
Role is a SELinux role label that applies to the container.
type string
Type is a SELinux type label that applies to the container.
user string
User is a SELinux user label that applies to the container.
seccompProfile object
The seccomp options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows.
localhostProfile string
localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is "Localhost". Must NOT be set for any other type.
type string required
type indicates which kind of seccomp profile will be applied. Valid options are: Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied.
supplementalGroups []integer
A list of groups applied to the first process run in each container, in addition to the container's primary GID and fsGroup (if specified). If the SupplementalGroupsPolicy feature is enabled, the supplementalGroupsPolicy field determines whether these are in addition to or instead of any group memberships defined in the container image. If unspecified, no additional groups are added, though group memberships defined in the container image may still be used, depending on the supplementalGroupsPolicy field. Note that this field cannot be set when spec.os.name is windows.
supplementalGroupsPolicy string
Defines how supplemental groups of the first container processes are calculated. Valid values are "Merge" and "Strict". If not specified, "Merge" is used. (Alpha) Using the field requires the SupplementalGroupsPolicy feature gate to be enabled and the container runtime must implement support for this feature. Note that this field cannot be set when spec.os.name is windows.
sysctls []object
Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows.
name string required
Name of a property to set
value string required
Value of a property to set
windowsOptions object
The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux.
gmsaCredentialSpec string
GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field.
gmsaCredentialSpecName string
GMSACredentialSpecName is the name of the GMSA credential spec to use.
hostProcess boolean
HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.
runAsUserName string
The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
serviceAccountName string
ServiceAccountName for Garage pods
storage object
Storage configures storage settings for metadata and data. Optional - sensible defaults are provided: - Storage clusters: 10Gi metadata, 100Gi data - Gateway clusters: 1Gi metadata only (data uses EmptyDir)
data object
Data configures data block storage
accessModes []string
AccessModes for the PVC. Only valid when Type=PersistentVolumeClaim.
annotations object
Annotations to set on the PVC. Only valid when Type=PersistentVolumeClaim.
labels object
Labels to set on the PVC. Only valid when Type=PersistentVolumeClaim.
paths []object
Paths configures multiple data directories for multi-disk setups. Only valid for data volumes — webhook rejects this on metadata volumes. Only valid when Type=PersistentVolumeClaim.
capacity string | integer
Capacity of the drive (required unless readOnly)
string pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
path string required
Path to the data directory
readOnly boolean
ReadOnly marks directory as legacy read-only for migrations
volume object
Volume configuration if using PVC
accessModes []string
AccessModes for the PVC.
annotations object
Annotations to set on the PVC.
labels object
Labels to set on the PVC.
selector object
Selector to select PVs.
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.
size string | integer
Size of the volume (storage request).
string pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
storageClassName string
StorageClassName for the PVC.
type string
Type specifies the volume type: PersistentVolumeClaim (default) or EmptyDir.
enum: PersistentVolumeClaim, EmptyDir
volumeClaimTemplateSpec object
VolumeClaimTemplateSpec allows full customization of the PVC.
accessModes []string
accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
dataSource object
dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource.
apiGroup string
APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.
kind string required
Kind is the type of resource being referenced
name string required
Name is the name of resource being referenced
dataSourceRef object
dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While dataSource ignores disallowed values (dropping them), dataSourceRef preserves all values, and generates an error if a disallowed value is specified. * While dataSource only allows local objects, dataSourceRef allows objects in any namespaces. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
apiGroup string
APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.
kind string required
Kind is the type of resource being referenced
name string required
Name is the name of resource being referenced
namespace string
Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
resources object
resources represents the minimum resources the volume should have. Users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
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/
selector object
selector is a label query over volumes to consider for binding.
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.
storageClassName string
storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1
volumeAttributesClassName string
volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string or nil value indicates that no VolumeAttributesClass will be applied to the claim. If the claim enters an Infeasible error state, this field can be reset to its previous value (including nil) to cancel the modification. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/
volumeMode string
volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.
volumeName string
volumeName is the binding reference to the PersistentVolume backing this claim.
selector object
Selector to select PVs. Only valid when Type=PersistentVolumeClaim.
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.
size string | integer
Size of the volume. - For PVC: storage request (defaults to 10Gi for metadata if not specified) - For EmptyDir: optional sizeLimit (if omitted, uses available node resources)
string pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
storageClassName string
StorageClassName for the PVC. Only valid when Type=PersistentVolumeClaim.
type string
Type specifies the volume type: PersistentVolumeClaim (default) or EmptyDir. When EmptyDir, data is lost on pod restart - only use for testing.
enum: PersistentVolumeClaim, EmptyDir
volumeClaimTemplateSpec object
VolumeClaimTemplateSpec allows full customization of the PVC. Only valid when Type=PersistentVolumeClaim.
accessModes []string
accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
dataSource object
dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource.
apiGroup string
APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.
kind string required
Kind is the type of resource being referenced
name string required
Name is the name of resource being referenced
dataSourceRef object
dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While dataSource ignores disallowed values (dropping them), dataSourceRef preserves all values, and generates an error if a disallowed value is specified. * While dataSource only allows local objects, dataSourceRef allows objects in any namespaces. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
apiGroup string
APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.
kind string required
Kind is the type of resource being referenced
name string required
Name is the name of resource being referenced
namespace string
Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
resources object
resources represents the minimum resources the volume should have. Users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
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/
selector object
selector is a label query over volumes to consider for binding.
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.
storageClassName string
storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1
volumeAttributesClassName string
volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string or nil value indicates that no VolumeAttributesClass will be applied to the claim. If the claim enters an Infeasible error state, this field can be reset to its previous value (including nil) to cancel the modification. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/
volumeMode string
volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.
volumeName string
volumeName is the binding reference to the PersistentVolume backing this claim.
dataFsync boolean
DataFsync enables fsync for data block writes
layoutPolicy string
LayoutPolicy overrides the cluster layoutPolicy for the storage tier only (Auto/Manual). Round-trips losslessly with v1beta2 spec.storage.layoutPolicy.
metadata object
Metadata configures metadata storage
accessModes []string
AccessModes for the PVC. Only valid when Type=PersistentVolumeClaim.
annotations object
Annotations to set on the PVC. Only valid when Type=PersistentVolumeClaim.
labels object
Labels to set on the PVC. Only valid when Type=PersistentVolumeClaim.
paths []object
Paths configures multiple data directories for multi-disk setups. Only valid for data volumes — webhook rejects this on metadata volumes. Only valid when Type=PersistentVolumeClaim.
capacity string | integer
Capacity of the drive (required unless readOnly)
string pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
path string required
Path to the data directory
readOnly boolean
ReadOnly marks directory as legacy read-only for migrations
volume object
Volume configuration if using PVC
accessModes []string
AccessModes for the PVC.
annotations object
Annotations to set on the PVC.
labels object
Labels to set on the PVC.
selector object
Selector to select PVs.
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.
size string | integer
Size of the volume (storage request).
string pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
storageClassName string
StorageClassName for the PVC.
type string
Type specifies the volume type: PersistentVolumeClaim (default) or EmptyDir.
enum: PersistentVolumeClaim, EmptyDir
volumeClaimTemplateSpec object
VolumeClaimTemplateSpec allows full customization of the PVC.
accessModes []string
accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
dataSource object
dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource.
apiGroup string
APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.
kind string required
Kind is the type of resource being referenced
name string required
Name is the name of resource being referenced
dataSourceRef object
dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While dataSource ignores disallowed values (dropping them), dataSourceRef preserves all values, and generates an error if a disallowed value is specified. * While dataSource only allows local objects, dataSourceRef allows objects in any namespaces. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
apiGroup string
APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.
kind string required
Kind is the type of resource being referenced
name string required
Name is the name of resource being referenced
namespace string
Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
resources object
resources represents the minimum resources the volume should have. Users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
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/
selector object
selector is a label query over volumes to consider for binding.
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.
storageClassName string
storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1
volumeAttributesClassName string
volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string or nil value indicates that no VolumeAttributesClass will be applied to the claim. If the claim enters an Infeasible error state, this field can be reset to its previous value (including nil) to cancel the modification. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/
volumeMode string
volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.
volumeName string
volumeName is the binding reference to the PersistentVolume backing this claim.
selector object
Selector to select PVs. Only valid when Type=PersistentVolumeClaim.
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.
size string | integer
Size of the volume. - For PVC: storage request (defaults to 10Gi for metadata if not specified) - For EmptyDir: optional sizeLimit (if omitted, uses available node resources)
string pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
storageClassName string
StorageClassName for the PVC. Only valid when Type=PersistentVolumeClaim.
type string
Type specifies the volume type: PersistentVolumeClaim (default) or EmptyDir. When EmptyDir, data is lost on pod restart - only use for testing.
enum: PersistentVolumeClaim, EmptyDir
volumeClaimTemplateSpec object
VolumeClaimTemplateSpec allows full customization of the PVC. Only valid when Type=PersistentVolumeClaim.
accessModes []string
accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
dataSource object
dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource.
apiGroup string
APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.
kind string required
Kind is the type of resource being referenced
name string required
Name is the name of resource being referenced
dataSourceRef object
dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While dataSource ignores disallowed values (dropping them), dataSourceRef preserves all values, and generates an error if a disallowed value is specified. * While dataSource only allows local objects, dataSourceRef allows objects in any namespaces. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
apiGroup string
APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.
kind string required
Kind is the type of resource being referenced
name string required
Name is the name of resource being referenced
namespace string
Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
resources object
resources represents the minimum resources the volume should have. Users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
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/
selector object
selector is a label query over volumes to consider for binding.
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.
storageClassName string
storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1
volumeAttributesClassName string
volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string or nil value indicates that no VolumeAttributesClass will be applied to the claim. If the claim enters an Infeasible error state, this field can be reset to its previous value (including nil) to cancel the modification. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/
volumeMode string
volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.
volumeName string
volumeName is the binding reference to the PersistentVolume backing this claim.
metadataAutoSnapshotInterval string
MetadataAutoSnapshotInterval enables automatic metadata snapshots. Uses Garage duration format: "6h", "1d", "1w", etc.
pattern: ^(\d+(\.\d+)?\s*(ns|us|ms|s|m|h|d|w|M|y)\s*)+$
metadataFsync boolean
MetadataFsync enables fsync for metadata transactions
metadataSnapshotsDir string
MetadataSnapshotsDir specifies directory for metadata snapshots
pvcRetentionPolicy object
PVCRetentionPolicy controls whether PVCs are deleted when the StatefulSet is deleted or scaled down. Requires Kubernetes 1.23+. If not specified, defaults to Retain for both policies.
whenDeleted string
WhenDeleted specifies what happens to PVCs when the StatefulSet is deleted. - "Retain" (default): PVCs are kept for manual cleanup or data recovery - "Delete": PVCs are automatically deleted with the StatefulSet
enum: Retain, Delete
whenScaled string
WhenScaled specifies what happens to PVCs when the StatefulSet is scaled down. - "Retain" (default): PVCs are kept when scaling down (allows scale back up) - "Delete": PVCs for removed replicas are deleted
enum: Retain, Delete
rpcPublicAddr string
RPCPublicAddr is the externally-routable rpc_public_addr advertised by storage pods. Supports an `{ordinal}` placeholder for per-pod addresses. Round-trips losslessly with v1beta2 spec.storage.rpcPublicAddr.
tolerations []object
Tolerations for pod scheduling
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.
topologySpreadConstraints []object
TopologySpreadConstraints for pod scheduling
labelSelector object
LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain.
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 the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector. This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).
maxSkew integer required
MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed.
format: int32
minDomains integer
MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew.
format: int32
nodeAffinityPolicy string
NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. If this value is nil, the behavior is equivalent to the Honor policy.
nodeTaintsPolicy string
NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. If this value is nil, the behavior is equivalent to the Ignore policy.
topologyKey string required
TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each <key, value> as a "bucket", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is "kubernetes.io/hostname", each Node is a domain of that topology. And, if TopologyKey is "topology.kubernetes.io/zone", each zone is a domain of that topology. It's a required field.
whenUnsatisfiable string required
WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location, but giving higher precedence to topologies that would help reduce the skew. A constraint is considered "Unsatisfiable" for an incoming pod if and only if every possible node assignment for that pod would violate "MaxSkew" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field.
webApi object
WebAPI configures the static website hosting endpoint. Enabled by default with rootDomain ".<name>.<namespace>.svc". Set webApi.enabled: false to turn off.
addHostToMetrics boolean
AddHostToMetrics adds the domain name to metrics labels for per-domain tracking.
bindAddress string
BindAddress is a custom bind address for the Web API. Can be a TCP address or Unix socket path (e.g., "unix:///run/garage/web.sock"). If set, this overrides BindPort.
bindPort integer
BindPort is the port to bind for web serving
format: int32
minimum: 1
maximum: 65535
enabled boolean
Enabled controls whether the web endpoint is active. Defaults to true. Set to false to disable.
rootDomain string
RootDomain is the root domain suffix for bucket website access. Bucket websites are accessible via <bucket-name>.<root-domain>. Defaults to ".<cluster-name>.<namespace>.svc" if not specified. Examples: - ".web.garage.tld" -> Access bucket "site" website at "site.web.garage.tld" - ".sites.example.com" -> Access bucket "blog" at "blog.sites.example.com" Note: Include the leading dot.
workers object
Workers configures Garage background worker behavior. Settings are applied to all nodes on every reconcile via the Admin API. Unset fields leave the corresponding worker variable at its Garage default.
resyncTranquility integer
ResyncTranquility controls how aggressively the block resync worker runs. Higher values add more pauses between block resyncs. Maps to the "resync-tranquility" worker variable.
format: int32
minimum: 0
resyncWorkerCount integer
ResyncWorkerCount sets the number of parallel block resync worker goroutines. Higher values increase resync throughput at the cost of disk I/O. Maps to the "resync-worker-count" worker variable.
format: int32
minimum: 1
maximum: 8
scrubTranquility integer
ScrubTranquility controls how aggressively the block integrity scrub runs. Higher values add more pauses between block checks, reducing disk I/O at the cost of longer scrub duration. Maps to the "scrub-tranquility" worker variable.
format: int32
minimum: 0
zone string
Zone is the Garage layout zone assigned to all nodes in this cluster. Garage distributes object replicas across zones for fault tolerance — data survives the loss of an entire zone as long as enough zones remain for quorum. Each cluster in a federation must have a unique zone name. Single-cluster deployments may omit this (Garage uses a default zone). Examples: "us-east-1", "rack-a", "dc1", "zone-a"
status object
GarageClusterStatus defines the observed state of GarageCluster
activeRepairs []object
ActiveRepairs contains currently running repair operations
nodeId string
NodeID is the node running this repair
progress string
Progress is a human-readable progress description
startedAt string
StartedAt is when the repair started
format: date-time
type string
Type is the repair operation type (Tables, Blocks, Scrub, Rebalance, etc.)
blockErrorDetails object
BlockErrorDetails provides detailed information about block errors
count integer
Count is the total number of blocks with errors
format: int32
lastErrorAt string
LastErrorAt is when the most recent block error occurred
format: date-time
topErrors []object
TopErrors contains details about the most problematic blocks Limited to top 10 blocks by error count
blockHash string
BlockHash is the hash of the affected block
errorCount integer
ErrorCount is the number of times this block failed to sync
format: int32
lastAttempt string
LastAttempt is when the last sync attempt occurred
format: date-time
lastError string
LastError is the most recent error message for this block
nextRetry string
NextRetry is when the next sync retry is scheduled
format: date-time
blockErrors integer
BlockErrors is the count of blocks with sync errors across all nodes
format: int32
buildInfo object
BuildInfo contains Garage build information
features []string
Features lists enabled Cargo features
rustVersion string
RustVersion is the Rust compiler version used to build Garage
version string
Version is the Garage version string (e.g., "v1.0.1")
clusterId string
ClusterID is the unique identifier of the Garage cluster
conditions []object
Conditions represent the current state of the cluster
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
drainingNodes integer
DrainingNodes is the count of nodes that are draining data from an older layout version. These nodes had a storage role in a previous layout and are migrating data to other nodes. A non-zero value indicates a layout transition is in progress.
endpoints object
Endpoints contains service endpoints
admin string
Admin is the admin API endpoint
k2v string
K2V is the K2V API endpoint
metrics string
Metrics is the Prometheus metrics endpoint (typically Admin + /metrics)
rpc string
RPC is the internal RPC endpoint
s3 string
S3 is the S3 API endpoint
web string
Web is the web hosting endpoint
health object
Health contains cluster health information
available boolean
Available indicates if quorum is available
connectedNodes integer
ConnectedNodes is the number of currently connected nodes
healthy boolean
Healthy indicates if all nodes are connected
knownNodes integer
KnownNodes is the number of nodes seen in cluster
partitions integer
Partitions is the total partitions in layout
partitionsAllOk integer
PartitionsAllOK is partitions with all nodes connected
partitionsQuorum integer
PartitionsQuorum is partitions with quorum connectivity
status string
Status is the overall cluster status
storageNodes integer
StorageNodes is the number of storage nodes in layout
storageNodesOk integer
StorageNodesOK is the number of connected storage nodes
lastOperation object
LastOperation records the result of the most recently triggered operational annotation (trigger-snapshot, trigger-repair, scrub-command)
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")
layoutHistory object
LayoutHistory contains layout version history
currentVersion integer
CurrentVersion is the current layout version
format: int64
minAck integer
MinAck is the minimum acknowledged layout version by all nodes
format: int64
versions []object
Versions contains the history of layout versions
gatewayNodes integer
GatewayNodes is the number of gateway nodes in this version
status string
Status is the version status (Current, Draining, Historical)
storageNodes integer
StorageNodes is the number of storage nodes in this version
version integer
Version is the layout version number
format: int64
layoutPreview object
LayoutPreview shows what would change if staged layout is applied
dataTransferEstimate string
DataTransferEstimate is a human-readable estimate of data movement (e.g., "~50 GB")
nodesAdded []string
NodesAdded shows node IDs that would be added to the layout
nodesModified []string
NodesModified shows node IDs with changed configuration (zone, capacity, tags)
nodesRemoved []string
NodesRemoved shows node IDs that would be removed from the layout
partitionTransfers integer
PartitionTransfers is the estimated number of partition transfers
format: int32
zonesAffected []string
ZonesAffected shows which zones would be affected by the changes
layoutVersion integer
LayoutVersion is the current layout version
format: int64
lifecycleStatus object
LifecycleStatus contains the status of bucket lifecycle operations
lastCompleted string
LastCompleted is when the last lifecycle worker run completed (from lifecycle-last-completed worker variable)
format: date-time
nodes []object
Nodes contains status information for each node
capacity string | integer
Capacity is the storage capacity of the node
string pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
connected boolean
Connected indicates if the node is connected to the cluster
dataDiskAvailable string | integer
DataDiskAvailable is the available space on data disk
string pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
dataDiskTotal string | integer
DataDiskTotal is the total space on data disk
string pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
gateway boolean
Gateway indicates if the node is gateway-only
metadataDiskAvailable string | integer
MetadataDiskAvailable is the available space on metadata disk
string pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
metadataDiskTotal string | integer
MetadataDiskTotal is the total space on metadata disk
string pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
nodeId string
NodeID is the public key of the node
podName string
PodName is the name of the pod running this node
version string
Version is the Garage version running on this node
zone string
Zone is the zone assignment of the node
observedGeneration integer
ObservedGeneration is the last observed generation
format: int64
phase string
Phase represents the current phase of the cluster
enum: Pending, Creating, Running, Ready, Degraded, Updating, Deleting, Failed, Unknown
readyReplicas integer
ReadyReplicas is the number of ready Garage pods
format: int32
remoteClusters []object
RemoteClusters contains status of remote clusters in the federation
connected boolean
Connected indicates if we can reach this cluster
healthyNodes integer
HealthyNodes is the number of healthy nodes
lastSeen string
LastSeen is when we last successfully connected
format: date-time
name string
Name is the cluster name
nodes integer
Nodes is the number of nodes in this cluster
zone string
Zone is the cluster's zone
replicas integer required
Replicas is the total number of Garage pods targeted by this cluster
format: int32
resyncQueueLength integer
ResyncQueueLength is the total block resync queue depth across all nodes
format: int64
scrubStatus object
ScrubStatus contains the status of data scrub operations
corruptedBlocks integer
CorruptedBlocks is the number of corrupted blocks found in the last scrub (from scrub-corruptions_detected worker variable)
format: int32
lastCompleted string
LastCompleted is when the last scrub completed (from scrub-last-completed worker variable)
format: date-time
nextRun string
NextRun is when the next scrub is scheduled to run (from scrub-next-run worker variable)
format: date-time
nodeStatuses []object
NodeStatuses contains per-node scrub status
errorsFound integer
ErrorsFound is the number of errors found on this node
format: int32
itemsChecked integer
ItemsChecked is the number of items checked
format: int64
nodeId string
NodeID is the node identifier
progress integer
Progress percentage (0-100)
running boolean
Running indicates if scrub is running on this node
paused boolean
Paused indicates if the scrub is paused
progress string
Progress is a human-readable progress description (e.g., "45% complete")
running boolean
Running indicates if a scrub is currently running on any node
tranquilityLevel integer
TranquilityLevel is the current tranquility setting (higher = less aggressive)
selector string required
Selector is the serialized label selector for pods managed by this cluster. Required for the scale subresource to work with HPA/VPA.
stagedLayoutVersion integer
StagedLayoutVersion is the staged layout version pending application
format: int64
stagedRoles integer
StagedRoles is the number of roles in the staged layout
format: int32
storageStats object
StorageStats contains cluster-wide storage statistics
availableCapacity string | integer
AvailableCapacity is the available storage across all nodes
string pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
healthyPartitions integer
HealthyPartitions is the number of partitions with full redundancy
format: int32
totalCapacity string | integer
TotalCapacity is the total storage capacity across all nodes
string pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
totalPartitions integer
TotalPartitions is the total number of partitions in the layout
format: int32
usedCapacity string | integer
UsedCapacity is the used storage across all nodes
string pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
totalNodes integer
TotalNodes is the total nodes across all clusters (local + remote)
workerCount integer
WorkerCount is the total number of background workers
format: int32
workers object
Workers contains detailed information about background workers
busy integer
Busy is the number of busy/active workers
format: int32
errored integer
Errored is the number of workers with errors
format: int32
errors []object
Errors contains details about worker errors
consecutiveErrors integer
ConsecutiveErrors is the count of consecutive errors
format: int32
lastError string
LastError is the last error message
lastErrorSecsAgo integer
LastErrorSecsAgo is seconds since the last error
format: int64
name string
Name is the worker name
workerId integer
WorkerID is the worker identifier
format: int64
idle integer
Idle is the number of idle workers
format: int32
total integer
Total is the total number of background workers
format: int32
variables object
Variables contains runtime worker configuration variables These can be adjusted through the Admin API to tune background worker behavior
workersFailed integer
WorkersFailed is the number of failed workers
format: int32

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