33// *nodes/nodes/eco-poison-pill-operator.adoc
44
55:_content-type: PROCEDURE
6- [id="configuring-machine-health-check-with-poison-pill_ {context} "]
7- = Configuring machine health checks to use the Poison Pill Operator
6+ [id="configuring-machine-health-check-with-self-node-remediation-operator_ {context} "]
7+ = Configuring machine health checks to use the Self Node Remediation Operator
88
9- Use the following procedure to configure the machine health checks to use the Poison Pill Operator as a remediation provider.
9+ Use the following procedure to configure the machine health checks to use the Self Node Remediation Operator as a remediation provider.
1010
1111.Prerequisites
1212
@@ -15,30 +15,30 @@ Use the following procedure to configure the machine health checks to use the Po
1515
1616.Procedure
1717
18- . Create a `PoisonPillRemediationTemplate ` CR:
18+ . Create a `SelfNodeRemediationTemplate ` CR:
1919
20- .. Define the `PoisonPillRemediationTemplate ` CR:
20+ .. Define the `SelfNodeRemediationTemplate ` CR:
2121+
2222[source,yaml]
2323----
24- apiVersion: poison-pill .medik8s.io/v1alpha1
25- kind: PoisonPillRemediationTemplate
24+ apiVersion: self-node-remediation .medik8s.io/v1alpha1
25+ kind: SelfNodeRemediationTemplate
2626metadata:
2727 namespace: openshift-machine-api
28- name: poisonpillremediationtemplate -sample
28+ name: selfnoderemediationtemplate -sample
2929spec:
3030 template:
3131 spec: {}
3232----
3333
34- .. To create the `PoisonPillRemediationTemplate ` CR, run the following command:
34+ .. To create the `SelfNodeRemediationTemplate ` CR, run the following command:
3535+
3636[source,terminal]
3737----
38- $ oc create -f <ppr -name>.yaml
38+ $ oc create -f <snr -name>.yaml
3939----
4040
41- . Create or update the `MachineHealthCheck` CR to point to the `PoisonPillRemediationTemplate ` CR:
41+ . Create or update the `MachineHealthCheck` CR to point to the `SelfNodeRemediationTemplate ` CR:
4242
4343.. Define or update the `MachineHealthCheck` CR:
4444+
@@ -56,19 +56,20 @@ spec:
5656 machine.openshift.io/cluster-api-machine-type: "worker"
5757 unhealthyConditions:
5858 - type: "Ready"
59- timeout: "300s"
59+ timeout: "300s"
6060 status: "False"
6161 - type: "Ready"
62- timeout: "300s"
62+ timeout: "300s"
6363 status: "Unknown"
64- maxUnhealthy: "40%"
65- nodeStartupTimeout: "10m"
64+ maxUnhealthy: "40%"
65+ nodeStartupTimeout: "10m"
6666 remediationTemplate: <1>
67- kind: PoisonPillRemediationTemplate
68- apiVersion: poison-pill .medik8s.io/v1alpha1
69- name: <poison-pill-remediation-template- sample>
67+ kind: SelfNodeRemediationTemplate
68+ apiVersion: self-node-remediation .medik8s.io/v1alpha1
69+ name: selfnoderemediationtemplate- sample
7070----
71- <1> Specify the details for the remediation template.
71+ <1> Specifies the details for the remediation template.
72+
7273+
7374 .. To create a `MachineHealthCheck` CR, run the following command:
7475+
0 commit comments