|
| 1 | +// Generated documentation. Please do not edit. |
| 2 | +:anchor_prefix: k8s-api |
| 3 | + |
| 4 | +[id="{p}-api-reference"] |
| 5 | += API Reference |
| 6 | + |
| 7 | +.Packages |
| 8 | +- xref:{anchor_prefix}-kubeflow-org-v1[$$kubeflow.org/v1$$] |
| 9 | + |
| 10 | + |
| 11 | +[id="{anchor_prefix}-kubeflow-org-v1"] |
| 12 | +== kubeflow.org/v1 |
| 13 | + |
| 14 | +Package v1 is the v1 version of the API. |
| 15 | + |
| 16 | + |
| 17 | +Licensed under the Apache License, Version 2.0 (the "License"); |
| 18 | +you may not use this file except in compliance with the License. |
| 19 | +You may obtain a copy of the License at |
| 20 | + |
| 21 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 22 | + |
| 23 | +Unless required by applicable law or agreed to in writing, software |
| 24 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 25 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 26 | +See the License for the specific language governing permissions and |
| 27 | +limitations under the License. |
| 28 | + |
| 29 | + |
| 30 | +=== Definitions |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | +[id="{anchor_prefix}-g.yxqyang.asia-kubeflow-common-pkg-apis-common-v1-jobcondition"] |
| 35 | +==== JobCondition |
| 36 | + |
| 37 | +JobCondition describes the state of the job at a certain point. |
| 38 | + |
| 39 | +.Appears In: |
| 40 | +**** |
| 41 | +- xref:{anchor_prefix}-g.yxqyang.asia-kubeflow-common-pkg-apis-common-v1-jobstatus[$$JobStatus$$] |
| 42 | +**** |
| 43 | + |
| 44 | +[cols="25a,75a", options="header"] |
| 45 | +|=== |
| 46 | +| Field | Description |
| 47 | +| *`type`* __xref:{anchor_prefix}-g.yxqyang.asia-kubeflow-common-pkg-apis-common-v1-jobconditiontype[$$JobConditionType$$]__ | Type of job condition. |
| 48 | +| *`status`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.16/#conditionstatus-v1-core[$$ConditionStatus$$]__ | Status of the condition, one of True, False, Unknown. |
| 49 | +| *`reason`* __string__ | The reason for the condition's last transition. |
| 50 | +| *`message`* __string__ | A human readable message indicating details about the transition. |
| 51 | +| *`lastUpdateTime`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.16/#time-v1-meta[$$Time$$]__ | The last time this condition was updated. |
| 52 | +| *`lastTransitionTime`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.16/#time-v1-meta[$$Time$$]__ | Last time the condition transitioned from one status to another. |
| 53 | +|=== |
| 54 | + |
| 55 | + |
| 56 | +[id="{anchor_prefix}-g.yxqyang.asia-kubeflow-common-pkg-apis-common-v1-jobconditiontype"] |
| 57 | +==== JobConditionType (string) |
| 58 | + |
| 59 | +JobConditionType defines all kinds of types of JobStatus. |
| 60 | + |
| 61 | +.Appears In: |
| 62 | +**** |
| 63 | +- xref:{anchor_prefix}-g.yxqyang.asia-kubeflow-common-pkg-apis-common-v1-jobcondition[$$JobCondition$$] |
| 64 | +**** |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | +[id="{anchor_prefix}-g.yxqyang.asia-kubeflow-common-pkg-apis-common-v1-replicastatus"] |
| 73 | +==== ReplicaStatus |
| 74 | + |
| 75 | +ReplicaStatus represents the current observed state of the replica. |
| 76 | + |
| 77 | +.Appears In: |
| 78 | +**** |
| 79 | +- xref:{anchor_prefix}-g.yxqyang.asia-kubeflow-common-pkg-apis-common-v1-jobstatus[$$JobStatus$$] |
| 80 | +**** |
| 81 | + |
| 82 | +[cols="25a,75a", options="header"] |
| 83 | +|=== |
| 84 | +| Field | Description |
| 85 | +| *`active`* __integer__ | The number of actively running pods. |
| 86 | +| *`succeeded`* __integer__ | The number of pods which reached phase Succeeded. |
| 87 | +| *`failed`* __integer__ | The number of pods which reached phase Failed. |
| 88 | +|=== |
| 89 | + |
| 90 | + |
| 91 | +[id="{anchor_prefix}-g.yxqyang.asia-kubeflow-common-pkg-apis-common-v1-replicatype"] |
| 92 | +==== ReplicaType (string) |
| 93 | + |
| 94 | +ReplicaType represents the type of the replica. Each operator needs to define its own set of ReplicaTypes. |
| 95 | + |
| 96 | +.Appears In: |
| 97 | +**** |
| 98 | +- xref:{anchor_prefix}-g.yxqyang.asia-kubeflow-common-pkg-apis-common-v1-jobstatus[$$JobStatus$$] |
| 99 | +**** |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | +[id="{anchor_prefix}-g.yxqyang.asia-kubeflow-common-pkg-apis-common-v1-restartpolicy"] |
| 104 | +==== RestartPolicy (string) |
| 105 | + |
| 106 | +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. |
| 107 | + |
| 108 | +.Appears In: |
| 109 | +**** |
| 110 | +- xref:{anchor_prefix}-g.yxqyang.asia-kubeflow-common-pkg-apis-common-v1-replicaspec[$$ReplicaSpec$$] |
| 111 | +**** |
| 112 | + |
| 113 | + |
| 114 | + |
| 115 | + |
| 116 | + |
| 117 | +[id="{anchor_prefix}-g.yxqyang.asia-kubeflow-common-pkg-apis-common-v1-schedulingpolicy"] |
| 118 | +==== SchedulingPolicy |
| 119 | + |
| 120 | +SchedulingPolicy encapsulates various scheduling policies of the distributed training job, for example `minAvailable` for gang-scheduling. |
| 121 | + |
| 122 | +.Appears In: |
| 123 | +**** |
| 124 | +- xref:{anchor_prefix}-g.yxqyang.asia-kubeflow-common-pkg-apis-common-v1-runpolicy[$$RunPolicy$$] |
| 125 | +**** |
| 126 | + |
| 127 | +[cols="25a,75a", options="header"] |
| 128 | +|=== |
| 129 | +| Field | Description |
| 130 | +| *`minAvailable`* __integer__ | |
| 131 | +|=== |
| 132 | + |
| 133 | + |
0 commit comments