Skip to main content

BallistaCluster

Configures a Ballista scheduler and its executors for distributed workloads.

platform.prokrust.ai/v1beta1 · Namespaced · ballistaclusters

Controller status​

Conditions​

Controller checks for this resource. Read the type, status, reason, and observed generation to diagnose the current state.

ConditionWhat it tells you
AcceptedReports whether the controller accepted the cluster definition for this pass.
ConfiguredReports whether dependencies are ready, cluster settings match policy, and the producer semaphore matches the configured limit.
DependenciesReadyReports whether dependencies and the active pool permit remote execution.
ReadyReports whether the expected workloads and a verified remote health query allow execution.

In Draining, new work waits for the next healthy pool. In Degraded, inspect status.failure and the condition reason.

Tenant access denied

Kubernetes denied an operation on a tenant dependency. The controller reported the permission error and marked the cluster Degraded.

status:
phase: Degraded
conditions:
- type: Accepted
status: "True"
reason: ValidSpec
message: Current spec is valid.
observedGeneration: 1
- type: DependenciesReady
status: "False"
reason: ReconcileForbidden
message: Ballista controller cannot read or reconcile a tenant dependency. Check the tenant Role and its system-controller RoleBinding.
observedGeneration: 1
- type: Ready
status: "False"
reason: ReconcileForbidden
message: Ballista controller cannot read or reconcile a tenant dependency. Check the tenant Role and its system-controller RoleBinding.
observedGeneration: 1

Check the tenant Role and its RoleBinding for the system controller. After access is restored, check Ready and the remote health query.

BallistaCluster condition results and reasons

Accepted​

Status and reasonWhat to check
True / ValidSpecThe cluster definition passed its check. Inspect Configured and Ready.

Configured​

Status and reasonWhat to check
False / CapacityConfigurationCheck dependency readiness, the settings in the workspace policy, and the producer semaphore limit.
True / CapacityConfigurationThe cluster has the expected policy and capacity configuration. An idle on-demand cluster can have no active scheduler or executors.

DependenciesReady​

Status and reasonWhat to check
False / DependencyMissingCheck the referenced workspace policy, artifact connection, federation ConfigMap, and scheduler and executor service accounts.
False / DependencyNotReadyInspect the condition message and status.phase. Check scheduler and executor rollout in Starting or Provisioning and the remote health query in Probing.
False / InvalidRuntimeConfigurationCheck the configuration error in status.failure before retrying.
False / ReconcileFailedInspect controller diagnostics and dependency permissions. Reconciliation retries.
False / ReconcileForbiddenCheck the tenant Role and the system controller's RoleBinding.
True / ReadyUse status.scheduler, status.executors, and status.endpoints to identify the active pool.

Ready​

Status and reasonWhat to check
False / BlockedInspect the condition message and status.phase. Check scheduler and executor rollout in Starting or Provisioning and the remote health query in Probing.
False / DependencyMissingCheck the referenced workspace policy, artifact connection, federation ConfigMap, and scheduler and executor service accounts.
False / InvalidRuntimeConfigurationCheck the configuration error in status.failure before retrying.
False / ReconcileFailedInspect controller diagnostics and dependency permissions. Reconciliation retries.
False / ReconcileForbiddenCheck the tenant Role and the system controller's RoleBinding.
True / ReadyUse status.scheduler, status.executors, and status.endpoints to identify the active pool.
Condition field meanings
FieldWhat to look for
typeNames the check. Use it to select the condition you want to inspect.
statusReports whether the named condition holds. Read the reason to see why.
reasonA short identifier for this outcome. Use it when comparing observations or filtering results.
messageWhen present, gives details about this object, such as the name of a dependency.
observedGenerationCompare with metadata.generation to see which version of the spec the controller checked.
lastTransitionTimeRecords the time of the last transition for this condition.
How to read status fields
FieldWhat it tells you
status.capacityReported compute capacity for this cluster. Inspect it when a distributed workload waits for executors.
status.endpointsService endpoints reported for the cluster. Inspect these addresses when diagnosing scheduler or executor connectivity.
status.executorsObserved executor information. Compare it with the requested executor pool when diagnosing cluster capacity.
status.failureRecorded failure details. Inspect the reason and message to locate the failed operation.
status.lastProbeTimeTime of the last recorded probe. Use it to judge how recent the reported capabilities or readiness are.
status.observedGenerationResource generation evaluated by the controller. Compare it with metadata.generation to check whether the status covers the current spec.
status.phaseCurrent stage reported by the controller. Use the conditions or failure details to diagnose why progress stopped.
status.policyRefPolicy revision used for this execution. Inspect it to trace the rules applied to the workload.
status.schedulerObserved scheduler information. Inspect it when executors or distributed queries cannot connect.
Kubernetes schema for status

Required applies when the parent is present. A dash in the default column means the CRD declares no default.

FieldTypeRequiredDefaultSchema constraints and descriptions
statusobjectno—maxProperties 1024 · nullable true
status.capacityobjectno—Reported compute capacity for this cluster. Inspect it when a distributed workload waits for executors. · maxProperties 1024 · nullable true
status.capacity.activeDemandintegeryes—format "uint32" · minimum 0
status.capacity.admissionOpenbooleanyes—
status.capacity.desiredExecutorReplicasintegeryes—format "int32"
status.capacity.desiredSchedulerReplicasintegeryes—format "int32"
status.capacity.epochintegeryes—format "uint64" · minimum 0
status.capacity.idleSincestringno—maxLength 2048 · nullable true
status.capacity.modestringyes—Omitted capacity preserves fixed, always-on operation. · enum ["AlwaysOn","OnDemand"] · maxLength 2048
status.capacity.observedExecutorPodsintegeryes—format "uint32" · minimum 0
status.capacity.observedSchedulerPodsintegeryes—format "uint32" · minimum 0
status.capacity.phasestringyes—maxLength 2048
status.capacity.reasonstringyes—maxLength 128
status.capacity.reservationsintegeryes—format "uint32" · minimum 0
status.conditionsarrayno—Controller checks for this resource. Read the type, status, reason, and observed generation to diagnose the current state. · maxItems 8
status.conditions[]object——maxProperties 1024
status.conditions[].lastTransitionTimestringyes—maxLength 2048
status.conditions[].messagestringyes—maxLength 1024
status.conditions[].observedGenerationintegeryes—format "int64"
status.conditions[].reasonstringyes—maxLength 128
status.conditions[].statusstringyes—enum ["True","False","Unknown"] · maxLength 2048
status.conditions[].typestringyes—maxLength 2048
status.endpointsobjectno—Service endpoints reported for the cluster. Inspect these addresses when diagnosing scheduler or executor connectivity. · maxProperties 1024 · nullable true
status.endpoints.workflowGrpcstringyes—maxLength 2048
status.endpoints.workflowReststringyes—maxLength 2048
status.executorsobjectno—Observed executor information. Compare it with the requested executor pool when diagnosing cluster capacity. · maxProperties 1024 · nullable true
status.executors.deploymentGenerationintegeryes—format "int64"
status.executors.readyReplicasintegeryes—format "int32"
status.executors.registeredExecutorsintegerno—format "int32" · nullable true
status.failureobjectno—Recorded failure details. Inspect the reason and message to locate the failed operation. · maxProperties 1024 · nullable true
status.failure.atstringyes—maxLength 2048
status.failure.codestringyes—maxLength 128
status.failure.detailsobjectno—maxProperties 1024 · nullable true · self.sizeBytes >= 0 && self.sizeBytes <= 9007199254740991
status.failure.details.digeststringyes—SHA-256 digest of the artifact contents. Compare it with the downloaded bytes to verify the artifact. · maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" · self.matches('^sha256:[0-9a-f]{64}$')
status.failure.details.mediaTypestringyes—Use the recorded media type to identify the artifact representation. · maxLength 2048
status.failure.details.sizeBytesintegeryes—Use the published byte count when verifying a transferred artifact. · format "int64"
status.failure.details.uristringyes—Use this location to identify the published artifact during retrieval or diagnostics. · maxLength 2048
status.failure.messagestringyes—maxLength 1024
status.failure.relatedResourceobjectno—Exact related resource identity in the same namespace as the status owner. · maxProperties 1024 · nullable true
status.failure.relatedResource.apiVersionstringyes—maxLength 2048
status.failure.relatedResource.executionDigeststringno—maxLength 71 · nullable true · pattern "^sha256:[0-9a-f]{64}$"
status.failure.relatedResource.kindstringyes—maxLength 2048
status.failure.relatedResource.namestringyes—maxLength 253
status.failure.relatedResource.recoveryOrdinalintegerno—format "int32" · nullable true
status.failure.relatedResource.uidstringyes—maxLength 128
status.failure.retryablebooleanyes—
status.failure.stagestringno—Safe execution stage identifier, when the failing stage is known. · maxLength 2048 · nullable true
status.failure.suggestedActionstringno—Actionable guidance without credentials or raw provider response bodies. · maxLength 2048 · nullable true
status.lastProbeTimestringno—Time of the last recorded probe. Use it to judge how recent the reported capabilities or readiness are. · maxLength 2048 · nullable true
status.observedGenerationintegerno—Resource generation evaluated by the controller. Compare it with metadata.generation to check whether the status covers the current spec. · format "int64" · nullable true
status.phasestringno—Current stage reported by the controller. Use the conditions or failure details to diagnose why progress stopped. · enum ["Idle","Starting","Draining","Pending","Provisioning","Probing","Ready","Degraded","Deleting",null] · maxLength 2048 · nullable true
status.policyRefobjectno—Policy revision used for this execution. Inspect it to trace the rules applied to the workload. · maxProperties 1024 · nullable true
status.policyRef.generationintegeryes—format "int64"
status.policyRef.namestringyes—maxLength 253
status.policyRef.releaseLockobjectyes—maxProperties 1024
status.policyRef.releaseLock.digeststringyes—Use the SHA-256 digest of the artifact at the selected URI to verify the downloaded bytes. · maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" · self.matches('^sha256:[0-9a-f]{64}$')
status.policyRef.releaseLock.uristringyes—Use the immutable URI of the selected artifact. Update it together with its digest when adopting another version. · maxLength 2048
status.policyRef.semanticDigeststringyes—maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" · self.matches('^sha256:[0-9a-f]{64}$')
status.policyRef.uidstringyes—maxLength 128
status.schedulerobjectno—Observed scheduler information. Inspect it when executors or distributed queries cannot connect. · maxProperties 1024 · nullable true
status.scheduler.deploymentGenerationintegeryes—format "int64"
status.scheduler.readyReplicasintegeryes—format "int32"
status.scheduler.registeredExecutorsintegerno—format "int32" · nullable true

Specification​

Configure the scheduler and executor capacity that distributed jobs can use.

This resource requires artifactStoreRef, executor, executorImage, executorReplicas, maxConcurrentProducers, release, schedulerImage, targetPartitions.

artifactStoreRef​

Select the workspace ArtifactStore named default for distributed inputs and outputs. The store must be ready before the cluster can use it.

FieldWhen to use it
spec.artifactStoreRef.nameKubernetes name of the referenced object in the same namespace. Use its metadata.name.

capacity​

Controls when scheduler and executor pods run. Omit this block to keep fixed capacity, or use it for on-demand operation.

FieldWhen to use it
spec.capacity.idleTimeoutSecondsIdle period before an on-demand cluster drains. Use a longer interval for bursts of work to reduce repeated cold starts.
spec.capacity.modeAlwaysOn keeps the scheduler and executors running. OnDemand starts them for admitted work and drains them after idle time.

executor​

Sets execution slots, memory pool size, and Kubernetes resources for each executor. Size one executor before selecting how many replicas to run.

FieldWhen to use it
spec.executor.memoryPoolMemory budget for an executor's query memory pool. Size it below the container memory limit to leave room for process overhead.
spec.executor.resourcesSets Kubernetes resource requests and limits for each Ballista executor. Allow room for the configured memory pool and execution slots.
spec.executor.resources.limitsSet the CPU or memory ceiling for the workload. Choose limits that fit the namespace quota and allow the work to complete.
spec.executor.resources.requestsSet the minimum CPU and memory that the Kubernetes scheduler must reserve for the workload.
spec.executor.vcoresNumber of execution slots advertised by one executor. Select a value that its CPU allocation can sustain.

executorImage​

Container image used by executor pods. Select the executor image published for the specified Ballista release when provisioning the cluster.

executorReplicas​

Number of executor pods when the cluster is active. Choose more executors at provisioning time for workloads with more parallel work.

maxConcurrentProducers​

Bounds simultaneous producing workloads. Match the Ballista concurrency setting in the workspace execution policy so both enforce the same limit.

probeResources​

Sets Kubernetes resource requests and limits for the Ballista readiness probe. Adjust these when the probe itself cannot be scheduled or lacks resources for its test query.

FieldWhen to use it
spec.probeResources.limitsSet the CPU or memory ceiling for the workload. Choose limits that fit the namespace quota and allow the work to complete.
spec.probeResources.requestsSet the minimum CPU and memory that the Kubernetes scheduler must reserve for the workload.

release​

Pins the Ballista runtime contract. This CRD requires 54.1.0. Select compatible scheduler and executor images for that release.

schedulerImage​

Container image used by the scheduler pod. Select the scheduler image published for the specified Ballista release.

schedulerResources​

Sets Kubernetes resource requests and limits for the Ballista scheduler. Size the scheduler separately from the executors that process partitions.

FieldWhen to use it
spec.schedulerResources.limitsSet the CPU or memory ceiling for the workload. Choose limits that fit the namespace quota and allow the work to complete.
spec.schedulerResources.requestsSet the minimum CPU and memory that the Kubernetes scheduler must reserve for the workload.

targetPartitions​

Target number of query partitions. Choose enough partitions to distribute work across active executors while avoiding excessive small tasks.

Kubernetes schema for spec

Required applies when the parent is present. A dash in the default column means the CRD declares no default.

FieldTypeRequiredDefaultSchema constraints and descriptions
specobjectyes—Configure the scheduler and executor capacity that distributed jobs can use. · maxProperties 1024 · self.release == '54.1.0' && self.maxConcurrentProducers >= 1 && self.maxConcurrentProducers <= 16 && self.executorReplicas >= 1 && self.executorReplicas <= 1024 && self.targetPartitions >= 1 && (!has(self.capacity) || (self.capacity.idleTimeoutSeconds >= 30 && self.capacity.idleTimeoutSeconds <= 86400))
spec.artifactStoreRefobjectyes—Select the workspace ArtifactStore named default for distributed inputs and outputs. The store must be ready before the cluster can use it. · maxProperties 1024
spec.artifactStoreRef.namestringyes—Kubernetes name of the referenced object in the same namespace. Use its metadata.name. · maxLength 253
spec.capacityobjectno—Controls when scheduler and executor pods run. Omit this block to keep fixed capacity, or use it for on-demand operation. · maxProperties 1024 · nullable true
spec.capacity.idleTimeoutSecondsintegerno180Idle period before an on-demand cluster drains. Use a longer interval for bursts of work to reduce repeated cold starts. · format "uint32" · minimum 0
spec.capacity.modestringno"AlwaysOn"AlwaysOn keeps the scheduler and executors running. OnDemand starts them for admitted work and drains them after idle time. · enum ["AlwaysOn","OnDemand"] · maxLength 16384
spec.executorobjectyes—Sets execution slots, memory pool size, and Kubernetes resources for each executor. Size one executor before selecting how many replicas to run. · maxProperties 1024
spec.executor.memoryPoolstringyes—Memory budget for an executor's query memory pool. Size it below the container memory limit to leave room for process overhead. · maxLength 16384
spec.executor.resourcesobjectyes—Sets Kubernetes resource requests and limits for each Ballista executor. Allow room for the configured memory pool and execution slots. · maxProperties 1024
spec.executor.resources.limitsobjectno—Set the CPU or memory ceiling for the workload. Choose limits that fit the namespace quota and allow the work to complete. · maxProperties 1024 · nullable true
spec.executor.resources.limits[key]string——maxLength 16384
spec.executor.resources.requestsobjectyes—Set the minimum CPU and memory that the Kubernetes scheduler must reserve for the workload. · maxProperties 1024
spec.executor.resources.requests[key]string——maxLength 16384
spec.executor.vcoresintegeryes—Number of execution slots advertised by one executor. Select a value that its CPU allocation can sustain. · format "int32"
spec.executorImagestringyes—Container image used by executor pods. Select the executor image published for the specified Ballista release when provisioning the cluster. · maxLength 16384
spec.executorReplicasintegeryes—Number of executor pods when the cluster is active. Choose more executors at provisioning time for workloads with more parallel work. · format "int32"
spec.maxConcurrentProducersintegeryes—Bounds simultaneous producing workloads. Match the Ballista concurrency setting in the workspace execution policy so both enforce the same limit. · format "int32"
spec.probeResourcesobjectno—Sets Kubernetes resource requests and limits for the Ballista readiness probe. Adjust these when the probe itself cannot be scheduled or lacks resources for its test query. · maxProperties 1024 · nullable true
spec.probeResources.limitsobjectno—Set the CPU or memory ceiling for the workload. Choose limits that fit the namespace quota and allow the work to complete. · maxProperties 1024 · nullable true
spec.probeResources.limits[key]string——maxLength 16384
spec.probeResources.requestsobjectyes—Set the minimum CPU and memory that the Kubernetes scheduler must reserve for the workload. · maxProperties 1024
spec.probeResources.requests[key]string——maxLength 16384
spec.releasestringyes—Pins the Ballista runtime contract. This CRD requires 54.1.0. Select compatible scheduler and executor images for that release. · maxLength 16384
spec.schedulerImagestringyes—Container image used by the scheduler pod. Select the scheduler image published for the specified Ballista release. · maxLength 16384
spec.schedulerResourcesobjectno—Sets Kubernetes resource requests and limits for the Ballista scheduler. Size the scheduler separately from the executors that process partitions. · maxProperties 1024 · nullable true
spec.schedulerResources.limitsobjectno—Set the CPU or memory ceiling for the workload. Choose limits that fit the namespace quota and allow the work to complete. · maxProperties 1024 · nullable true
spec.schedulerResources.limits[key]string——maxLength 16384
spec.schedulerResources.requestsobjectyes—Set the minimum CPU and memory that the Kubernetes scheduler must reserve for the workload. · maxProperties 1024
spec.schedulerResources.requests[key]string——maxLength 16384
spec.targetPartitionsintegeryes—Target number of query partitions. Choose enough partitions to distribute work across active executors while avoiding excessive small tasks. · format "int32"

The validation schema matches prokrust-crds 0.23.0-rc.1.