Machine [cluster.x-k8s.io/v1beta1]
- 描述
- Machine is the Schema for the machines API.
- 类型
object
规格
.spec
- 描述
- spec is the desired state of Machine.
- 类型
object- 必填
bootstrapclusterNameinfrastructureRef
.spec.bootstrap
- 描述
- bootstrap is a reference to a local struct which encapsulates fields to configure the Machine’s bootstrapping mechanism.
- 类型
object
.spec.bootstrap.configRef
- 描述
- configRef is a reference to a bootstrap provider-specific resource that holds configuration details. The reference is optional to allow users/operators to specify Bootstrap.DataSecretName without the need of a controller.
- 类型
object
.spec.infrastructureRef
- 描述
- infrastructureRef is a required reference to a custom resource offered by an infrastructure provider.
- 类型
object
.spec.readinessGates
- 描述
- readinessGates specifies additional conditions to include when evaluating Machine Ready condition. This field can be used e.g. by Cluster API control plane providers to extend the semantic of the Ready condition for the Machine they control, like the kubeadm control provider adding ReadinessGates for the APIServerPodHealthy, SchedulerPodHealthy conditions, etc. Another example are external controllers, e.g. responsible to install special software/hardware on the Machines; they can include the status of those components with a new condition and add this condition to ReadinessGates. NOTE: This field is considered only for computing v1beta2 conditions. NOTE: In case readinessGates conditions start with the APIServer, ControllerManager, Scheduler prefix, and all those readiness gates condition are reporting the same message, when computing the Machine's Ready condition those readinessGates will be replaced by a single entry reporting "Control plane components: " + message. This helps to improve readability of conditions bubbling up to the Machine's owner resource / to the Cluster).
- 类型
array
.spec.readinessGates[]
- 描述
- MachineReadinessGate contains the type of a Machine condition to be used as a readiness gate.
- 类型
object- 必填
conditionType
.spec.taints
- 描述
- The list of the taints to be applied to the corresponding Node in additive manner. This list will not overwrite any other taints added to the Node on an ongoing basis by other entities. These taints should be actively reconciled e.g. if you ask the machine controller to apply a taint and then manually remove the taint the machine controller will put it back) but not have the machine controller remove any taints
- 类型
array
.spec.taints[]
- 描述
- The node this Taint is attached to has the "effect" on any pod that does not tolerate the Taint.
- 类型
object- 必填
effectkey
.status
- 描述
- status is the observed state of Machine.
- 类型
object
.status.addresses
- 描述
- addresses is a list of addresses assigned to the machine. This field is copied from the infrastructure provider reference.
- 类型
array
.status.addresses[]
- 描述
- MachineAddress contains information for the node's address.
- 类型
object- 必填
addresstype
.status.conditions
- 描述
- conditions defines current service state of the Machine.
- 类型
array
.status.conditions[]
- 描述
- Condition defines an observation of a Cluster API resource operational state.
- 类型
object- 必填
lastTransitionTimestatustype
.status.deletion
- 描述
- deletion contains information relating to removal of the Machine. Only present when the Machine has a deletionTimestamp and drain or wait for volume detach started.
- 类型
object
.status.nodeInfo
- 描述
- nodeInfo is a set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#info
- 类型
object- 必填
architecturebootIDcontainerRuntimeVersionkernelVersionkubeProxyVersionkubeletVersionmachineIDoperatingSystemosImagesystemUUID
.status.nodeRef
- 描述
- nodeRef will point to the corresponding Node if it exists.
- 类型
object
.status.v1beta2
- 描述
- v1beta2 groups all the fields that will be added or modified in Machine's status with the V1Beta2 version.
- 类型
object
.status.v1beta2.conditions
- 描述
- conditions represents the observations of a Machine's current state. Known condition types are Available, Ready, UpToDate, BootstrapConfigReady, InfrastructureReady, NodeReady, NodeHealthy, Deleting, Paused. If a MachineHealthCheck is targeting this machine, also HealthCheckSucceeded, OwnerRemediated conditions are added. Additionally control plane Machines controlled by KubeadmControlPlane will have following additional conditions: APIServerPodHealthy, ControllerManagerPodHealthy, SchedulerPodHealthy, EtcdPodHealthy, EtcdMemberHealthy.
- 类型
array
.status.v1beta2.conditions[]
- 描述
- Condition contains details for one aspect of the current state of this API Resource.
- 类型
object- 必填
lastTransitionTimemessagereasonstatustype
API 端点
可用的 API 端点如下:
/apis/cluster.x-k8s.io/v1beta1/namespaces/{namespace}/machinesDELETE: delete collection of MachineGET: list objects of kind MachinePOST: create a new Machine
/apis/cluster.x-k8s.io/v1beta1/namespaces/{namespace}/machines/{name}DELETE: delete the specified MachineGET: read the specified MachinePATCH: partially update the specified MachinePUT: replace the specified Machine
/apis/cluster.x-k8s.io/v1beta1/namespaces/{namespace}/machines/{name}/statusGET: read status of the specified MachinePATCH: partially update status of the specified MachinePUT: replace status of the specified Machine
/apis/cluster.x-k8s.io/v1beta1/namespaces/{namespace}/machines
- HTTP 方法
DELETE- 描述
- delete collection of Machine
- HTTP 响应
- HTTP 方法
GET- 描述
- list objects of kind Machine
- HTTP 响应
- HTTP 方法
POST- 描述
- create a new Machine
- 查询参数
- 请求体参数
- HTTP 响应
/apis/cluster.x-k8s.io/v1beta1/namespaces/{namespace}/machines/{name}
- HTTP 方法
DELETE- 描述
- delete the specified Machine
- 查询参数
- HTTP 响应
- HTTP 方法
GET- 描述
- read the specified Machine
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update the specified Machine
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace the specified Machine
- 查询参数
- 请求体参数
- HTTP 响应
/apis/cluster.x-k8s.io/v1beta1/namespaces/{namespace}/machines/{name}/status
- HTTP 方法
GET- 描述
- read status of the specified Machine
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update status of the specified Machine
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace status of the specified Machine
- 查询参数
- 请求体参数
- HTTP 响应