3
3
// *nodes/nodes/eco-poison-pill-operator.adoc
4
4
5
5
:_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
8
8
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.
10
10
11
11
.Prerequisites
12
12
@@ -15,30 +15,30 @@ Use the following procedure to configure the machine health checks to use the Po
15
15
16
16
.Procedure
17
17
18
- . Create a `PoisonPillRemediationTemplate ` CR:
18
+ . Create a `SelfNodeRemediationTemplate ` CR:
19
19
20
- .. Define the `PoisonPillRemediationTemplate ` CR:
20
+ .. Define the `SelfNodeRemediationTemplate ` CR:
21
21
+
22
22
[source,yaml]
23
23
----
24
- apiVersion: poison-pill .medik8s.io/v1alpha1
25
- kind: PoisonPillRemediationTemplate
24
+ apiVersion: self-node-remediation .medik8s.io/v1alpha1
25
+ kind: SelfNodeRemediationTemplate
26
26
metadata:
27
27
namespace: openshift-machine-api
28
- name: poisonpillremediationtemplate -sample
28
+ name: selfnoderemediationtemplate -sample
29
29
spec:
30
30
template:
31
31
spec: {}
32
32
----
33
33
34
- .. To create the `PoisonPillRemediationTemplate ` CR, run the following command:
34
+ .. To create the `SelfNodeRemediationTemplate ` CR, run the following command:
35
35
+
36
36
[source,terminal]
37
37
----
38
- $ oc create -f <ppr -name>.yaml
38
+ $ oc create -f <snr -name>.yaml
39
39
----
40
40
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:
42
42
43
43
.. Define or update the `MachineHealthCheck` CR:
44
44
+
@@ -56,19 +56,20 @@ spec:
56
56
machine.openshift.io/cluster-api-machine-type: "worker"
57
57
unhealthyConditions:
58
58
- type: "Ready"
59
- timeout: "300s"
59
+ timeout: "300s"
60
60
status: "False"
61
61
- type: "Ready"
62
- timeout: "300s"
62
+ timeout: "300s"
63
63
status: "Unknown"
64
- maxUnhealthy: "40%"
65
- nodeStartupTimeout: "10m"
64
+ maxUnhealthy: "40%"
65
+ nodeStartupTimeout: "10m"
66
66
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
70
70
----
71
- <1> Specify the details for the remediation template.
71
+ <1> Specifies the details for the remediation template.
72
+
72
73
+
73
74
.. To create a `MachineHealthCheck` CR, run the following command:
74
75
+
0 commit comments