MachineHealthCheck [cluster.x-k8s.io/v1beta1]
- 描述
- MachineHealthCheck is the Schema for the machinehealthchecks API.
- 类型
object
规格
.spec
- 描述
- spec is the specification of machine health check policy
- 类型
object- 必填
clusterNameselector
.spec.remediationTemplate
- 描述
- remediationTemplate is a reference to a remediation template provided by an infrastructure provider. This field is completely optional, when filled, the MachineHealthCheck controller creates a new object from the template referenced and hands off remediation of the machine to a controller that lives outside of Cluster API.
- 类型
object
.spec.selector
- 描述
- selector is a label selector to match machines whose health will be exercised
- 类型
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.unhealthyConditions
- 描述
- unhealthyConditions contains a list of the conditions that determine whether a node is considered unhealthy. The conditions are combined in a logical OR, i.e. if any of the conditions is met, the node is unhealthy.
- 类型
array
.spec.unhealthyConditions[]
- 描述
- UnhealthyCondition represents a Node condition type and value with a timeout specified as a duration. When the named condition has been in the given status for at least the timeout value, a node is considered unhealthy.
- 类型
object- 必填
statustimeouttype
.status
- 描述
- status is the most recently observed status of MachineHealthCheck resource
- 类型
object
.status.conditions
- 描述
- conditions defines current service state of the MachineHealthCheck.
- 类型
array
.status.conditions[]
- 描述
- Condition defines an observation of a Cluster API resource operational state.
- 类型
object- 必填
lastTransitionTimestatustype
.status.targets
- 描述
- targets shows the current list of machines the machine health check is watching
- 类型
array
.status.targets[]
- 类型
string
.status.v1beta2
- 描述
- v1beta2 groups all the fields that will be added or modified in MachineHealthCheck's status with the V1Beta2 version.
- 类型
object
.status.v1beta2.conditions
- 描述
- conditions represents the observations of a MachineHealthCheck's current state. Known condition types are RemediationAllowed, 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}/machinehealthchecksDELETE: delete collection of MachineHealthCheckGET: list objects of kind MachineHealthCheckPOST: create a new MachineHealthCheck
/apis/cluster.x-k8s.io/v1beta1/namespaces/{namespace}/machinehealthchecks/{name}DELETE: delete the specified MachineHealthCheckGET: read the specified MachineHealthCheckPATCH: partially update the specified MachineHealthCheckPUT: replace the specified MachineHealthCheck
/apis/cluster.x-k8s.io/v1beta1/namespaces/{namespace}/machinehealthchecks/{name}/statusGET: read status of the specified MachineHealthCheckPATCH: partially update status of the specified MachineHealthCheckPUT: replace status of the specified MachineHealthCheck
/apis/cluster.x-k8s.io/v1beta1/namespaces/{namespace}/machinehealthchecks
- HTTP 方法
DELETE- 描述
- delete collection of MachineHealthCheck
- HTTP 响应
- HTTP 方法
GET- 描述
- list objects of kind MachineHealthCheck
- HTTP 响应
- HTTP 方法
POST- 描述
- create a new MachineHealthCheck
- 查询参数
- 请求体参数
- HTTP 响应
/apis/cluster.x-k8s.io/v1beta1/namespaces/{namespace}/machinehealthchecks/{name}
- HTTP 方法
DELETE- 描述
- delete the specified MachineHealthCheck
- 查询参数
- HTTP 响应
- HTTP 方法
GET- 描述
- read the specified MachineHealthCheck
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update the specified MachineHealthCheck
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace the specified MachineHealthCheck
- 查询参数
- 请求体参数
- HTTP 响应
/apis/cluster.x-k8s.io/v1beta1/namespaces/{namespace}/machinehealthchecks/{name}/status
- HTTP 方法
GET- 描述
- read status of the specified MachineHealthCheck
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update status of the specified MachineHealthCheck
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace status of the specified MachineHealthCheck
- 查询参数
- 请求体参数
- HTTP 响应