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.
| Condition | What it tells you |
|---|---|
Accepted | Reports whether the controller accepted the cluster definition for this pass. |
Configured | Reports whether dependencies are ready, cluster settings match policy, and the producer semaphore matches the configured limit. |
DependenciesReady | Reports whether dependencies and the active pool permit remote execution. |
Ready | Reports 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 reason | What to check |
|---|---|
True / ValidSpec | The cluster definition passed its check. Inspect Configured and Ready. |
Configured
| Status and reason | What to check |
|---|---|
False / CapacityConfiguration | Check dependency readiness, the settings in the workspace policy, and the producer semaphore limit. |
True / CapacityConfiguration | The cluster has the expected policy and capacity configuration. An idle on-demand cluster can have no active scheduler or executors. |
DependenciesReady
| Status and reason | What to check |
|---|---|
False / DependencyMissing | Check the referenced workspace policy, artifact connection, federation ConfigMap, and scheduler and executor service accounts. |
False / DependencyNotReady | Inspect the condition message and status.phase. Check scheduler and executor rollout in Starting or Provisioning and the remote health query in Probing. |
False / InvalidRuntimeConfiguration | Check the configuration error in status.failure before retrying. |
False / ReconcileFailed | Inspect controller diagnostics and dependency permissions. Reconciliation retries. |
False / ReconcileForbidden | Check the tenant Role and the system controller's RoleBinding. |
True / Ready | Use status.scheduler, status.executors, and status.endpoints to identify the active pool. |
Ready
| Status and reason | What to check |
|---|---|
False / Blocked | Inspect the condition message and status.phase. Check scheduler and executor rollout in Starting or Provisioning and the remote health query in Probing. |
False / DependencyMissing | Check the referenced workspace policy, artifact connection, federation ConfigMap, and scheduler and executor service accounts. |
False / InvalidRuntimeConfiguration | Check the configuration error in status.failure before retrying. |
False / ReconcileFailed | Inspect controller diagnostics and dependency permissions. Reconciliation retries. |
False / ReconcileForbidden | Check the tenant Role and the system controller's RoleBinding. |
True / Ready | Use status.scheduler, status.executors, and status.endpoints to identify the active pool. |
Condition field meanings
| Field | What to look for |
|---|---|
type | Names the check. Use it to select the condition you want to inspect. |
status | Reports whether the named condition holds. Read the reason to see why. |
reason | A short identifier for this outcome. Use it when comparing observations or filtering results. |
message | When present, gives details about this object, such as the name of a dependency. |
observedGeneration | Compare with metadata.generation to see which version of the spec the controller checked. |
lastTransitionTime | Records the time of the last transition for this condition. |
How to read status fields
| Field | What it tells you |
|---|---|
status.capacity | Reported compute capacity for this cluster. Inspect it when a distributed workload waits for executors. |
status.endpoints | Service endpoints reported for the cluster. Inspect these addresses when diagnosing scheduler or executor connectivity. |
status.executors | Observed executor information. Compare it with the requested executor pool when diagnosing cluster capacity. |
status.failure | Recorded failure details. Inspect the reason and message to locate the failed operation. |
status.lastProbeTime | Time of the last recorded probe. Use it to judge how recent the reported capabilities or readiness are. |
status.observedGeneration | Resource generation evaluated by the controller. Compare it with metadata.generation to check whether the status covers the current spec. |
status.phase | Current stage reported by the controller. Use the conditions or failure details to diagnose why progress stopped. |
status.policyRef | Policy revision used for this execution. Inspect it to trace the rules applied to the workload. |
status.scheduler | Observed 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.
| Field | Type | Required | Default | Schema constraints and descriptions |
|---|---|---|---|---|
status | object | no | — | maxProperties 1024 · nullable true |
status.capacity | object | no | — | Reported compute capacity for this cluster. Inspect it when a distributed workload waits for executors. · maxProperties 1024 · nullable true |
status.capacity.activeDemand | integer | yes | — | format "uint32" · minimum 0 |
status.capacity.admissionOpen | boolean | yes | — | |
status.capacity.desiredExecutorReplicas | integer | yes | — | format "int32" |
status.capacity.desiredSchedulerReplicas | integer | yes | — | format "int32" |
status.capacity.epoch | integer | yes | — | format "uint64" · minimum 0 |
status.capacity.idleSince | string | no | — | maxLength 2048 · nullable true |
status.capacity.mode | string | yes | — | Omitted capacity preserves fixed, always-on operation. · enum ["AlwaysOn","OnDemand"] · maxLength 2048 |
status.capacity.observedExecutorPods | integer | yes | — | format "uint32" · minimum 0 |
status.capacity.observedSchedulerPods | integer | yes | — | format "uint32" · minimum 0 |
status.capacity.phase | string | yes | — | maxLength 2048 |
status.capacity.reason | string | yes | — | maxLength 128 |
status.capacity.reservations | integer | yes | — | format "uint32" · minimum 0 |
status.conditions | array | no | — | 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[].lastTransitionTime | string | yes | — | maxLength 2048 |
status.conditions[].message | string | yes | — | maxLength 1024 |
status.conditions[].observedGeneration | integer | yes | — | format "int64" |
status.conditions[].reason | string | yes | — | maxLength 128 |
status.conditions[].status | string | yes | — | enum ["True","False","Unknown"] · maxLength 2048 |
status.conditions[].type | string | yes | — | maxLength 2048 |
status.endpoints | object | no | — | Service endpoints reported for the cluster. Inspect these addresses when diagnosing scheduler or executor connectivity. · maxProperties 1024 · nullable true |
status.endpoints.workflowGrpc | string | yes | — | maxLength 2048 |
status.endpoints.workflowRest | string | yes | — | maxLength 2048 |
status.executors | object | no | — | Observed executor information. Compare it with the requested executor pool when diagnosing cluster capacity. · maxProperties 1024 · nullable true |
status.executors.deploymentGeneration | integer | yes | — | format "int64" |
status.executors.readyReplicas | integer | yes | — | format "int32" |
status.executors.registeredExecutors | integer | no | — | format "int32" · nullable true |
status.failure | object | no | — | Recorded failure details. Inspect the reason and message to locate the failed operation. · maxProperties 1024 · nullable true |
status.failure.at | string | yes | — | maxLength 2048 |
status.failure.code | string | yes | — | maxLength 128 |
status.failure.details | object | no | — | maxProperties 1024 · nullable true · self.sizeBytes >= 0 && self.sizeBytes <= 9007199254740991 |
status.failure.details.digest | string | yes | — | 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.mediaType | string | yes | — | Use the recorded media type to identify the artifact representation. · maxLength 2048 |
status.failure.details.sizeBytes | integer | yes | — | Use the published byte count when verifying a transferred artifact. · format "int64" |
status.failure.details.uri | string | yes | — | Use this location to identify the published artifact during retrieval or diagnostics. · maxLength 2048 |
status.failure.message | string | yes | — | maxLength 1024 |
status.failure.relatedResource | object | no | — | Exact related resource identity in the same namespace as the status owner. · maxProperties 1024 · nullable true |
status.failure.relatedResource.apiVersion | string | yes | — | maxLength 2048 |
status.failure.relatedResource.executionDigest | string | no | — | maxLength 71 · nullable true · pattern "^sha256:[0-9a-f]{64}$" |
status.failure.relatedResource.kind | string | yes | — | maxLength 2048 |
status.failure.relatedResource.name | string | yes | — | maxLength 253 |
status.failure.relatedResource.recoveryOrdinal | integer | no | — | format "int32" · nullable true |
status.failure.relatedResource.uid | string | yes | — | maxLength 128 |
status.failure.retryable | boolean | yes | — | |
status.failure.stage | string | no | — | Safe execution stage identifier, when the failing stage is known. · maxLength 2048 · nullable true |
status.failure.suggestedAction | string | no | — | Actionable guidance without credentials or raw provider response bodies. · maxLength 2048 · nullable true |
status.lastProbeTime | string | no | — | Time of the last recorded probe. Use it to judge how recent the reported capabilities or readiness are. · maxLength 2048 · nullable true |
status.observedGeneration | integer | no | — | 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.phase | string | no | — | 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.policyRef | object | no | — | Policy revision used for this execution. Inspect it to trace the rules applied to the workload. · maxProperties 1024 · nullable true |
status.policyRef.generation | integer | yes | — | format "int64" |
status.policyRef.name | string | yes | — | maxLength 253 |
status.policyRef.releaseLock | object | yes | — | maxProperties 1024 |
status.policyRef.releaseLock.digest | string | yes | — | 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.uri | string | yes | — | Use the immutable URI of the selected artifact. Update it together with its digest when adopting another version. · maxLength 2048 |
status.policyRef.semanticDigest | string | yes | — | maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" · self.matches('^sha256:[0-9a-f]{64}$') |
status.policyRef.uid | string | yes | — | maxLength 128 |
status.scheduler | object | no | — | Observed scheduler information. Inspect it when executors or distributed queries cannot connect. · maxProperties 1024 · nullable true |
status.scheduler.deploymentGeneration | integer | yes | — | format "int64" |
status.scheduler.readyReplicas | integer | yes | — | format "int32" |
status.scheduler.registeredExecutors | integer | no | — | 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.
| Field | When to use it |
|---|---|
spec.artifactStoreRef.name | Kubernetes 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.
| Field | When to use it |
|---|---|
spec.capacity.idleTimeoutSeconds | Idle period before an on-demand cluster drains. Use a longer interval for bursts of work to reduce repeated cold starts. |
spec.capacity.mode | AlwaysOn 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.
| Field | When to use it |
|---|---|
spec.executor.memoryPool | Memory budget for an executor's query memory pool. Size it below the container memory limit to leave room for process overhead. |
spec.executor.resources | Sets Kubernetes resource requests and limits for each Ballista executor. Allow room for the configured memory pool and execution slots. |
spec.executor.resources.limits | Set the CPU or memory ceiling for the workload. Choose limits that fit the namespace quota and allow the work to complete. |
spec.executor.resources.requests | Set the minimum CPU and memory that the Kubernetes scheduler must reserve for the workload. |
spec.executor.vcores | Number 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.
| Field | When to use it |
|---|---|
spec.probeResources.limits | Set the CPU or memory ceiling for the workload. Choose limits that fit the namespace quota and allow the work to complete. |
spec.probeResources.requests | Set 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.
| Field | When to use it |
|---|---|
spec.schedulerResources.limits | Set the CPU or memory ceiling for the workload. Choose limits that fit the namespace quota and allow the work to complete. |
spec.schedulerResources.requests | Set 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.
| Field | Type | Required | Default | Schema constraints and descriptions |
|---|---|---|---|---|
spec | object | yes | — | 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.artifactStoreRef | object | yes | — | 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.name | string | yes | — | Kubernetes name of the referenced object in the same namespace. Use its metadata.name. · maxLength 253 |
spec.capacity | object | no | — | 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.idleTimeoutSeconds | integer | no | 180 | Idle 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.mode | string | no | "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.executor | object | yes | — | 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.memoryPool | string | yes | — | 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.resources | object | yes | — | 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.limits | object | no | — | 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.requests | object | yes | — | 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.vcores | integer | yes | — | Number of execution slots advertised by one executor. Select a value that its CPU allocation can sustain. · format "int32" |
spec.executorImage | string | yes | — | Container image used by executor pods. Select the executor image published for the specified Ballista release when provisioning the cluster. · maxLength 16384 |
spec.executorReplicas | integer | yes | — | Number of executor pods when the cluster is active. Choose more executors at provisioning time for workloads with more parallel work. · format "int32" |
spec.maxConcurrentProducers | integer | yes | — | Bounds simultaneous producing workloads. Match the Ballista concurrency setting in the workspace execution policy so both enforce the same limit. · format "int32" |
spec.probeResources | object | no | — | 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.limits | object | no | — | 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.requests | object | yes | — | 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.release | string | yes | — | Pins the Ballista runtime contract. This CRD requires 54.1.0. Select compatible scheduler and executor images for that release. · maxLength 16384 |
spec.schedulerImage | string | yes | — | Container image used by the scheduler pod. Select the scheduler image published for the specified Ballista release. · maxLength 16384 |
spec.schedulerResources | object | no | — | 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.limits | object | no | — | 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.requests | object | yes | — | 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.targetPartitions | integer | yes | — | 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.