API Reference

Packages

batch.tensorstack.dev/v1beta1

Package v1beta1 contains API Schema definitions for the batch v1beta1 API group

Resource Types

MPIConfig

MPIConfig describes how to start the mpi job.

Appears in:

FieldDescription
mca object (keys:string, values:string)Open MPI uses Modular Component Architecture (MCA) parameters to provide a way to tune your runtime environment.
home stringOpen MPI installation path.
extraArgs string arrayExtra args for mpirun.
script string arrayCommand line to start the MPI programs inside a worker pod. This is invoked by the launcher after all the worker pods have been created and entered ready state.

MPIJob

MPIJob is the Schema for the mpijobs API

Appears in:

FieldDescription
apiVersion stringbatch.tensorstack.dev/v1beta1
kind stringMPIJob
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec MPIJobSpec
status MPIJobStatus

MPIJobList

MPIJobList contains a list of MPIJob

FieldDescription
apiVersion stringbatch.tensorstack.dev/v1beta1
kind stringMPIJobList
metadata ListMetaRefer to Kubernetes API documentation for fields of metadata.
items MPIJob array

MPIJobSpec

MPIJobSpec outlines the intended configuration and execution parameters for a MPIJob.

Appears in:

FieldDescription
ssh SSHConfigSSH configs.
runPolicy RunPolicyExecution policy configurations governing the behavior of the MPI job.
runMode RunModeJob's execution behavior. If omitted, defaults to Immediate mode, and tasks are executed immediately upon submission.
scheduler SchedulePolicyIdentifies the preferred scheduler for allocating resources to replicas. Defaults to cluster default scheduler. Use k8s default scheduler by default.
mpiConfig MPIConfigDescribes how to start the mpi job.
replicaSpecs ReplicaSpec arrayList of replica specs belonging to the job. There must be at least one replica defined for a Job.

MPIJobStatus

MPIJobStatus represents the observed state of a MPIJob.

Appears in:

FieldDescription
tasks Tasks arrayIndividual task status details of the job.
aggregate Aggregate
phase JobPhaseProvides a simple, high-level summary of where the Job is in its lifecycle. Note that this is NOT indended to be a comprehensive state machine.
conditions JobCondition arrayThe latest available observations of an object's current state.

MPIReplicaType

Underlying type: string

Appears in:

ReplicaSpec

ReplicaSpec defines the desired state of replicas.

Appears in:

FieldDescription
type MPIReplicaTypeReplica type.
replicas integerThe desired number of replicas of this replica type. Defaults to 1.
restartPolicy RestartPolicyRestart policy for replicas of this replica type. One of Always, OnFailure, Never. Optional: Default to OnFailure.
template PodTemplateSpecDefines the template used to create pods.

RestartPolicy

RestartPolicy describes how the replica should be restarted.

Appears in:

FieldDescription
policy RestartPolicyTypeThe policy to restart finished replica.
limit integerThe maximum number of restarts. Optional: Default to 0.

RestartPolicyType

Underlying type: string

Appears in:

RunPolicy

RunPolicy encapsulates various runtime policies of the MPI job, for example how to clean up resources.

Appears in:

FieldDescription
cleanUpWorkers booleanIf worker replicas should be cleand up after they finish. Defaults false.

SSHConfig

SSHConfig specifies various configurations for running the SSH daemon (sshd).

Appears in:

FieldDescription
sshAuthMountPath stringSSHAuthMountPath is the directory where SSH keys are mounted. Defaults to "/root/.ssh".
sshdPath string