MachineSet [cluster.x-k8s.io/v1beta1]
- 描述
- MachineSet is the Schema for the machinesets API.
- 类型
object
规格
.spec
- 描述
- spec is the desired state of MachineSet.
- 类型
object- 必填
clusterNameselector
.spec.machineNamingStrategy
- 描述
- machineNamingStrategy allows changing the naming pattern used when creating Machines. Note: InfraMachines & BootstrapConfigs will use the same name as the corresponding Machines.
- 类型
object
.spec.selector
- 描述
- selector is a label query over machines that should match the replica count. Label keys and values that must match in order to be controlled by this MachineSet. It must match the machine template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
- 类型
object
.spec.selector.matchExpressions
- 描述
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- 类型
array
.spec.selector.matchExpressions[]
- 描述
- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.spec.selector.matchExpressions[].values
- 描述
- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
- 类型
array
.spec.selector.matchExpressions[].values[]
- 类型
string
.spec.selector.matchLabels
- 描述
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
- 类型
object
.spec.template
- 描述
- template is the object that describes the machine that will be created if insufficient replicas are detected. Object references to custom resources are treated as templates.
- 类型
object
.spec.template.spec
- 描述
- spec is the specification of the desired behavior of the machine. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
- 类型
object- 必填
bootstrapclusterNameinfrastructureRef
.spec.template.spec.bootstrap
- 描述
- bootstrap is a reference to a local struct which encapsulates fields to configure the Machine’s bootstrapping mechanism.
- 类型
object
.spec.template.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.template.spec.infrastructureRef
- 描述
- infrastructureRef is a required reference to a custom resource offered by an infrastructure provider.
- 类型
object
.spec.template.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.template.spec.readinessGates[]
- 描述
- MachineReadinessGate contains the type of a Machine condition to be used as a readiness gate.
- 类型
object- 必填
conditionType
.spec.template.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.template.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 MachineSet.
- 类型
object
.status.conditions
- 描述
- conditions defines current service state of the MachineSet.
- 类型
array
.status.conditions[]
- 描述
- Condition defines an observation of a Cluster API resource operational state.
- 类型
object- 必填
lastTransitionTimestatustype
.status.v1beta2
- 描述
- v1beta2 groups all the fields that will be added or modified in MachineSet's status with the V1Beta2 version.
- 类型
object
.status.v1beta2.conditions
- 描述
- conditions represents the observations of a MachineSet's current state. Known condition types are MachinesReady, MachinesUpToDate, ScalingUp, ScalingDown, Remediating, Deleting, Paused.
- 类型
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}/machinesetsDELETE: delete collection of MachineSetGET: list objects of kind MachineSetPOST: create a new MachineSet
/apis/cluster.x-k8s.io/v1beta1/namespaces/{namespace}/machinesets/{name}DELETE: delete the specified MachineSetGET: read the specified MachineSetPATCH: partially update the specified MachineSetPUT: replace the specified MachineSet
/apis/cluster.x-k8s.io/v1beta1/namespaces/{namespace}/machinesets/{name}/statusGET: read status of the specified MachineSetPATCH: partially update status of the specified MachineSetPUT: replace status of the specified MachineSet
/apis/cluster.x-k8s.io/v1beta1/namespaces/{namespace}/machinesets/{name}/scaleGET: read scale of the specified MachineSetPATCH: partially update scale of the specified MachineSetPUT: replace scale of the specified MachineSet
/apis/cluster.x-k8s.io/v1beta1/namespaces/{namespace}/machinesets
- HTTP 方法
DELETE- 描述
- delete collection of MachineSet
- HTTP 响应
- HTTP 方法
GET- 描述
- list objects of kind MachineSet
- HTTP 响应
- HTTP 方法
POST- 描述
- create a new MachineSet
- 查询参数
- 请求体参数
- HTTP 响应
/apis/cluster.x-k8s.io/v1beta1/namespaces/{namespace}/machinesets/{name}
- HTTP 方法
DELETE- 描述
- delete the specified MachineSet
- 查询参数
- HTTP 响应
- HTTP 方法
GET- 描述
- read the specified MachineSet
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update the specified MachineSet
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace the specified MachineSet
- 查询参数
- 请求体参数
- HTTP 响应
/apis/cluster.x-k8s.io/v1beta1/namespaces/{namespace}/machinesets/{name}/status
- HTTP 方法
GET- 描述
- read status of the specified MachineSet
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update status of the specified MachineSet
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace status of the specified MachineSet
- 查询参数
- 请求体参数
- HTTP 响应
/apis/cluster.x-k8s.io/v1beta1/namespaces/{namespace}/machinesets/{name}/scale
- HTTP 方法
GET- 描述
- read scale of the specified MachineSet
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update scale of the specified MachineSet
- 查询参数
- HTTP 方法
PUT- 描述
- replace scale of the specified MachineSet
- 查询参数
- 请求体参数