MachineHealthCheck [cluster.x-k8s.io/v1beta1]
- Description
- MachineHealthCheck is the Schema for the machinehealthchecks API.
- Type
object
Specification
.spec
- Description
- spec is the specification of machine health check policy
- Type
object- Required
clusterNameselector
.spec.remediationTemplate
- Description
- 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.
- Type
object
.spec.selector
- Description
- selector is a label selector to match machines whose health will be exercised
- Type
object
.spec.selector.matchExpressions
- Description
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- Type
array
.spec.selector.matchExpressions[]
- Description
- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- Type
object- Required
keyoperator
.spec.selector.matchExpressions[].values
- Description
- 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.
- Type
array
.spec.selector.matchExpressions[].values[]
- Type
string
.spec.selector.matchLabels
- Description
- 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.
- Type
object
.spec.unhealthyConditions
- Description
- 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.
- Type
array
.spec.unhealthyConditions[]
- Description
- 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.
- Type
object- Required
statustimeouttype
.status
- Description
- status is the most recently observed status of MachineHealthCheck resource
- Type
object
.status.conditions
- Description
- conditions defines current service state of the MachineHealthCheck.
- Type
array
.status.conditions[]
- Description
- Condition defines an observation of a Cluster API resource operational state.
- Type
object- Required
lastTransitionTimestatustype
.status.targets
- Description
- targets shows the current list of machines the machine health check is watching
- Type
array
.status.targets[]
- Type
string
.status.v1beta2
- Description
- v1beta2 groups all the fields that will be added or modified in MachineHealthCheck's status with the V1Beta2 version.
- Type
object
.status.v1beta2.conditions
- Description
- conditions represents the observations of a MachineHealthCheck's current state. Known condition types are RemediationAllowed, Paused.
- Type
array
.status.v1beta2.conditions[]
- Description
- Condition contains details for one aspect of the current state of this API Resource.
- Type
object- Required
lastTransitionTimemessagereasonstatustype
API Endpoints
The following API endpoints are available:
/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 method
DELETE- Description
- delete collection of MachineHealthCheck
- HTTP responses
- HTTP method
GET- Description
- list objects of kind MachineHealthCheck
- HTTP responses
- HTTP method
POST- Description
- create a new MachineHealthCheck
- Query parameters
- Body parameters
- HTTP responses
/apis/cluster.x-k8s.io/v1beta1/namespaces/{namespace}/machinehealthchecks/{name}
- HTTP method
DELETE- Description
- delete the specified MachineHealthCheck
- Query parameters
- HTTP responses
- HTTP method
GET- Description
- read the specified MachineHealthCheck
- HTTP responses
- HTTP method
PATCH- Description
- partially update the specified MachineHealthCheck
- Query parameters
- HTTP responses
- HTTP method
PUT- Description
- replace the specified MachineHealthCheck
- Query parameters
- Body parameters
- HTTP responses
/apis/cluster.x-k8s.io/v1beta1/namespaces/{namespace}/machinehealthchecks/{name}/status
- HTTP method
GET- Description
- read status of the specified MachineHealthCheck
- HTTP responses
- HTTP method
PATCH- Description
- partially update status of the specified MachineHealthCheck
- Query parameters
- HTTP responses
- HTTP method
PUT- Description
- replace status of the specified MachineHealthCheck
- Query parameters
- Body parameters
- HTTP responses