Skip to content

Commit d679872

Browse files
committed
split info about deleting kots
1 parent c1d6735 commit d679872

File tree

3 files changed

+57
-52
lines changed

3 files changed

+57
-52
lines changed
Lines changed: 23 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
# Deleting the Admin Console and Removing Applications
22

3-
This topic describes how to remove installed applications and delete the Replicated Admin Console from a cluster. See the following sections:
4-
* [Remove an Application](#remove-an-application)
5-
* [Delete the Admin Console](#delete-the-admin-console)
3+
This topic describes how to remove installed applications and delete the Replicated Admin Console from a cluster.
64

75
## Remove an Application
86

7+
This section describes how to remove an application instance that was installed with KOTS in an existing cluster.
8+
9+
### About Removing an Installed Application Instance
10+
911
The Replicated KOTS CLI `kots remove` command removes the reference to an installed application from the Admin Console. When you use `kots remove`, the Admin Console no longer manages the application because the record of that application’s installation is removed. This means that you can no longer manage the application through the Admin Console or through the KOTS CLI.
1012

1113
By default, `kots remove` does not delete any of the installed Kubernetes resources for the application from the cluster. To remove both the reference to an application from the Admin Console and remove any resources for the application from the cluster, you can run `kots remove` with the `--undeploy` flag.
1214

1315
It can be useful to remove only the reference to an application from the Admin Console if you want to reinstall the application, but you do not want to recreate the namespace or other Kubernetes resources. For example, if you installed an application using an incorrect license file and need to reinstall with the correct license.
16+
17+
### Procedure
1418

1519
To remove an application:
1620

@@ -46,43 +50,39 @@ To remove an application:
4650
4751
## Delete the Admin Console
4852
49-
When you install an application with the Admin Console, Replicated KOTS also creates the Kubernetes resources for the Admin Console itself on the cluster. The Admin Console includes Deployments and Services, Secrets, and other resources such as StatefulSets and PersistentVolumeClaims.
50-
51-
By default, KOTS also creates Kubernetes ClusterRole and ClusterRoleBinding resources that grant permissions to the Admin Console on the cluster level. These `kotsadm-role` and `kotsadm-rolebinding` resources are managed outside of the namespace where the Admin Console is installed. Alternatively, when the Admin Console is installed with namespace-scoped access, KOTS creates Role and RoleBinding resources inside the namespace where the Admin Console is installed.
52-
53-
If you need to completely delete the Admin Console and an application installation, such as during testing, follow one of these procedures depending on the type of cluster where you installed the Admin Console:
54-
55-
* **Existing cluster**: Manually delete the Admin Console Kubernetes objects and resources from the cluster. See [Delete from an Existing Cluster](#existing) below.
56-
* **Embedded cluster**: Remove Kubernetes from the VM where the cluster is installed. See [Delete from an Embedded Cluster](#embedded) below.
53+
This section describes how to remove the KOTS Admin Console from an existing cluster.
5754
58-
:::note
59-
These procedures do not uninstall the KOTS CLI. To uninstall the KOTS CLI, see [Uninstall](https://docs.replicated.com/reference/kots-cli-getting-started#uninstall) in _Installing the KOTS CLI_.
60-
:::
55+
### About Deleting the Admin Console from an Existing Cluster
6156
62-
### Delete from an Existing Cluster {#existing}
57+
When you install an application, KOTS creates the Kubernetes resources for the Admin Console itself on the cluster. The Admin Console includes Deployments and Services, Secrets, and other resources such as StatefulSets and PersistentVolumeClaims.
6358
64-
In existing cluster installations, if the Admin Console is not installed in the `default` namespace, then you delete the Admin Console by deleting the namespace where it is installed.
59+
By default, KOTS also creates Kubernetes ClusterRole and ClusterRoleBinding resources that grant permissions to the Admin Console on the cluster level. These `kotsadm-role` and `kotsadm-rolebinding` resources are managed outside of the namespace where the Admin Console is installed. Alternatively, when the Admin Console is installed with namespace-scoped access, KOTS creates Role and RoleBinding resources inside the namespace where the Admin Console is installed.
6560
66-
If you installed the Admin Console with namespace-scoped access, then the Admin Console Role and RoleBinding RBAC resources are also deleted when you delete the namespace. Alternatively, if you installed with the default cluster-scoped access, then you manually delete the Admin Console ClusterRole and ClusterRoleBindings resources from the cluster.
61+
In existing cluster installations, if the Admin Console is not installed in the `default` namespace, then you delete the Admin Console by deleting the namespace where it is installed.
6762
68-
The application vendor can require, support, or not support namespace-scoped installations. For more information, see [supportMinimalRBACPrivileges](/reference/custom-resource-application#supportminimalrbacprivileges) and [requireMinimalRBACPrivileges](/reference/custom-resource-application#requireminimalrbacprivileges) in _Application_.
63+
If you installed the Admin Console with namespace-scoped access, then the Admin Console Role and RoleBinding RBAC resources are also deleted when you delete the namespace. Alternatively, if you installed with the default cluster-scoped access, then you manually delete the Admin Console ClusterRole and ClusterRoleBindings resources from the cluster. For more information, see [supportMinimalRBACPrivileges](/reference/custom-resource-application#supportminimalrbacprivileges) and [requireMinimalRBACPrivileges](/reference/custom-resource-application#requireminimalrbacprivileges) in _Application_.
6964
7065
For more information about installing with cluster- or namespace-scoped access, see [RBAC Requirements](/enterprise/installing-general-requirements#rbac-requirements) in _Installation Requirements_.
7166
72-
To delete the Admin Console from an existing cluster:
67+
### Procedure
68+
69+
To completely delete the Admin Console from an existing cluster:
7370
7471
1. Run the following command to delete the namespace where the Admin Console is installed:
7572
76-
:::note
77-
* You cannot delete the `default` namespace.
78-
* This command deletes everything inside the specified namespace, including the Admin Console Role and RoleBinding resources if you installed with namespace-scoped access.
73+
:::important
74+
This command deletes everything inside the specified namespace, including the Admin Console Role and RoleBinding resources if you installed with namespace-scoped access.
7975
:::
8076
8177
```
8278
kubectl delete ns NAMESPACE
8379
```
8480
Replace `NAMESPACE` with the name of the namespace where the Admin Console is installed.
8581
82+
:::note
83+
You cannot delete the `default` namespace.
84+
:::
85+
8686
1. (Cluster-scoped Access Only) If you installed the Admin Console with the default cluster-scoped access, run the following commands to delete the Admin Console ClusterRole and ClusterRoleBinding from the cluster:
8787
8888
```
@@ -93,28 +93,4 @@ To delete the Admin Console from an existing cluster:
9393
kubectl delete clusterrolebinding kotsadm-rolebinding
9494
```
9595
96-
### Delete from an Embedded Cluster {#embedded}
97-
98-
If you installed on a cluster created by Replicated kURL, KOTS installs the Admin Console in the `default` namespace. Kubernetes does not allow the `default` namespace to be deleted.
99-
100-
To delete the Admin Console from an embedded cluster, use the kURL `tasks.sh` `reset` command to remove Kubernetes from the system.
101-
102-
:::important
103-
The `reset` command is intended to be used only on development servers. It has the potential to leave your machine in an unrecoverable state. It is not recommended unless you are able to discard this server and provision a new one.
104-
:::
105-
106-
Instead of using the `reset` command, you can also discard your current VM (if you are using one) and recreate the VM with a new OS to reinstall the Admin Console and an application.
107-
108-
For more information about the `reset` command, see [Resetting a Node](https://kurl.sh/docs/install-with-kurl/managing-nodes#reset-a-node) in the kURL documentation.
109-
110-
To delete the Admin Console from an embedded cluster:
111-
112-
1. Run the following command to remove Kubernetes from the system:
113-
114-
```
115-
curl -sSL https://k8s.kurl.sh/latest/tasks.sh | sudo bash -s reset
116-
```
117-
118-
1. Follow the instructions in the output of the command to manually remove any files that the `reset` command does not remove.
119-
120-
If the `reset` command is unsuccessful, discard your current VM, and recreate the VM with a new OS to reinstall the Admin Console and an application.
96+
1. (Optional) To uninstall the KOTS CLI, see [Uninstall](https://docs.replicated.com/reference/kots-cli-getting-started#uninstall) in _Installing the KOTS CLI_.

docs/vendor/kurl-reset.mdx

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Reset a kURL Cluster
2+
3+
This topic describes how to use the kURL `reset` command to reset a kURL cluster.
4+
5+
## Overview
6+
7+
If you need to reset a kURL installation, such as when you are testing releases with kURL, You can use the kURL `tasks.sh` `reset` command to remove Kubernetes from the system.
8+
9+
Alterntaively, you can discard your current VM (if you are using one) and recreate the VM with a new OS to reinstall with kURL.
10+
11+
:::important
12+
The `reset` command is intended to be used only on development servers. It has the potential to leave your machine in an unrecoverable state. It is not recommended unless you are able to discard this server and provision a new one.
13+
:::
14+
15+
For more information about the `reset` command, see [Resetting a Node](https://kurl.sh/docs/install-with-kurl/managing-nodes#reset-a-node) in the kURL documentation.
16+
17+
To reset a kURL installation:
18+
19+
1. Access the machine where you installed with kURL.
20+
21+
1. Run the following command to remove Kubernetes from the system:
22+
23+
```
24+
curl -sSL https://k8s.kurl.sh/latest/tasks.sh | sudo bash -s reset
25+
```
26+
27+
1. Follow the instructions in the output of the command to manually remove any files that the `reset` command does not remove.
28+
29+
If the `reset` command is unsuccessful, discard your current VM, and recreate the VM with a new OS to reinstall the Admin Console and an application.

sidebars.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -256,11 +256,11 @@ const sidebars = {
256256
'intro-kots',
257257
{
258258
type: 'category',
259-
label: 'Packaging KOTS Releases',
259+
label: 'Configuring KOTS',
260260
items: [
261261
{
262262
type: 'category',
263-
label: 'Distributing Helm Charts with KOTS',
263+
label: 'Configuring the HelmChart Custom Resource',
264264
items: [
265265
'vendor/helm-native-about',
266266
'vendor/helm-native-v2-using',
@@ -271,7 +271,7 @@ const sidebars = {
271271
},
272272
{
273273
type: 'category',
274-
label: 'Admin Console and Download Portal Customization',
274+
label: 'Customizing the Admin Console and Download Portal',
275275
items: [
276276
'vendor/admin-console-customize-app-icon',
277277
'vendor/admin-console-adding-buttons-links',
@@ -281,7 +281,7 @@ const sidebars = {
281281
},
282282
{
283283
type: 'category',
284-
label: 'Admin Console Config Screen',
284+
label: 'Configuring the Admin Console Config Screen',
285285
items: [
286286
'vendor/config-screen-about',
287287
'vendor/admin-console-customize-config-screen',
@@ -493,6 +493,7 @@ const sidebars = {
493493
],
494494
},
495495
'enterprise/monitoring-external-prometheus',
496+
'vendor/kurl-reset',
496497
],
497498
},
498499
{
@@ -609,7 +610,6 @@ const sidebars = {
609610
'vendor/ci-overview',
610611
'vendor/ci-workflows',
611612
'vendor/ci-workflows-github-actions',
612-
'vendor/tutorial-ci-cd-integration',
613613
],
614614
},
615615

0 commit comments

Comments
 (0)