PseudoFS
PseudoFS runs a persistent virtual filesystem for sandboxed and embedded runtimes, served over gRPC and stored in object storage.
- API version
- telemetry.plural.sh/v1alpha1
- Kind
- PseudoFS
- Scope
- Namespaced
- Short names
- pseudofs
PseudoFS
apiVersionstringtelemetry.plural.sh/v1alpha1kindstringPseudoFSmetadataObjectMetaStandard object metadata. See the Kubernetes API reference for its fields.
specPseudoFSSpec
PseudoFSSpec
Used by PseudoFS
PseudoFSSpec defines the desired state of PseudoFS.
- spec.version and deprecated spec.image.tag must match when both are set
!has(self.version) || !has(self.image) || !has(self.image.tag) || self.version == self.image.tag - PseudoFS always runs exactly one replica
!has(self.workload.replicas) || self.workload.replicas == 1 - chunkSizeBytes must not exceed maxFileSizeBytes
!has(self.config.chunkSizeBytes) || !has(self.config.maxFileSizeBytes) || self.config.chunkSizeBytes <= self.config.maxFileSizeBytes - maxUnaryFileSizeBytes must not exceed maxFileSizeBytes
!has(self.config.maxUnaryFileSizeBytes) || !has(self.config.maxFileSizeBytes) || self.config.maxUnaryFileSizeBytes <= self.config.maxFileSizeBytes - maxUnaryFileSizeBytes must not exceed maxDecodingMessageBytes
!has(self.config.maxUnaryFileSizeBytes) || !has(self.config.maxDecodingMessageBytes) || self.config.maxUnaryFileSizeBytes <= self.config.maxDecodingMessageBytes - maxUnaryFileSizeBytes must not exceed maxEncodingMessageBytes
!has(self.config.maxUnaryFileSizeBytes) || !has(self.config.maxEncodingMessageBytes) || self.config.maxUnaryFileSizeBytes <= self.config.maxEncodingMessageBytes
versionstringVersion is the canonical PseudoFS 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-]+)*)?$configPseudoFSConfigSpecworkloadWorkloadSpecservicePseudoFSServiceSpecserviceAccountServiceAccountSpec
ImageSpec
Used by PseudoFSSpec
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]
PseudoFSConfigSpec
Used by PseudoFSSpec
- storage.path must be an object-store prefix without leading, trailing, or repeated '/'
!has(self.storage) || !has(self.storage.path) || self.storage.path.matches('^[^/]+(/[^/]+)*$')
Storage.Path is the filesystem's root prefix in the object store: the metastore is kept under "<path>/metastore" and blobs under "<path>/blobs".
chunkSizeBytesintegerdefault1048576Minimum: 1maxFileSizeBytesintegerdefault1073741824Minimum: 1maxAppendGenerationsintegerdefault64Minimum: 2maxUnaryFileSizeBytesintegerdefault8388608Minimum: 1maxDecodingMessageBytesintegerdefault16777216Minimum: 1maxEncodingMessageBytesintegerdefault16777216Minimum: 1inlineThresholdBytesintegerdefault16384InlineThresholdBytes is the largest write stored in the metastore rather than as a blob. Inline bytes pass through the metastore's WAL and compactions, so raising this trades metastore write load for fewer blobs.
Maximum: 1.6777216e+07Minimum: 0
WorkloadSpec
Used by PseudoFSSpec
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.
PseudoFSServiceSpec
Used by PseudoFSSpec
grpcPortintegerdefault9093Maximum: 65535Minimum: 1- Enum: [ClusterIP NodePort LoadBalancer]
annotationsobject (keys:string, values:string)
ServiceAccountSpec
Used by PseudoFSSpec
annotationsobject (keys:string, values:string)
StorageSpec
Used by PseudoFSConfigSpec
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.
PseudoFSBlobsSpec
Used by PseudoFSConfigSpec
PseudoFSBlobsSpec configures file content stored outside the metastore. Blobs are kept on the data volume until uploaded and then cached there, and are uploaded to the storage object store with the same credentials, under "<storage.path>/blobs".
cacheCapacityBytesintegerdefault4294967296CacheCapacityBytes bounds blob usage of the data volume, including blobs awaiting upload. Keep it well below the volume size.
Minimum: 1uploadConcurrencyintegerdefault4Minimum: 1gcGraceSecondsintegerdefault300GCGraceSeconds is how long unreferenced blobs are kept so in-flight reads of replaced files can finish.
Minimum: 0
PseudoFSSearchSpec
Used by PseudoFSConfigSpec
PseudoFSSearchSpec bounds Glob and Grep requests. Requests that leave a limit unset use its default; larger requested values are capped.
- defaultGlobResults must not exceed maxGlobResults
!has(self.defaultGlobResults) || !has(self.maxGlobResults) || self.defaultGlobResults <= self.maxGlobResults - defaultGrepMatches must not exceed maxGrepMatches
!has(self.defaultGrepMatches) || !has(self.maxGrepMatches) || self.defaultGrepMatches <= self.maxGrepMatches - defaultGrepFileSizeBytes must not exceed maxGrepFileSizeBytes
!has(self.defaultGrepFileSizeBytes) || !has(self.maxGrepFileSizeBytes) || self.defaultGrepFileSizeBytes <= self.maxGrepFileSizeBytes
defaultGlobResultsintegerdefault1000Minimum: 1maxGlobResultsintegerdefault10000Minimum: 1defaultGrepMatchesintegerdefault100Minimum: 1maxGrepMatchesintegerdefault1000Minimum: 1maxGrepContextLinesintegerdefault100Minimum: 0defaultGrepFileSizeBytesintegerdefault16777216Minimum: 1maxGrepFileSizeBytesintegerdefault67108864Minimum: 1grepConcurrencyintegerdefault8GrepConcurrency is how many files one Grep request searches at once.
Minimum: 1maxScannedEntriesintegerdefault1000000MaxScannedEntries is how many directory entries one Glob or Grep walk may read before failing with RESOURCE_EXHAUSTED.
Minimum: 1maxGrepSecondsintegerdefault30MaxGrepSeconds is how long one Grep request may search before failing with RESOURCE_EXHAUSTED after the matches already sent.
Minimum: 1
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.
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
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
AzureClientSecretAuthSpec
Used by AzureObjectStoreSpec
clientIDstringMinLength: 1tenantIDstringMinLength: 1clientSecretKeyRefSecretKeySelector
AzureWorkloadIdentityAuthSpec
Used by AzureObjectStoreSpec
clientIDstringMinLength: 1tenantIDstringMinLength: 1tokenFilestringMinLength: 1