Package v1 is the v1 version of the API.
Package v1 contains API Schema definitions for the kubeflow.org v1 API group
CleanPodPolicy describes how to deal with pods when the job is finished.
Field | Description |
---|---|
|
minReplicas is the lower limit for the number of replicas to which the training job can scale down. It defaults to null. |
|
upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas, defaults to null. |
|
|
|
|
|
|
|
|
|
RDZVConf contains additional rendezvous configuration (<key1>=<value1>,<key2>=<value2>,…). |
|
Start a local standalone rendezvous backend that is represented by a C10d TCP store on port 29400. Useful when launching single-node, multi-worker job. If specified --rdzv_backend, --rdzv_endpoint, --rdzv_id are auto-assigned; any explicitly set values are ignored. |
|
Number of workers per node; supported values: [auto, cpu, gpu, int]. Deprecated: This API is deprecated in v1.7+ Use .spec.nprocPerNode instead. |
|
|
|
Metrics contains the specifications which are used to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated with multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the HPA will not be created. |
JobCondition describes the state of the job at a certain point.
Field | Description |
---|---|
|
Type of job condition. |
|
Status of the condition, one of True, False, Unknown. |
|
The reason for the condition’s last transition. |
|
A human readable message indicating details about the transition. |
|
The last time this condition was updated. |
|
Last time the condition transitioned from one status to another. |
JobConditionType defines all kinds of types of JobStatus.
JobStatus represents the current observed state of the training Job.
Field | Description |
---|---|
|
Conditions is an array of current observed job conditions. |
|
ReplicaStatuses is map of ReplicaType and ReplicaStatus, specifies the status of each replica. |
|
Represents time when the job was acknowledged by the job controller. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. |
|
Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. |
|
Represents last time when the job was reconciled. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. |
Field | Description |
---|---|
|
|
|
|
|
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
|
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
|
Refer to Kubernetes API documentation for fields of |
|
|
|
Field | Description |
---|---|
|
|
|
|
|
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
|
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
|
Refer to Kubernetes API documentation for fields of |
|
Field | Description |
---|---|
|
Specifies the number of slots per worker used in hostfile. Defaults to 1. |
|
CleanPodPolicy defines the policy that whether to kill pods after the job completes. Defaults to None. |
|
|
|
MainContainer specifies name of the main container which executes the MPI code. |
|
|
MXJob is the Schema for the mxjobs API
Field | Description |
---|---|
|
|
|
|
|
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
|
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
|
Refer to Kubernetes API documentation for fields of |
|
|
|
MXJobList contains a list of MXJob
Field | Description |
---|---|
|
|
|
|
|
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
|
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
|
Refer to Kubernetes API documentation for fields of |
|
MXJobSpec defines the desired state of MXJob
Field | Description |
---|---|
|
RunPolicy encapsulates various runtime policies of the distributed training job, for example how to clean up resources and how long the job can stay active. |
|
JobMode specify the kind of MXjob to do. Different mode may have different MXReplicaSpecs request |
|
MXReplicaSpecs is map of ReplicaType and ReplicaSpec specifies the MX replicas to run. For example, { "Scheduler": ReplicaSpec, "Server": ReplicaSpec, "Worker": ReplicaSpec, } |
Field | Description |
---|---|
|
minReplicas is the lower limit for the number of replicas to which the training job can scale down. It defaults to null. |
|
upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas, defaults to null. |
|
MaxRestarts is the limit for restart times of pods in elastic mode. |
|
Metrics contains the specifications which are used to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated with multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the HPA will not be created. |
PaddleJob Represents a PaddleJob resource.
Field | Description |
---|---|
|
|
|
|
|
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
|
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
|
Refer to Kubernetes API documentation for fields of |
|
Specification of the desired state of the PaddleJob. |
|
Most recently observed status of the PaddleJob. Read-only (modified by the system). |
PaddleJobList is a list of PaddleJobs.
Field | Description |
---|---|
|
|
|
|
|
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
|
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
|
Refer to Kubernetes API documentation for fields of |
|
List of PaddleJobs. |
PaddleJobSpec is a desired state description of the PaddleJob.
Field | Description |
---|---|
|
RunPolicy encapsulates various runtime policies of the distributed training job, for example how to clean up resources and how long the job can stay active. |
|
ElasticPolicy holds the elastic policy for paddle job. |
|
A map of PaddleReplicaType (type) to ReplicaSpec (value). Specifies the Paddle cluster configuration. For example, { "Master": PaddleReplicaSpec, "Worker": PaddleReplicaSpec, } |
PyTorchJob Represents a PyTorchJob resource.
Field | Description |
---|---|
|
|
|
|
|
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
|
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
|
Refer to Kubernetes API documentation for fields of |
|
Specification of the desired state of the PyTorchJob. |
|
Most recently observed status of the PyTorchJob. Read-only (modified by the system). |
PyTorchJobList is a list of PyTorchJobs.
Field | Description |
---|---|
|
|
|
|
|
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
|
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
|
Refer to Kubernetes API documentation for fields of |
|
List of PyTorchJobs. |
PyTorchJobSpec is a desired state description of the PyTorchJob.
Field | Description |
---|---|
|
RunPolicy encapsulates various runtime policies of the distributed training job, for example how to clean up resources and how long the job can stay active. |
|
|
|
A map of PyTorchReplicaType (type) to ReplicaSpec (value). Specifies the PyTorch cluster configuration. For example, { "Master": PyTorchReplicaSpec, "Worker": PyTorchReplicaSpec, } |
|
Number of workers per node; supported values: [auto, cpu, gpu, int]. For more, https://github.com/pytorch/pytorch/blob/26f7f470df64d90e092081e39507e4ac751f55d6/torch/distributed/run.py#L629-L658. Defaults to auto. |
ReplicaSpec is a description of the replica
Field | Description |
---|---|
|
Replicas is the desired number of replicas of the given template. If unspecified, defaults to 1. |
|
Template is the object that describes the pod that will be created for this replica. RestartPolicy in PodTemplateSpec will be overide by RestartPolicy in ReplicaSpec |
|
Restart policy for all replicas within the job. One of Always, OnFailure, Never and ExitCode. Default to Never. |
ReplicaStatus represents the current observed state of the replica.
Field | Description |
---|---|
|
The number of actively running pods. |
|
The number of pods which reached phase Succeeded. |
|
The number of pods which reached phase Failed. |
|
Deprecated: Use Selector instead |
|
A Selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty Selector matches all objects. A null Selector matches no objects. |
ReplicaType represents the type of the replica. Each operator needs to define its own set of ReplicaTypes.
RestartPolicy describes how the replicas should be restarted. Only one of the following restart policies may be specified. If none of the following policies is specified, the default one is RestartPolicyAlways.
RunPolicy encapsulates various runtime policies of the distributed training job, for example how to clean up resources and how long the job can stay active.
Field | Description |
---|---|
|
CleanPodPolicy defines the policy to kill pods after the job completes. Default to None. |
|
TTLSecondsAfterFinished is the TTL to clean up jobs. It may take extra ReconcilePeriod seconds for the cleanup, since reconcile gets called periodically. Default to infinite. |
|
Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer. |
|
Optional number of retries before marking this job failed. |
|
SchedulingPolicy defines the policy related to scheduling, e.g. gang-scheduling |
|
suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods and PodGroups associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job. Defaults to false. |
SchedulingPolicy encapsulates various scheduling policies of the distributed training
job, for example minAvailable
for gang-scheduling.
Field | Description |
---|---|
|
|
|
|
|
|
|
|
|
TFJob represents a TFJob resource.
Field | Description |
---|---|
|
|
|
|
|
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
|
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
|
Refer to Kubernetes API documentation for fields of |
|
Specification of the desired state of the TFJob. |
|
Most recently observed status of the TFJob. Populated by the system. Read-only. |
TFJobList is a list of TFJobs.
Field | Description |
---|---|
|
|
|
|
|
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
|
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
|
Refer to Kubernetes API documentation for fields of |
|
List of TFJobs. |
TFJobSpec is a desired state description of the TFJob.
Field | Description |
---|---|
|
RunPolicy encapsulates various runtime policies of the distributed training job, for example how to clean up resources and how long the job can stay active. |
|
SuccessPolicy defines the policy to mark the TFJob as succeeded. Default to "", using the default rules. |
|
A map of TFReplicaType (type) to ReplicaSpec (value). Specifies the TF cluster configuration. For example, { "PS": ReplicaSpec, "Worker": ReplicaSpec, } |
|
A switch to enable dynamic worker |
XGBoostJob is the Schema for the xgboostjobs API
Field | Description |
---|---|
|
|
|
|
|
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
|
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
|
Refer to Kubernetes API documentation for fields of |
|
|
|
XGBoostJobList contains a list of XGBoostJob
Field | Description |
---|---|
|
|
|
|
|
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
|
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
|
Refer to Kubernetes API documentation for fields of |
|
XGBoostJobSpec defines the desired state of XGBoostJob
Field | Description |
---|---|
|
INSERT ADDITIONAL SPEC FIELDS - desired state of cluster Important: Run "make" to regenerate code after modifying this file |
|