Skip to content

Commit 947ba90

Browse files
authored
Merge pull request #56165 from sabrinajess/CNV13359
CNV-13359: VMI to VM
2 parents 69ecae1 + 15467ce commit 947ba90

7 files changed

+37
-39
lines changed

_topic_maps/_topic_map.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3710,7 +3710,7 @@ Topics:
37103710
File: virt-monitor-vmi-migration
37113711
- Name: Diagnosing data volumes using events and conditions
37123712
File: virt-diagnosing-datavolumes-using-events-and-conditions
3713-
- Name: Monitoring virtual machine health
3713+
- Name: Monitoring virtual machine health with health probes
37143714
File: virt-monitoring-vm-health
37153715
- Name: Viewing cluster information
37163716
File: virt-using-dashboard-to-get-cluster-info

modules/virt-about-readiness-liveness-probes.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77

88
= About readiness and liveness probes
99

10-
Use readiness and liveness probes to detect and handle unhealthy virtual machine instances (VMIs). You can include one or more probes in the specification of the VMI to ensure that traffic does not reach a VMI that is not ready for it and that a new instance is created when a VMI becomes unresponsive.
10+
Use readiness and liveness probes to detect and handle unhealthy virtual machines (VMs). You can include one or more probes in the specification of the VM to ensure that traffic does not reach a VM that is not ready for it and that a new VM is created when a VM becomes unresponsive.
1111

12-
A _readiness probe_ determines whether a VMI is ready to accept service requests. If the probe fails, the VMI is removed from the list of available endpoints until the VMI is ready.
12+
A _readiness probe_ determines whether a VM is ready to accept service requests. If the probe fails, the VM is removed from the list of available endpoints until the VM is ready.
1313

14-
A _liveness probe_ determines whether a VMI is responsive. If the probe fails, the VMI is deleted and a new instance is created to restore responsiveness.
14+
A _liveness probe_ determines whether a VM is responsive. If the probe fails, the VM is deleted and a new VM is created to restore responsiveness.
1515

16-
You can configure readiness and liveness probes by setting the `spec.readinessProbe` and the `spec.livenessProbe` fields of the `VirtualMachineInstance` object. These fields support the following tests:
16+
You can configure readiness and liveness probes by setting the `spec.readinessProbe` and the `spec.livenessProbe` fields of the `VirtualMachine` object. These fields support the following tests:
1717

18-
HTTP GET:: The probe determines the health of the VMI by using a web hook. The test is successful if the HTTP response code is between 200 and 399. You can use an HTTP GET test with applications that return HTTP status codes when they are completely initialized.
18+
HTTP GET:: The probe determines the health of the VM by using a web hook. The test is successful if the HTTP response code is between 200 and 399. You can use an HTTP GET test with applications that return HTTP status codes when they are completely initialized.
1919

20-
TCP socket:: The probe attempts to open a socket to the VMI. The VMI is only considered healthy if the probe can establish a connection. You can use a TCP socket test with applications that do not start listening until initialization is complete.
20+
TCP socket:: The probe attempts to open a socket to the VM. The VM is only considered healthy if the probe can establish a connection. You can use a TCP socket test with applications that do not start listening until initialization is complete.
2121

2222
Guest agent ping:: The probe uses the `guest-ping` command to determine if the QEMU guest agent is running on the virtual machine.

modules/virt-define-guest-agent-ping-probe.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
= Defining a guest agent ping probe
99

10-
Define a guest agent ping probe by setting the `spec.readinessProbe.guestAgentPing` field of the virtual machine instance (VMI) configuration.
10+
Define a guest agent ping probe by setting the `spec.readinessProbe.guestAgentPing` field of the virtual machine (VM) configuration.
1111

1212
:FeatureName: The guest agent ping probe
1313
include::snippets/technology-preview.adoc[]
@@ -18,7 +18,7 @@ include::snippets/technology-preview.adoc[]
1818

1919
.Procedure
2020

21-
. Include details of the guest agent ping probe in the VMI configuration file. For example:
21+
. Include details of the guest agent ping probe in the VM configuration file. For example:
2222
+
2323

2424
.Sample guest agent ping probe
@@ -35,14 +35,14 @@ spec:
3535
successThreshold: 3 <6>
3636
# ...
3737
----
38-
<1> The guest agent ping probe to connect to the VMI.
39-
<2> Optional: The time, in seconds, after the VMI starts before the guest agent probe is initiated.
38+
<1> The guest agent ping probe to connect to the VM.
39+
<2> Optional: The time, in seconds, after the VM starts before the guest agent probe is initiated.
4040
<3> Optional: The delay, in seconds, between performing probes. The default delay is 10 seconds. This value must be greater than `timeoutSeconds`.
41-
<4> Optional: The number of seconds of inactivity after which the probe times out and the VMI is assumed to have failed. The default value is 1. This value must be lower than `periodSeconds`.
41+
<4> Optional: The number of seconds of inactivity after which the probe times out and the VM is assumed to have failed. The default value is 1. This value must be lower than `periodSeconds`.
4242
<5> Optional: The number of times that the probe is allowed to fail. The default is 3. After the specified number of attempts, the pod is marked `Unready`.
4343
<6> Optional: The number of times that the probe must report success, after a failure, to be considered successful. The default is 1.
4444

45-
. Create the VMI by running the following command:
45+
. Create the VM by running the following command:
4646
+
4747
[source,terminal]
4848
----

modules/virt-define-http-liveness-probe.adoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77

88
= Defining an HTTP liveness probe
99

10-
Define an HTTP liveness probe by setting the `spec.livenessProbe.httpGet` field of the virtual machine instance (VMI) configuration. You can define both HTTP and TCP tests for liveness probes in the same way as readiness probes. This procedure configures a sample liveness probe with an HTTP GET test.
10+
Define an HTTP liveness probe by setting the `spec.livenessProbe.httpGet` field of the virtual machine (VM) configuration. You can define both HTTP and TCP tests for liveness probes in the same way as readiness probes. This procedure configures a sample liveness probe with an HTTP GET test.
1111

1212

1313
.Procedure
1414

15-
. Include details of the HTTP liveness probe in the VMI configuration file.
15+
. Include details of the HTTP liveness probe in the VM configuration file.
1616
+
1717

1818
.Sample liveness probe with an HTTP GET test
@@ -32,14 +32,14 @@ spec:
3232
timeoutSeconds: 10 <6>
3333
# ...
3434
----
35-
<1> The time, in seconds, after the VMI starts before the liveness probe is initiated.
35+
<1> The time, in seconds, after the VM starts before the liveness probe is initiated.
3636
<2> The delay, in seconds, between performing probes. The default delay is 10 seconds. This value must be greater than `timeoutSeconds`.
37-
<3> The HTTP GET request to perform to connect to the VMI.
38-
<4> The port of the VMI that the probe queries. In the above example, the probe queries port 1500. The VMI installs and runs a minimal HTTP server on port 1500 via cloud-init.
39-
<5> The path to access on the HTTP server. In the above example, if the handler for the server's `/healthz` path returns a success code, the VMI is considered to be healthy. If the handler returns a failure code, the VMI is deleted and a new instance is created.
40-
<6> The number of seconds of inactivity after which the probe times out and the VMI is assumed to have failed. The default value is 1. This value must be lower than `periodSeconds`.
37+
<3> The HTTP GET request to perform to connect to the VM.
38+
<4> The port of the VM that the probe queries. In the above example, the probe queries port 1500. The VM installs and runs a minimal HTTP server on port 1500 via cloud-init.
39+
<5> The path to access on the HTTP server. In the above example, if the handler for the server's `/healthz` path returns a success code, the VM is considered to be healthy. If the handler returns a failure code, the VM is deleted and a new VM is created.
40+
<6> The number of seconds of inactivity after which the probe times out and the VM is assumed to have failed. The default value is 1. This value must be lower than `periodSeconds`.
4141

42-
. Create the VMI by running the following command:
42+
. Create the VM by running the following command:
4343
+
4444
[source,terminal]
4545
----

modules/virt-define-http-readiness-probe.adoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77

88
= Defining an HTTP readiness probe
99

10-
Define an HTTP readiness probe by setting the `spec.readinessProbe.httpGet` field of the virtual machine instance (VMI) configuration.
10+
Define an HTTP readiness probe by setting the `spec.readinessProbe.httpGet` field of the virtual machine (VM) configuration.
1111

1212

1313
.Procedure
14-
. Include details of the readiness probe in the VMI configuration file.
14+
. Include details of the readiness probe in the VM configuration file.
1515
+
1616

1717
.Sample readiness probe with an HTTP GET test
@@ -33,16 +33,16 @@ spec:
3333
successThreshold: 3 <8>
3434
# ...
3535
----
36-
<1> The HTTP GET request to perform to connect to the VMI.
37-
<2> The port of the VMI that the probe queries. In the above example, the probe queries port 1500.
38-
<3> The path to access on the HTTP server. In the above example, if the handler for the server’s /healthz path returns a success code, the VMI is considered to be healthy. If the handler returns a failure code, the VMI is removed from the list of available endpoints.
39-
<4> The time, in seconds, after the VMI starts before the readiness probe is initiated.
36+
<1> The HTTP GET request to perform to connect to the VM.
37+
<2> The port of the VM that the probe queries. In the above example, the probe queries port 1500.
38+
<3> The path to access on the HTTP server. In the above example, if the handler for the server’s /healthz path returns a success code, the VM is considered to be healthy. If the handler returns a failure code, the VM is removed from the list of available endpoints.
39+
<4> The time, in seconds, after the VM starts before the readiness probe is initiated.
4040
<5> The delay, in seconds, between performing probes. The default delay is 10 seconds. This value must be greater than `timeoutSeconds`.
41-
<6> The number of seconds of inactivity after which the probe times out and the VMI is assumed to have failed. The default value is 1. This value must be lower than `periodSeconds`.
41+
<6> The number of seconds of inactivity after which the probe times out and the VM is assumed to have failed. The default value is 1. This value must be lower than `periodSeconds`.
4242
<7> The number of times that the probe is allowed to fail. The default is 3. After the specified number of attempts, the pod is marked `Unready`.
4343
<8> The number of times that the probe must report success, after a failure, to be considered successful. The default is 1.
4444

45-
. Create the VMI by running the following command:
45+
. Create the VM by running the following command:
4646
+
4747
[source,terminal]
4848
----

modules/virt-define-tcp-readiness-probe.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77

88
= Defining a TCP readiness probe
99

10-
Define a TCP readiness probe by setting the `spec.readinessProbe.tcpSocket` field of the virtual machine instance (VMI) configuration.
10+
Define a TCP readiness probe by setting the `spec.readinessProbe.tcpSocket` field of the virtual machine (VM) configuration.
1111

1212

1313
.Procedure
1414

15-
. Include details of the TCP readiness probe in the VMI configuration file.
15+
. Include details of the TCP readiness probe in the VM configuration file.
1616
+
1717

1818
.Sample readiness probe with a TCP socket test
@@ -28,13 +28,13 @@ spec:
2828
timeoutSeconds: 10 <5>
2929
...
3030
----
31-
<1> The time, in seconds, after the VMI starts before the readiness probe is initiated.
31+
<1> The time, in seconds, after the VM starts before the readiness probe is initiated.
3232
<2> The delay, in seconds, between performing probes. The default delay is 10 seconds. This value must be greater than `timeoutSeconds`.
3333
<3> The TCP action to perform.
34-
<4> The port of the VMI that the probe queries.
35-
<5> The number of seconds of inactivity after which the probe times out and the VMI is assumed to have failed. The default value is 1. This value must be lower than `periodSeconds`.
34+
<4> The port of the VM that the probe queries.
35+
<5> The number of seconds of inactivity after which the probe times out and the VM is assumed to have failed. The default value is 1. This value must be lower than `periodSeconds`.
3636

37-
. Create the VMI by running the following command:
37+
. Create the VM by running the following command:
3838
+
3939
[source,terminal]
4040
----

virt/support/virt-monitoring-vm-health.adoc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
:_content-type: ASSEMBLY
22
[id="virt-monitoring-vm-health"]
3-
= Monitoring virtual machine health
3+
= Monitoring virtual machine health with health probes
44
include::_attributes/common-attributes.adoc[]
55
:context: virt-monitoring-vm-health
66

77
toc::[]
88

9-
A virtual machine instance (VMI) can become unhealthy due to transient issues such as connectivity loss, deadlocks, or problems with external dependencies. A health check periodically performs diagnostics on a VMI by using any combination of the readiness and liveness probes.
9+
A virtual machine (VM) can become unhealthy due to transient issues such as connectivity loss, deadlocks, or problems with external dependencies. A health check periodically performs diagnostics on a VM by using any combination of the readiness and liveness probes.
1010

1111
include::modules/virt-about-readiness-liveness-probes.adoc[leveloffset=+1]
1212

@@ -18,8 +18,6 @@ include::modules/virt-define-http-liveness-probe.adoc[leveloffset=+1]
1818

1919
include::modules/virt-define-guest-agent-ping-probe.adoc[leveloffset=+1]
2020

21-
include::modules/virt-template-vm-probe-config.adoc[leveloffset=+1]
22-
2321

2422
[id="additional-resources_monitoring-vm-health"]
2523
[role="_additional-resources"]

0 commit comments

Comments
 (0)