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

  • apiVersionstring

    telemetry.plural.sh/v1alpha1

  • kindstring

    Vector

  • metadataObjectMeta

    Standard object metadata. See the Kubernetes API reference for its fields.

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 modeself.mode != 'Standalone' || !has(self.reader) || !has(self.reader.replicas) || self.reader.replicas == 0
  • writer replicas must be one in Standalone modeself.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 sharesself.mode != 'Sharded' || (has(self.config) && has(self.config.storage) && has(self.config.storage.objectStore) && self.config.storage.objectStore.type in ['Aws', 'Azure', 'Gcp'])
  • modeProductModedefault Standalone
    Enum: [Standalone Sharded]
  • versionstring

    Version 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-]+)*)?$
  • imageImageSpecdefault { pullPolicy:IfNotPresent repository:ghcr.io/pluralsh/vector }
  • serviceServiceSpecdefault { httpPort:8080 type:ClusterIP }
  • Ingress 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

Used by VectorSpec

Underlying type string

  • Standalone
  • Sharded

ImageSpec

Used by VectorSpec

  • repositorystring

    Repository is the container image repository. It defaults to the product's official GHCR repository.

  • tagstring

    Tag 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-]+)*)?$
  • pullPolicyPullPolicydefault IfNotPresent

    PullPolicy is the Kubernetes image pull policy.

    Enum: [Always IfNotPresent Never]

VectorConfigSpec

Used by VectorSpec

  • storageStorageSpecdefault { path:vector }
  • flushIntervalSecondsintegerdefault 1

    FlushIntervalSeconds is how often namespaces flush buffered writes.

    Minimum: 1
  • readerRefreshIntervalSecondsintegerdefault 1

    ReaderRefreshIntervalSeconds is how often readers pick up their writer's changes, which bounds the staleness of eventual reads.

    Minimum: 1
  • leaseDurationSecondsintegerdefault 15

    LeaseDurationSeconds is the lifetime of shard and coordinator leases: how long a shard stays unserved after its writer dies.

    Minimum: 3
  • Auth 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 array

    Namespaces are declared without namespace credentials, for global credentials or JWTs to use.

  • Embedding 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

  • replicasinteger

    Replicas defaults to one for sharded writers and two for sharded readers. Standalone mode uses exactly one writer and no reader.

    Minimum: 0
  • nodeSelectorobject (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 array

    Tolerations 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.

  • Resources 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.

  • podTemplatePodTemplateSpec

    PodTemplate is the full Kubernetes pod template escape hatch. Operator required fields and the first-class scheduling fields are merged into it.

  • dataVolumeVolumeSpec
  • cacheVolumeVolumeSpec
  • persistentVolumeClaimRetentionPolicyPersistentVolumeClaimRetentionPolicySpec

    PersistentVolumeClaimRetentionPolicy 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.

  • readGroupsReadGroupsSpec

    ReadGroups configures per-shard reader groups. Readers only; ignored for writers and in standalone mode.

  • autoscalingAutoscalingSpec

    Autoscaling adds a HorizontalPodAutoscaler per reader StatefulSet, one per reader group. Readers only; ignored for writers and in standalone mode.

ServiceSpec

Used by VectorSpec

  • httpPortinteger
  • grpcPortinteger
  • typeServiceTypedefault ClusterIP
    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('/'))
  • enabledboolean
  • hostnamestring
  • ingressClassstring
  • pathPrefixstring
  • Standard object metadata. See the Kubernetes API reference for its fields.

ServiceAccountSpec

Used by VectorSpec

  • annotationsobject (keys:string, values:string)

StorageSpec

Used by VectorConfigSpec

  • pathstring
  • settingsPathstring
  • objectStoreObjectStoreSpec
  • blockCacheCacheSpec
  • metaCacheCacheSpec
  • Disk 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

  • splitThresholdVectorsinteger

    SplitThresholdVectors is the posting-list size at which a centroid splits. The server default is 150.

    Minimum: 2
  • mergeThresholdVectorsinteger

    MergeThresholdVectors is the posting-list size below which a centroid merges into its neighbours. The server default is 50.

    Minimum: 1

AuthSpec

Used by VectorConfigSpec

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 applyself.provider != 'bedrock' || (!has(self.apiKeySecretRef) && !has(self.endpoint))
  • region only applies to the bedrock providerself.provider == 'bedrock' || !has(self.region)
  • cohere models embed at a fixed size; dimensions doesn't applyself.provider != 'cohere' || !has(self.dimensions)
  • providerstring

    Provider 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]
  • modelstring

    Model is the provider's model name, e.g. text-embedding-3-small, amazon.titan-embed-text-v2:0 or cohere.embed-v4:0.

    MinLength: 1
  • apiKeySecretRefSecretKeySelector

    APIKeySecretRef 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.

  • endpointstring

    Endpoint replaces the provider's API root, e.g. http://ollama.ai.svc:11434/v1.

  • regionstring

    Region is the AWS region of the Bedrock runtime. Without it, the region of the pods' AWS config (AWS_REGION).

    MinLength: 1
  • dimensionsinteger

    Dimensions 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: 1
  • batchSizeinteger

    BatchSize is the most texts sent in one provider request. The server default is 96.

    Minimum: 1
  • timeoutSecondsinteger

    TimeoutSeconds bounds each provider request. The server default is 30.

    Minimum: 1
  • cacheSizeQuantity

    CacheSize 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.

  • maxInputCharsinteger

    MaxInputChars 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: 1
  • Split 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 requiredhas(self.emptyDir) != has(self.persistentVolumeClaim)

PersistentVolumeClaimRetentionPolicySpec

Used by WorkloadSpec

  • WhenDeleted controls PVC retention when the StatefulSet is deleted. When omitted, the object-store-dependent workload default is used.

    Enum: [Retain Delete]
  • WhenScaled 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.

  • enabledbooleandefault true

    Enabled defaults to true. When false, every reader opens every shard.

  • hedgeAfterMillisecondsintegerdefault 250

    HedgeAfterMilliseconds 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: 0
  • requestTimeoutSecondsintegerdefault 120

    RequestTimeoutSeconds 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
  • enabledboolean
  • minReplicasinteger

    MinReplicas defaults to the workload's replicas, or 2.

    Minimum: 1
  • maxReplicasinteger
    Minimum: 1
  • targetCPUUtilizationPercentageinteger

    TargetCPUUtilizationPercentage is average CPU usage relative to the container's CPU request. Defaults to 70 when no memory target is set.

    Minimum: 1
  • targetMemoryUtilizationPercentageinteger

    TargetMemoryUtilizationPercentage is average memory usage relative to the container's memory request.

    Minimum: 1
  • Behavior is passed through to the HorizontalPodAutoscaler.

IngressMetadataSpec

Used by IngressSpec

  • annotationsobject (keys:string, values:string)
  • labelsobject (keys:string, values:string)

IngressTLSSpec

Used by IngressSpec

  • enabledboolean
  • secretNamestring

ObjectStoreSpec

Used by StorageSpec

  • Aws object stores require aws configurationself.type != 'Aws' || has(self.aws)
  • aws configuration is only valid for Aws object storesself.type == 'Aws' || !has(self.aws)
  • Azure object stores require azure configurationself.type != 'Azure' || has(self.azure)
  • azure configuration is only valid for Azure object storesself.type == 'Azure' || !has(self.azure)
  • Gcp object stores require gcp configurationself.type != 'Gcp' || has(self.gcp)
  • gcp configuration is only valid for Gcp object storesself.type == 'Gcp' || !has(self.gcp)

CacheSpec

Used by StorageSpec

  • Enum: [FoyerHybrid FoyerMemory]
  • memoryCapacityinteger
  • diskCapacityinteger
  • diskPathstring
  • capacityinteger
  • shardsinteger
  • writePolicystring
  • flushersinteger
  • bufferPoolSizeinteger
  • submitQueueSizeThresholdinteger

DiskSpec

Used by StorageSpec

DiskSpec is a disk's provisioned performance, as its provider advertises it.

  • throughputMiBpsintegerdefault 125
    Minimum: 1
  • iopsintegerdefault 3000
    Minimum: 1

AccessSpec

JWTSpec

Used by AuthSpec

  • issuerstring
  • audiencestring
  • refreshIntervalSecondsintegerdefault 300
    Minimum: 1
  • requestTimeoutSecondsintegerdefault 5
    Minimum: 1

VectorEmbeddingSplitSpec

Used by VectorEmbeddingSpec

VectorEmbeddingSplitSpec sizes the passages a document's text is split into, at paragraph, line, sentence and word boundaries.

  • maxCharsinteger

    MaxChars is the most characters of one passage. Without it, 8000, or the model's input limit if smaller.

    Minimum: 1
  • overlapCharsinteger

    OverlapChars 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

Used by PersistentVolumeClaimRetentionPolicySpec

Underlying type string

  • Retain
  • Delete

ObjectStoreType

Used by ObjectStoreSpec

Underlying type string

  • InMemory
  • Local
  • Aws
  • Azure
  • Gcp

AWSObjectStoreSpec

Used by ObjectStoreSpec

AWSObjectStoreSpec configures an Amazon S3 or S3-compatible object store.

  • accessKeyIDSecretRef and secretAccessKeySecretRef must be configured togetherhas(self.accessKeyIDSecretRef) == has(self.secretAccessKeySecretRef)

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

GCPObjectStoreSpec

Used by ObjectStoreSpec

  • serviceAccountKeySecretRef and bearerTokenSecretRef are mutually exclusive![has(self.serviceAccountKeySecretRef), has(self.bearerTokenSecretRef)].all(x, x)

CacheType

Used by CacheSpec

Underlying type string

  • FoyerHybrid
  • FoyerMemory

BasicCredentialSpec

Used by AccessSpec

JWKSSpec

Used by JWTSpec

  • exactly one of url or secretKeyRef is required(has(self.url) && self.url.size() > 0) != has(self.secretKeyRef)

AzureClientSecretAuthSpec

Used by AzureObjectStoreSpec

  • clientIDstring
    MinLength: 1
  • tenantIDstring
    MinLength: 1
  • clientSecretKeyRefSecretKeySelector

AzureWorkloadIdentityAuthSpec

Used by AzureObjectStoreSpec

  • clientIDstring
    MinLength: 1
  • tenantIDstring
    MinLength: 1
  • tokenFilestring
    MinLength: 1