Vector
Vector runs a vector and full-text search database on object storage, with its namespaces spread over shards that split as they grow.
- API version
- telemetry.plural.sh/v1alpha1
- Kind
- Vector
- Scope
- Namespaced
Vector
apiVersionstringtelemetry.plural.sh/v1alpha1kindstringVectormetadataObjectMetaStandard object metadata. See the Kubernetes API reference for its fields.
specVectorSpec
VectorSpec
Used by Vector
VectorSpec defines the desired state of Vector.
In Sharded mode each writer replica owns one shard, held with a Lease, and reader groups serve eventually consistent queries, one group per active shard by default. Adding writers splits shards for them: the elected writer picks the widest shard for each new writer once its pod is ready, and the shard's owner splits it with SlateDB clones, handing half its namespaces to the new writer without copying data. Writers can't be removed, since shards don't merge; the operator keeps the writer StatefulSet at one replica per shard. Any replica accepts any request and forwards it to the replica that can serve it.
- reader replicas must be zero in Standalone mode
self.mode != 'Standalone' || !has(self.reader) || !has(self.reader.replicas) || self.reader.replicas == 0 - writer replicas must be one in Standalone mode
self.mode != 'Standalone' || !has(self.writer) || !has(self.writer.replicas) || self.writer.replicas == 1 - Sharded mode needs an Aws, Azure or Gcp object store that every replica shares
self.mode != 'Sharded' || (has(self.config) && has(self.config.storage) && has(self.config.storage.objectStore) && self.config.storage.objectStore.type in ['Aws', 'Azure', 'Gcp'])
- Enum: [Standalone Sharded]
versionstringVersion is the Vector container image tag.
Pattern:^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-((0|[1-9][0-9]*)|([0-9]*[A-Za-z-][0-9A-Za-z-]*))(\.((0|[1-9][0-9]*)|([0-9]*[A-Za-z-][0-9A-Za-z-]*)))*)?(\+[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?$configVectorConfigSpecwriterWorkloadSpecreaderWorkloadSpecingressIngressSpecIngress exposes the API, which any replica serves, at {pathPrefix}/api on the hostname. With a pathPrefix the servers serve the API under it too, so the Ingress needs no rewrite and the hostname can be shared with other services. Changing pathPrefix restarts the pods.
serviceAccountServiceAccountSpec
ProductMode
ImageSpec
Used by VectorSpec
repositorystringRepository is the container image repository. It defaults to the product's official GHCR repository.
tagstringTag is a deprecated alias for the enclosing resource's spec.version. When both are set they must match, and spec.version takes precedence. Deprecated: use spec.version.
Pattern:^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-((0|[1-9][0-9]*)|([0-9]*[A-Za-z-][0-9A-Za-z-]*))(\.((0|[1-9][0-9]*)|([0-9]*[A-Za-z-][0-9A-Za-z-]*)))*)?(\+[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?$PullPolicy is the Kubernetes image pull policy.
Enum: [Always IfNotPresent Never]
VectorConfigSpec
Used by VectorSpec
flushIntervalSecondsintegerdefault1FlushIntervalSeconds is how often namespaces flush buffered writes.
Minimum: 1readerRefreshIntervalSecondsintegerdefault1ReaderRefreshIntervalSeconds is how often readers pick up their writer's changes, which bounds the staleness of eventual reads.
Minimum: 1leaseDurationSecondsintegerdefault15LeaseDurationSeconds is the lifetime of shard and coordinator leases: how long a shard stays unserved after its writer dies.
Minimum: 3indexVectorIndexSpecauthAuthSpecAuth configures credentials, as for the other datastores. Unless unauthenticated is set, only declared namespaces exist: those of namespaces and of NamespaceAuthentications referencing this Vector. Namespace read access covers queries, rows and metadata; write access also covers creating, configuring, deleting and writing to the namespace. Shard listing needs global credentials. Credential changes apply without restarting pods.
namespacesstring arrayNamespaces are declared without namespace credentials, for global credentials or JWTs to use.
embeddingVectorEmbeddingSpecEmbedding configures the model that embeds namespaces' embed attributes and query texts. Changing it restarts the pods; namespaces keep the model they first embedded with.
WorkloadSpec
Used by VectorSpec
replicasintegerReplicas defaults to one for sharded writers and two for sharded readers. Standalone mode uses exactly one writer and no reader.
Minimum: 0nodeSelectorobject (keys:string, values:string)NodeSelector is merged with podTemplate.spec.nodeSelector. Values here take precedence when the same key is configured in both places.
tolerationsToleration arrayTolerations are merged with podTemplate.spec.tolerations. A first-class toleration replaces a podTemplate toleration with the same key, operator, and effect; otherwise it is appended.
resourcesResourceRequirementsResources configures requests and limits for the datastore container. Values here take precedence over podTemplate container resources. Missing values default to a 250m CPU request and a 2Gi memory limit (8Gi for Metrics, Logs and Traces writers and standalone servers, which roll up closed days), with memory requested at its limit unless a request is set. Those writers need at least a 6Gi limit and are not rolled out with less. The operator holds back a quarter of the memory limit (at least 768Mi, at most half) as headroom and sizes the caches and query memory budgets from the rest.
podTemplatePodTemplateSpecPodTemplate is the full Kubernetes pod template escape hatch. Operator required fields and the first-class scheduling fields are merged into it.
dataVolumeVolumeSpeccacheVolumeVolumeSpecpersistentVolumeClaimRetentionPolicyPersistentVolumeClaimRetentionPolicySpecPersistentVolumeClaimRetentionPolicy controls whether StatefulSet PVCs are retained or deleted when the workload is deleted or scaled down. When omitted, remote and in-memory object stores default to Delete while Local object stores default to Retain because the data PVC is authoritative.
readGroupsReadGroupsSpecReadGroups configures per-shard reader groups. Readers only; ignored for writers and in standalone mode.
autoscalingAutoscalingSpecAutoscaling adds a HorizontalPodAutoscaler per reader StatefulSet, one per reader group. Readers only; ignored for writers and in standalone mode.
ServiceSpec
Used by VectorSpec
httpPortintegergrpcPortinteger- Enum: [ClusterIP NodePort LoadBalancer]
annotationsobject (keys:string, values:string)
IngressSpec
Used by VectorSpec
- hostname is required when ingress is enabled
!has(self.enabled) || !self.enabled || (has(self.hostname) && self.hostname.size() > 0) - pathPrefix must be empty or start with '/' and must not end with '/'
!has(self.pathPrefix) || self.pathPrefix.size() == 0 || (self.pathPrefix.size() > 1 && self.pathPrefix.startsWith('/') && !self.pathPrefix.endsWith('/'))
enabledbooleanhostnamestringingressClassstringpathPrefixstringmetadataIngressMetadataSpecStandard object metadata. See the Kubernetes API reference for its fields.
ServiceAccountSpec
Used by VectorSpec
annotationsobject (keys:string, values:string)
StorageSpec
Used by VectorConfigSpec
pathstringsettingsPathstringobjectStoreObjectStoreSpecblockCacheCacheSpecmetaCacheCacheSpecdiskDiskSpecDisk describes the performance specs of the disks used for block and meta caches. This is used to optimize caches and defaults to common block store specs as a reasonable baseline.
VectorIndexSpec
Used by VectorConfigSpec
splitThresholdVectorsintegerSplitThresholdVectors is the posting-list size at which a centroid splits. The server default is 150.
Minimum: 2mergeThresholdVectorsintegerMergeThresholdVectors is the posting-list size below which a centroid merges into its neighbours. The server default is 50.
Minimum: 1
AuthSpec
Used by VectorConfigSpec
unauthenticatedbooleandefaultfalseUnauthenticated permits anonymous access to namespace HTTP APIs.
globalAccessSpecjwtJWTSpecinternalTokenSecretRefSecretKeySelector
VectorEmbeddingSpec
Used by VectorConfigSpec
VectorEmbeddingSpec is an embedding model served by a provider API.
- bedrock authenticates with the AWS credential chain; apiKeySecretRef and endpoint don't apply
self.provider != 'bedrock' || (!has(self.apiKeySecretRef) && !has(self.endpoint)) - region only applies to the bedrock provider
self.provider == 'bedrock' || !has(self.region) - cohere models embed at a fixed size; dimensions doesn't apply
self.provider != 'cohere' || !has(self.dimensions)
providerstringProvider is the API: openai (or an OpenAI-compatible endpoint, such as Azure OpenAI, vLLM or Ollama), cohere, gemini, or bedrock (Amazon Bedrock's Titan Text Embeddings v2, Cohere Embed v3 or Cohere Embed v4).
Enum: [openai cohere gemini bedrock]modelstringModel is the provider's model name, e.g. text-embedding-3-small, amazon.titan-embed-text-v2:0 or cohere.embed-v4:0.
MinLength: 1apiKeySecretRefSecretKeySelectorAPIKeySecretRef holds the provider API key. Rotating the Secret applies without restarting pods. Bedrock instead uses the pods' AWS credentials: an IAM role through the service account, or a Bedrock API key in AWS_BEARER_TOKEN_BEDROCK.
endpointstringEndpoint replaces the provider's API root, e.g. http://ollama.ai.svc:11434/v1.
regionstringRegion is the AWS region of the Bedrock runtime. Without it, the region of the pods' AWS config (AWS_REGION).
MinLength: 1dimensionsintegerDimensions asks models that can shorten their vectors for this many dimensions: OpenAI's text-embedding-3 models, Gemini, Titan v2 (256, 512 or 1024) and Cohere Embed v4 on Bedrock (256, 512, 1024 or 1536).
Maximum: 65535Minimum: 1batchSizeintegerBatchSize is the most texts sent in one provider request. The server default is 96.
Minimum: 1timeoutSecondsintegerTimeoutSeconds bounds each provider request. The server default is 30.
Minimum: 1cacheSizeQuantityCacheSize is the memory each replica spends caching embeddings, so repeated texts and queries skip the provider. 0 disables the cache. Without it, 4% of what each component's memory limit leaves after headroom and reservations, and at least 16Mi.
maxInputCharsintegerMaxInputChars is the most characters of one text sent to the model; longer texts are cut. Without it, the model's input limit, with limits in tokens taken at 3 characters per token. Set it for models of OpenAI-compatible endpoints, which are assumed to take 8191 tokens.
Minimum: 1Split sizes the passages of documents written without any, which the servers split from the namespace's embed attribute.
VolumeSpec
Used by WorkloadSpec
- exactly one of emptyDir or persistentVolumeClaim is required
has(self.emptyDir) != has(self.persistentVolumeClaim)
emptyDirEmptyDirVolumeSourcepersistentVolumeClaimPersistentVolumeClaimSpec
PersistentVolumeClaimRetentionPolicySpec
Used by WorkloadSpec
whenDeletedPersistentVolumeClaimRetentionPolicyTypeWhenDeleted controls PVC retention when the StatefulSet is deleted. When omitted, the object-store-dependent workload default is used.
Enum: [Retain Delete]whenScaledPersistentVolumeClaimRetentionPolicyTypeWhenScaled controls PVC retention when StatefulSet replicas are reduced. When omitted, the object-store-dependent workload default is used.
Enum: [Retain Delete]
ReadGroupsSpec
Used by WorkloadSpec
ReadGroupsSpec splits sharded readers into one group per storage shard. Each group is a StatefulSet that opens only its own shard; a query sent to any reader reads its own shard in process and every other shard from that shard's group over gRPC. Replicas, resources, and autoscaling apply to each group.
enabledbooleandefaulttrueEnabled defaults to true. When false, every reader opens every shard.
hedgeAfterMillisecondsintegerdefault250HedgeAfterMilliseconds starts a second copy of a unary shard read on another replica of its group when the first has not answered in time. Streaming reads are never hedged. Zero disables hedging.
Minimum: 0requestTimeoutSecondsintegerdefault120RequestTimeoutSeconds bounds one shard read.
Minimum: 1
AutoscalingSpec
Used by WorkloadSpec
AutoscalingSpec scales reader replicas on resource utilization. While enabled the HorizontalPodAutoscaler owns replica counts and the workload's replicas field only seeds a new StatefulSet.
- minReplicas must not exceed maxReplicas
!has(self.minReplicas) || self.minReplicas <= self.maxReplicas
enabledbooleanminReplicasintegerMinReplicas defaults to the workload's replicas, or 2.
Minimum: 1maxReplicasintegerMinimum: 1targetCPUUtilizationPercentageintegerTargetCPUUtilizationPercentage is average CPU usage relative to the container's CPU request. Defaults to 70 when no memory target is set.
Minimum: 1targetMemoryUtilizationPercentageintegerTargetMemoryUtilizationPercentage is average memory usage relative to the container's memory request.
Minimum: 1behaviorHorizontalPodAutoscalerBehaviorBehavior is passed through to the HorizontalPodAutoscaler.
IngressMetadataSpec
Used by IngressSpec
annotationsobject (keys:string, values:string)labelsobject (keys:string, values:string)
IngressTLSSpec
Used by IngressSpec
enabledbooleansecretNamestring
ObjectStoreSpec
Used by StorageSpec
- Aws object stores require aws configuration
self.type != 'Aws' || has(self.aws) - aws configuration is only valid for Aws object stores
self.type == 'Aws' || !has(self.aws) - Azure object stores require azure configuration
self.type != 'Azure' || has(self.azure) - azure configuration is only valid for Azure object stores
self.type == 'Azure' || !has(self.azure) - Gcp object stores require gcp configuration
self.type != 'Gcp' || has(self.gcp) - gcp configuration is only valid for Gcp object stores
self.type == 'Gcp' || !has(self.gcp)
- Enum: [InMemory Local Aws Azure Gcp]
pathstringazureAzureObjectStoreSpec
CacheSpec
Used by StorageSpec
typeCacheTypeEnum: [FoyerHybrid FoyerMemory]memoryCapacityintegerdiskCapacityintegerdiskPathstringcapacityintegershardsintegerwritePolicystringflushersintegerbufferPoolSizeintegersubmitQueueSizeThresholdinteger
DiskSpec
Used by StorageSpec
DiskSpec is a disk's provisioned performance, as its provider advertises it.
throughputMiBpsintegerdefault125Minimum: 1iopsintegerdefault3000Minimum: 1
AccessSpec
Used by AuthSpec
readBasicCredentialSpec arraywriteBasicCredentialSpec array
JWTSpec
VectorEmbeddingSplitSpec
Used by VectorEmbeddingSpec
VectorEmbeddingSplitSpec sizes the passages a document's text is split into, at paragraph, line, sentence and word boundaries.
maxCharsintegerMaxChars is the most characters of one passage. Without it, 8000, or the model's input limit if smaller.
Minimum: 1overlapCharsintegerOverlapChars is how much of a passage's end is repeated at the start of the next, so text near a boundary is found from either side.
Minimum: 0
PersistentVolumeClaimRetentionPolicyType
ObjectStoreType
AWSObjectStoreSpec
Used by ObjectStoreSpec
AWSObjectStoreSpec configures an Amazon S3 or S3-compatible object store.
- accessKeyIDSecretRef and secretAccessKeySecretRef must be configured together
has(self.accessKeyIDSecretRef) == has(self.secretAccessKeySecretRef)
regionstringMinLength: 1bucketstringMinLength: 1endpointstringallowHTTPbooleanvirtualHostedStylebooleanaccessKeyIDSecretRefSecretKeySelectorsecretAccessKeySecretRefSecretKeySelectorsessionTokenSecretRefSecretKeySelector
AzureObjectStoreSpec
Used by ObjectStoreSpec
- at most one Azure authentication method may be configured
[has(self.accessKeySecretRef), has(self.sasTokenSecretRef), has(self.bearerTokenSecretRef), has(self.clientSecret), has(self.workloadIdentity)].filter(x, x).size() <= 1
accountstringMinLength: 1containerstringMinLength: 1endpointstringallowHTTPbooleanaccessKeySecretRefSecretKeySelectorsasTokenSecretRefSecretKeySelectorbearerTokenSecretRefSecretKeySelectorclientSecretAzureClientSecretAuthSpecworkloadIdentityAzureWorkloadIdentityAuthSpec
GCPObjectStoreSpec
Used by ObjectStoreSpec
- serviceAccountKeySecretRef and bearerTokenSecretRef are mutually exclusive
![has(self.serviceAccountKeySecretRef), has(self.bearerTokenSecretRef)].all(x, x)
bucketstringMinLength: 1baseURLstringserviceAccountKeySecretRefSecretKeySelectorbearerTokenSecretRefSecretKeySelector
CacheType
BasicCredentialSpec
Used by AccessSpec
usernamestringMinLength: 1passwordSecretKeyRefSecretKeySelector
JWKSSpec
Used by JWTSpec
- exactly one of url or secretKeyRef is required
(has(self.url) && self.url.size() > 0) != has(self.secretKeyRef)
urlstringsecretKeyRefSecretKeySelector
AzureClientSecretAuthSpec
Used by AzureObjectStoreSpec
clientIDstringMinLength: 1tenantIDstringMinLength: 1clientSecretKeyRefSecretKeySelector
AzureWorkloadIdentityAuthSpec
Used by AzureObjectStoreSpec
clientIDstringMinLength: 1tenantIDstringMinLength: 1tokenFilestringMinLength: 1