Skip to content

Commit 77e8b85

Browse files
committed
TELCODOCS-805: KataConfig Create/Delete Draft
1 parent fcc95c9 commit 77e8b85

7 files changed

+122
-25
lines changed

modules/sandboxed-containers-create-kata-config-resource-cli.adoc

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@ Kata is installed on all worker nodes by default. If you want to install `kata`
2424
* You have access to the cluster as a user with the `cluster-admin` role.
2525
* You have installed the {sandboxed-containers-operator}.
2626
27+
[IMPORTANT]
28+
====
29+
Creating the `KataConfig` CR automatically reboots the worker nodes. The reboot can take from 10 to more than 60 minutes. Factors that impede reboot time are as follows:
30+
31+
* A larger {product-title} deployment with a greater number of worker nodes.
32+
* Activation of the BIOS and Diagnostics utility.
33+
* Deployment on a hard drive rather than an SSD.
34+
* Deployment on physical nodes such as bare metal, rather than on virtual nodes.
35+
* A slow CPU and network.
36+
====
37+
2738
.Procedure
2839

2940
. Create a YAML file with the following manifest:
@@ -60,7 +71,7 @@ spec:
6071
$ oc create -f <file name>.yaml
6172
----
6273

63-
The new `KataConfig` CR is created and begins to install `kata` as a `RuntimeClass` on the worker nodes.
74+
The new `KataConfig` CR is created and begins to install `kata` as a `RuntimeClass` on the worker nodes. Wait for the `kata` installation to complete and the worker nodes to reboot before continuing to the next step.
6475

6576
[IMPORTANT]
6677
====

modules/sandboxed-containers-create-kataconfig-resource-web-console.adoc

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,17 @@
88

99
You must create one `KataConfig` custom resource (CR) to enable installing `kata` as a `RuntimeClass` on your cluster nodes.
1010

11+
[IMPORTANT]
12+
====
13+
Creating the `KataConfig` CR automatically reboots the worker nodes. The reboot can take from 10 to more than 60 minutes. Factors that impede reboot time are as follows:
14+
15+
* A larger {product-title} deployment with a greater number of worker nodes.
16+
* Activation of the BIOS and Diagnostics utility.
17+
* Deployment on a hard drive rather than an SSD.
18+
* Deployment on physical nodes such as bare metal, rather than on virtual nodes.
19+
* A slow CPU and network.
20+
====
21+
1122
.Prerequisites
1223

1324
* You have installed {product-title} {product-version} on your cluster.
@@ -60,7 +71,7 @@ spec:
6071

6172
. Click *Create*.
6273

63-
The new `KataConfig` CR is created and begins to install `kata` as a `RuntimeClass` on the worker nodes.
74+
The new `KataConfig` CR is created and begins to install `kata` as a `RuntimeClass` on the worker nodes. Wait for the `kata` installation to complete and the worker nodes to reboot before continuing to the next step.
6475

6576
[IMPORTANT]
6677
====

modules/sandboxed-containers-deleting-kataconfig-cli.adoc

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,25 @@
66
[id="sandboxed-containers-deleting-kataconfig-cli_{context}"]
77
= Deleting the KataConfig custom resource using the CLI
88

9-
Remove and uninstall the `kata` runtime and all its related resources, such as CRI-O config and `RuntimeClass`, from your cluster. The deletion typically takes between ten to forty minutes, depending on the size of the deployment.
9+
Remove and uninstall the `kata` runtime and all its related resources, such as CRI-O config and `RuntimeClass`, from your cluster.
1010

1111
.Prerequisites
1212

1313
* You have {product-title} {product-version} installed on your cluster.
1414
* You have installed the OpenShift CLI (`oc`).
1515
* You have access to the cluster as a user with the `cluster-admin` role.
1616
17+
[IMPORTANT]
18+
====
19+
Deleting the `KataConfig` CR automatically reboots the worker nodes. The reboot can take from 10 to more than 60 minutes. Factors that impede reboot time are as follows:
20+
21+
* A larger {product-title} deployment with a greater number of worker nodes.
22+
* Activation of the BIOS and Diagnostics utility.
23+
* Deployment on a hard drive rather than an SSD.
24+
* Deployment on physical nodes such as bare metal, rather than on virtual nodes.
25+
* A slow CPU and network.
26+
====
27+
1728
.Procedure
1829

1930
. Delete the `KataConfig` custom resource by running the following command:
@@ -23,15 +34,13 @@ Remove and uninstall the `kata` runtime and all its related resources, such as C
2334
$ oc delete kataconfig <KataConfig_CR_Name>
2435
----
2536

26-
. Delete the `KataConfig` custom resource definition by running the following command:
27-
+
28-
[source,terminal]
29-
----
30-
$ oc delete crd kataconfigs.kataconfiguration.openshift.io
31-
----
32-
3337
The {sandboxed-containers-operator} removes all resources that were initially created to enable the runtime on your cluster.
3438

39+
[IMPORTANT]
40+
====
41+
During deletion, the CLI stops responding until all worker nodes reboot. Wait for the process to complete before performing the verification or continuing to the next procedure.
42+
====
43+
3544
.Verification
3645

3746
* To verify that the `KataConfig` custom resource is deleted, run the following command:
@@ -47,17 +56,3 @@ $ oc get kataconfig <KataConfig_CR_Name>
4756
----
4857
No KataConfig instances exist
4958
----
50-
51-
* To verify that the `KataConfig` custom resource definition is deleted, run the following command:
52-
+
53-
[source,terminal]
54-
----
55-
$ oc get crd kataconfigs.kataconfiguration.openshift.io
56-
----
57-
+
58-
.Example output
59-
+
60-
[source,terminal]
61-
----
62-
Unknown CR KataConfig
63-
----
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
//Module included in the following assemblies:
2+
//
3+
// *uninstalling-sandboxed-containers.adoc
4+
5+
:_content-type: PROCEDURE
6+
[id="sandboxed-containers-deleting-kataconfig-CRD-cli_{context}"]
7+
= Deleting the `KataConfig` custom resource definition using the CLI
8+
9+
The `KataConfig` custom resource definition (CRD) lets you define the `KataConfig` CR. Delete the `KataConfig` CRD from your cluster.
10+
11+
.Prerequisites
12+
13+
* You have installed the OpenShift CLI (`oc`).
14+
* You have access to the cluster as a user with the `cluster-admin` role.
15+
* You have removed the `KataConfig` CR from your cluster.
16+
* You have removed the {sandboxed-containers-operator} from your cluster.
17+
18+
.Procedure
19+
20+
. Delete the `KataConfig` CRD by running the following command:
21+
+
22+
[source,terminal]
23+
----
24+
$ oc delete crd kataconfigs.kataconfiguration.openshift.io
25+
----
26+
27+
.Verification
28+
29+
* To verify that the `KataConfig` CRD is deleted, run the following command:
30+
+
31+
[source,terminal]
32+
----
33+
$ oc get crd kataconfigs.kataconfiguration.openshift.io
34+
----
35+
+
36+
.Example output
37+
+
38+
[source,terminal]
39+
----
40+
Unknown CR KataConfig
41+
----
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
//Module included in the following assemblies:
2+
//
3+
// *uninstalling-sandboxed-containers.adoc
4+
5+
:_content-type: PROCEDURE
6+
[id="sandboxed-containers-deleting-kataconfig-crd-web_{context}"]
7+
= Deleting the `KataConfig` custom resource definition using the web console
8+
9+
The `KataConfig` custom resource definition (CRD) lets you define the `KataConfig` CR. To complete the uninstall process, delete the `KataConfig` CRD from your cluster.
10+
11+
.Prerequisites
12+
13+
* You have {product-title} {product-version} installed on your cluster.
14+
* You have access to the cluster as a user with the `cluster-admin` role.
15+
* You have removed the `KataConfig` CR from your cluster.
16+
* You have removed the {sandboxed-containers-operator} from your cluster.
17+
18+
.Procedure
19+
20+
. From the *Administrator* perspective, navigate to *Administration**CustomResourceDefinitions*.
21+
. Search for `KataConfig` using the *Search by name* field.
22+
. Click the *Options* menu {kebab} for the `KataConfig` CRD, and then select *Delete CustomResourceDefinition*.
23+
. Click *Delete* in the confirmation window.
24+
. Wait for the `KataConfig` CRD to disappear from the list. This can take several minutes.

modules/sandboxed-containers-deleting-kataconfig-web-console.adoc

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,18 @@
66
[id="sandboxed-containers-deleting-kataconfig-web-console_{context}"]
77
= Deleting the KataConfig custom resource using the web console
88

9-
Deleting the `KataConfig` custom resource (CR) removes and uninstalls the `kata` runtime and its related resources from your cluster. The deletion typically takes between ten to forty minutes, depending on the size of the deployment.
9+
Deleting the `KataConfig` custom resource (CR) removes and uninstalls the `kata` runtime and its related resources from your cluster.
10+
11+
[IMPORTANT]
12+
====
13+
Deleting the `KataConfig` CR automatically reboots the worker nodes. The reboot can take from 10 to more than 60 minutes. Factors that impede reboot time are as follows:
14+
15+
* A larger {product-title} deployment with a greater number of worker nodes.
16+
* Activation of the BIOS and Diagnostics utility.
17+
* Deployment on a hard drive rather than an SSD.
18+
* Deployment on physical nodes such as bare metal, rather than on virtual nodes.
19+
* A slow CPU and network.
20+
====
1021

1122
.Prerequisites
1223

@@ -21,3 +32,5 @@ Deleting the `KataConfig` custom resource (CR) removes and uninstalls the `kata`
2132
. Click the Operator to open it, and then select the *KataConfig* tab.
2233
. Click the *Options* menu {kebab} for the `KataConfig` resource, and then select *Delete `KataConfig`*.
2334
. Click *Delete* in the confirmation window.
35+
36+
Wait for the `kata` runtime and resources to uninstall and for the worker nodes to reboot before continuing to the next step.

sandboxed_containers/uninstalling-sandboxed-containers.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ You can retrieve a list of running pods that use `kata` as the `runtimeClass` fr
2020
include::modules/sandboxed-containers-deleting-kataconfig-web-console.adoc[leveloffset=+2]
2121
include::modules/sandboxed-containers-deleting-operator-web-console.adoc[leveloffset=+2]
2222
include::modules/sandboxed-containers-deleting-namespace-web-console.adoc[leveloffset=+2]
23+
include::modules/sandboxed-containers-deleting-kataconfig-crd-web.adoc[leveloffset=+2]
2324

2425
== Uninstalling {sandboxed-containers-first} using the CLI
2526

@@ -29,3 +30,4 @@ Follow the steps below in the order that they are presented.
2930
include::modules/sandboxed-containers-deleting-pods-cli.adoc[leveloffset=+2]
3031
include::modules/sandboxed-containers-deleting-kataconfig-cli.adoc[leveloffset=+2]
3132
include::modules/sandboxed-containers-deleting-operator-cli.adoc[leveloffset=+2]
33+
include::modules/sandboxed-containers-deleting-kataconfig-crd-cli.adoc[leveloffset=+2]

0 commit comments

Comments
 (0)