From 2c4719b2e7a4ee46f490f10464b155fa9bf38dcf Mon Sep 17 00:00:00 2001 From: xenolinux Date: Tue, 17 Sep 2024 17:55:40 +0530 Subject: [PATCH] OSDOCS#11960: Migrating destroying hosted clusters on IBM Power --- _topic_maps/_topic_map.yml | 2 ++ .../hcp-destroy/hcp-destroy-ibmpower.adoc | 11 +++++++++ modules/destroy-hc-ibmpower-cli.adoc | 24 +++++++++++++++++++ modules/destroy-hc-ibmz-cli.adoc | 2 +- 4 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 hosted_control_planes/hcp-destroy/hcp-destroy-ibmpower.adoc create mode 100644 modules/destroy-hc-ibmpower-cli.adoc diff --git a/_topic_maps/_topic_map.yml b/_topic_maps/_topic_map.yml index bf8e3e461d..f5997e50d0 100644 --- a/_topic_maps/_topic_map.yml +++ b/_topic_maps/_topic_map.yml @@ -2487,6 +2487,8 @@ Topics: File: hcp-destroy-virt - Name: Destroying a hosted cluster on IBM Z File: hcp-destroy-ibmz + - Name: Destroying a hosted cluster on IBM Power + File: hcp-destroy-ibmpower - Name: Destroying a hosted cluster on non-bare metal agent machines File: hcp-destroy-non-bm - Name: Manually importing a hosted cluster diff --git a/hosted_control_planes/hcp-destroy/hcp-destroy-ibmpower.adoc b/hosted_control_planes/hcp-destroy/hcp-destroy-ibmpower.adoc new file mode 100644 index 0000000000..4078d1bff5 --- /dev/null +++ b/hosted_control_planes/hcp-destroy/hcp-destroy-ibmpower.adoc @@ -0,0 +1,11 @@ +:_mod-docs-content-type: ASSEMBLY +[id="hcp-destroy-ibmpower"] +include::_attributes/common-attributes.adoc[] += Destroying a hosted cluster on {ibm-power-title} +:context: hcp-destroy-ibmpower + +toc::[] + +You can destroy a hosted cluster on {ibm-power-title} by using the command-line interface (CLI). + +include::modules/destroy-hc-ibmpower-cli.adoc[leveloffset=+1] diff --git a/modules/destroy-hc-ibmpower-cli.adoc b/modules/destroy-hc-ibmpower-cli.adoc new file mode 100644 index 0000000000..0947f121ba --- /dev/null +++ b/modules/destroy-hc-ibmpower-cli.adoc @@ -0,0 +1,24 @@ +// Module included in the following assemblies: +// +// * hosted_control_planes/hcp-destroy/hcp-destroy-ibmpower.adoc + +:_mod-docs-content-type: PROCEDURE +[id="destroy-hc-ibmpower-cli_{context}"] += Destroying a hosted cluster on {ibm-power-title} by using the CLI + +To destroy a hosted cluster on {ibm-power-title}, you can use the hcp command-line interface (CLI). + +.Procedure + +* Delete the hosted cluster by running the following command: ++ +[source,terminal] +---- +$ hcp destroy cluster agent + --name= \// <1> + --namespace= \// <2> + --cluster-grace-period <3> +---- +<1> Replace `` with the name of your hosted cluster. +<2> Replace `` with the name of your hosted cluster namespace. +<3> Specifies the duration to destroy the hosted cluster completely, for example, `20m0s`. diff --git a/modules/destroy-hc-ibmz-cli.adoc b/modules/destroy-hc-ibmz-cli.adoc index 3d9a8fe645..02a524c32e 100644 --- a/modules/destroy-hc-ibmz-cli.adoc +++ b/modules/destroy-hc-ibmz-cli.adoc @@ -6,7 +6,7 @@ [id="destroy-hc-ibmz-cli_{context}"] = Destroying a hosted cluster on x86 bare metal with {ibm-z-title} compute nodes -You can use the command-line interface (CLI) to destroy a hosted cluster on `x86` bare metal with {ibm-z-title} compute nodes and its managed cluster. +To destroy a hosted cluster and its managed cluster on `x86` bare metal with {ibm-z-title} compute nodes, you can use the command-line interface (CLI). .Procedure