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

  • apiVersionstring

    telemetry.plural.sh/v1alpha1

  • kindstring

    PseudoFS

  • metadataObjectMeta

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

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

    Version 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-]+)*)?$
  • imageImageSpecdefault { pullPolicy:IfNotPresent repository:ghcr.io/pluralsh/pseudofs }
  • workloadWorkloadSpec
  • serviceAccountServiceAccountSpec

ImageSpec

Used by PseudoFSSpec

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

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('^[^/]+(/[^/]+)*$')
  • storageStorageSpecdefault { path:pseudofs }

    Storage.Path is the filesystem's root prefix in the object store: the metastore is kept under "<path>/metastore" and blobs under "<path>/blobs".

  • chunkSizeBytesintegerdefault 1048576
    Minimum: 1
  • maxFileSizeBytesintegerdefault 1073741824
    Minimum: 1
  • maxAppendGenerationsintegerdefault 64
    Minimum: 2
  • maxUnaryFileSizeBytesintegerdefault 8388608
    Minimum: 1
  • maxDecodingMessageBytesintegerdefault 16777216
    Minimum: 1
  • maxEncodingMessageBytesintegerdefault 16777216
    Minimum: 1
  • inlineThresholdBytesintegerdefault 16384

    InlineThresholdBytes 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
  • blobsPseudoFSBlobsSpecdefault { }
  • searchPseudoFSSearchSpecdefault { }

WorkloadSpec

Used by PseudoFSSpec

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

PseudoFSServiceSpec

Used by PseudoFSSpec

  • grpcPortintegerdefault 9093
    Maximum: 65535Minimum: 1
  • typeServiceTypedefault ClusterIP
    Enum: [ClusterIP NodePort LoadBalancer]
  • annotationsobject (keys:string, values:string)

ServiceAccountSpec

Used by PseudoFSSpec

  • annotationsobject (keys:string, values:string)

StorageSpec

Used by PseudoFSConfigSpec

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

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

  • cacheCapacityBytesintegerdefault 4294967296

    CacheCapacityBytes bounds blob usage of the data volume, including blobs awaiting upload. Keep it well below the volume size.

    Minimum: 1
  • uploadConcurrencyintegerdefault 4
    Minimum: 1
  • gcGraceSecondsintegerdefault 300

    GCGraceSeconds 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
  • defaultGlobResultsintegerdefault 1000
    Minimum: 1
  • maxGlobResultsintegerdefault 10000
    Minimum: 1
  • defaultGrepMatchesintegerdefault 100
    Minimum: 1
  • maxGrepMatchesintegerdefault 1000
    Minimum: 1
  • maxGrepContextLinesintegerdefault 100
    Minimum: 0
  • defaultGrepFileSizeBytesintegerdefault 16777216
    Minimum: 1
  • maxGrepFileSizeBytesintegerdefault 67108864
    Minimum: 1
  • grepConcurrencyintegerdefault 8

    GrepConcurrency is how many files one Grep request searches at once.

    Minimum: 1
  • maxScannedEntriesintegerdefault 1000000

    MaxScannedEntries is how many directory entries one Glob or Grep walk may read before failing with RESOURCE_EXHAUSTED.

    Minimum: 1
  • maxGrepSecondsintegerdefault 30

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

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

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

AzureClientSecretAuthSpec

Used by AzureObjectStoreSpec

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

AzureWorkloadIdentityAuthSpec

Used by AzureObjectStoreSpec

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