API Reference

Packages

batch.tensorstack.dev/v1beta1

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

Resource Types

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
worker WorkerConfigSpecifications for the worker replicas.
mca object (keys:string, values:string)Open MPI uses Modular Component Architecture (MCA) parameters to provide a way to tune your runtime environment.
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.
mpiHome stringOpen MPI installation path.
scheduler SchedulePolicyIdentifies the preferred scheduler for allocating resources to replicas. Defaults to cluster default scheduler. Use k8s default scheduler by default.

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.

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

WorkerConfig

WorkerConfig defines the configurations for MPI worker replicas.

Appears in:

FieldDescription
replicas integerThe number of workers to launch. Default 1.
extraMPIArgs string arrayExtra args for mpirun.
cmd 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.
template PodTemplateSpecDefines the pod template used to create workers. Users are responsible for ensuring that container images and configurations are properly set to guarantee the worker operates in the state anticipated by the launcher.