From 1de42f381e8857617022dca714a3efdd15f3d949 Mon Sep 17 00:00:00 2001 From: kosabogi Date: Tue, 8 Apr 2025 08:29:01 +0200 Subject: [PATCH 1/9] Adds Delete Elastic Cloud on Kubernetes section --- .../uninstall/delete-a-cloud-deployment.md | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/deploy-manage/uninstall/delete-a-cloud-deployment.md b/deploy-manage/uninstall/delete-a-cloud-deployment.md index 9c0851425..2946ddc7e 100644 --- a/deploy-manage/uninstall/delete-a-cloud-deployment.md +++ b/deploy-manage/uninstall/delete-a-cloud-deployment.md @@ -14,7 +14,7 @@ applies_to: serverless: --- -# Delete an Enterprise or Hosted deployment or a Serverless project +# Delete a cloud deployment This page provides instructions for deleting several types of cloud deployments, and outlines key considerations before proceeding. @@ -90,3 +90,31 @@ To restore a terminated deployment, Narrow the list by name, ID, or choose from several other filters. To further define the list, use a combination of filters. 3. In the **Deployment Management** section, select **Restore** and then acknowledge the confirmation message. +## {{eck}} [elastic-cloud-kubernetes] + +To delete a deployment managed by {{eck}}, you need to remove the corresponding custom resource from your Kubernetes cluster. This action deletes all {{es}} and {{kib}} pods and their associated persistent data. + +To delete an Elasticsearch deployment created with {{eck}}: + +1. Run the following command to delete the {{es}} custom resource: + + ```shell + kubectl delete elasticsearch + ``` + For example: + + ```shell + kubectl delete elasticsearch test-deployment + ``` + + This deletes the custom resource and all associated infrastructure, such as {{es}} nodes, services, and persistent data volumes. + +2. If you also deployed {{kib}} or other stack components, delete those resources as well: + + ```shell + kubectl delete kibana + ``` + +:::{{tip}} +To fully uninstall {{eck}} from your cluster including all managed resources and the ECK operator, refer to the [Uninstall Elastic Cloud on Kubernetes](/deploy-manage/uninstall/uninstall-elastic-cloud-on-kubernetes.md) guide. +::: From 538cd1c16d0195b7c672d43d1118869b8e5ad69d Mon Sep 17 00:00:00 2001 From: kosabogi <105062005+kosabogi@users.noreply.github.com> Date: Wed, 9 Apr 2025 10:48:08 +0200 Subject: [PATCH 2/9] Update deploy-manage/uninstall/delete-a-cloud-deployment.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Edu González de la Herrán <25320357+eedugon@users.noreply.github.com> --- deploy-manage/uninstall/delete-a-cloud-deployment.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/deploy-manage/uninstall/delete-a-cloud-deployment.md b/deploy-manage/uninstall/delete-a-cloud-deployment.md index 2946ddc7e..1e8ed3d68 100644 --- a/deploy-manage/uninstall/delete-a-cloud-deployment.md +++ b/deploy-manage/uninstall/delete-a-cloud-deployment.md @@ -92,8 +92,7 @@ To restore a terminated deployment, ## {{eck}} [elastic-cloud-kubernetes] -To delete a deployment managed by {{eck}}, you need to remove the corresponding custom resource from your Kubernetes cluster. This action deletes all {{es}} and {{kib}} pods and their associated persistent data. - +To delete a deployment managed by {{eck}}, remove the corresponding `{{es}}`, `{{kib}}`, and any other related custom resources from your Kubernetes cluster. This action deletes all associated pods and their persistent data. To delete an Elasticsearch deployment created with {{eck}}: 1. Run the following command to delete the {{es}} custom resource: From 85e42cdb429f353ec61b5d1437c1882c1902cef6 Mon Sep 17 00:00:00 2001 From: kosabogi <105062005+kosabogi@users.noreply.github.com> Date: Wed, 9 Apr 2025 10:48:51 +0200 Subject: [PATCH 3/9] Update deploy-manage/uninstall/delete-a-cloud-deployment.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Edu González de la Herrán <25320357+eedugon@users.noreply.github.com> --- deploy-manage/uninstall/delete-a-cloud-deployment.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy-manage/uninstall/delete-a-cloud-deployment.md b/deploy-manage/uninstall/delete-a-cloud-deployment.md index 1e8ed3d68..d08a133e5 100644 --- a/deploy-manage/uninstall/delete-a-cloud-deployment.md +++ b/deploy-manage/uninstall/delete-a-cloud-deployment.md @@ -98,7 +98,7 @@ To delete an Elasticsearch deployment created with {{eck}}: 1. Run the following command to delete the {{es}} custom resource: ```shell - kubectl delete elasticsearch + kubectl delete elasticsearch ``` For example: From 03459d303598d61f40b1500784ab3677917a309c Mon Sep 17 00:00:00 2001 From: kosabogi <105062005+kosabogi@users.noreply.github.com> Date: Thu, 10 Apr 2025 10:54:19 +0200 Subject: [PATCH 4/9] Update deploy-manage/uninstall/delete-a-cloud-deployment.md Co-authored-by: shainaraskas <58563081+shainaraskas@users.noreply.github.com> --- deploy-manage/uninstall/delete-a-cloud-deployment.md | 1 + 1 file changed, 1 insertion(+) diff --git a/deploy-manage/uninstall/delete-a-cloud-deployment.md b/deploy-manage/uninstall/delete-a-cloud-deployment.md index d08a133e5..abdc64c42 100644 --- a/deploy-manage/uninstall/delete-a-cloud-deployment.md +++ b/deploy-manage/uninstall/delete-a-cloud-deployment.md @@ -11,6 +11,7 @@ applies_to: deployment: ess: ece: + eck: serverless: --- From 4fdfcf7ad213c8c83e816d2d320b570fa329c387 Mon Sep 17 00:00:00 2001 From: kosabogi <105062005+kosabogi@users.noreply.github.com> Date: Thu, 10 Apr 2025 10:54:46 +0200 Subject: [PATCH 5/9] Update deploy-manage/uninstall/delete-a-cloud-deployment.md Co-authored-by: shainaraskas <58563081+shainaraskas@users.noreply.github.com> --- deploy-manage/uninstall/delete-a-cloud-deployment.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy-manage/uninstall/delete-a-cloud-deployment.md b/deploy-manage/uninstall/delete-a-cloud-deployment.md index abdc64c42..c00dc7a87 100644 --- a/deploy-manage/uninstall/delete-a-cloud-deployment.md +++ b/deploy-manage/uninstall/delete-a-cloud-deployment.md @@ -116,5 +116,5 @@ To delete an Elasticsearch deployment created with {{eck}}: ``` :::{{tip}} -To fully uninstall {{eck}} from your cluster including all managed resources and the ECK operator, refer to the [Uninstall Elastic Cloud on Kubernetes](/deploy-manage/uninstall/uninstall-elastic-cloud-on-kubernetes.md) guide. +To fully uninstall {{eck}} from your cluster including all managed resources and the ECK operator, refer to the [](/deploy-manage/uninstall/uninstall-elastic-cloud-on-kubernetes.md) guide. ::: From 26cb5d3e499af2b3238532ad771433cc5e344bbc Mon Sep 17 00:00:00 2001 From: kosabogi Date: Thu, 10 Apr 2025 11:20:37 +0200 Subject: [PATCH 6/9] Resolves comments, adds Warning about volume claim deletion --- deploy-manage/uninstall/delete-a-cloud-deployment.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/deploy-manage/uninstall/delete-a-cloud-deployment.md b/deploy-manage/uninstall/delete-a-cloud-deployment.md index c00dc7a87..609faea7b 100644 --- a/deploy-manage/uninstall/delete-a-cloud-deployment.md +++ b/deploy-manage/uninstall/delete-a-cloud-deployment.md @@ -6,7 +6,7 @@ mapped_pages: - https://www.elastic.co/guide/en/cloud/current/ec-delete-deployment.html - https://www.elastic.co/guide/en/cloud-enterprise/current/ece-restore-deployment.html - https://www.elastic.co/guide/en/cloud/current/ec-billing-stop.html -navigation_title: "Delete a cloud deployment" +navigation_title: "Delete an orchestrated deployment" applies_to: deployment: ess: @@ -15,7 +15,7 @@ applies_to: serverless: --- -# Delete a cloud deployment +# Delete an orchestrated deployment This page provides instructions for deleting several types of cloud deployments, and outlines key considerations before proceeding. @@ -93,7 +93,7 @@ To restore a terminated deployment, ## {{eck}} [elastic-cloud-kubernetes] -To delete a deployment managed by {{eck}}, remove the corresponding `{{es}}`, `{{kib}}`, and any other related custom resources from your Kubernetes cluster. This action deletes all associated pods and their persistent data. +To delete a deployment managed by {{eck}}, remove the corresponding {{es}}, {{kib}}, and any other related custom resources from your Kubernetes cluster. This action deletes all associated pods and their persistent data. To delete an Elasticsearch deployment created with {{eck}}: 1. Run the following command to delete the {{es}} custom resource: @@ -106,8 +106,10 @@ To delete an Elasticsearch deployment created with {{eck}}: ```shell kubectl delete elasticsearch test-deployment ``` + :::{warning} + This deletes the custom resource and all associated infrastructure, such as {{es}} nodes, services, and persistent data volumes. By default, this also deletes the data stored in those volumes, but you can [configure](/deploy-manage/deploy/cloud-on-k8s/volume-claim-templates.md#controlling-volume-claim-deletion-k8s_controlling_volume_claim_deletion) the `volumeClaimDeletePolicy` field in the {{es}} resource manifest to retain the volumes if you plan to recreate the cluster later. + ::: - This deletes the custom resource and all associated infrastructure, such as {{es}} nodes, services, and persistent data volumes. 2. If you also deployed {{kib}} or other stack components, delete those resources as well: From 79b6c46839c60b7842039c2866e0da8ae3e2596f Mon Sep 17 00:00:00 2001 From: kosabogi Date: Thu, 10 Apr 2025 11:24:34 +0200 Subject: [PATCH 7/9] Fixes link --- deploy-manage/uninstall/delete-a-cloud-deployment.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy-manage/uninstall/delete-a-cloud-deployment.md b/deploy-manage/uninstall/delete-a-cloud-deployment.md index 609faea7b..cc348d65c 100644 --- a/deploy-manage/uninstall/delete-a-cloud-deployment.md +++ b/deploy-manage/uninstall/delete-a-cloud-deployment.md @@ -107,7 +107,7 @@ To delete an Elasticsearch deployment created with {{eck}}: kubectl delete elasticsearch test-deployment ``` :::{warning} - This deletes the custom resource and all associated infrastructure, such as {{es}} nodes, services, and persistent data volumes. By default, this also deletes the data stored in those volumes, but you can [configure](/deploy-manage/deploy/cloud-on-k8s/volume-claim-templates.md#controlling-volume-claim-deletion-k8s_controlling_volume_claim_deletion) the `volumeClaimDeletePolicy` field in the {{es}} resource manifest to retain the volumes if you plan to recreate the cluster later. + This deletes the custom resource and all associated infrastructure, such as {{es}} nodes, services, and persistent data volumes. By default, this also deletes the data stored in those volumes, but you can [configure](/deploy-manage/deploy/cloud-on-k8s/volume-claim-templates.md#k8s_controlling_volume_claim_deletion) the `volumeClaimDeletePolicy` field in the {{es}} resource manifest to retain the volumes if you plan to recreate the cluster later. ::: From dc2c8a0b29c827f228b05469d8c38317b2832df1 Mon Sep 17 00:00:00 2001 From: kosabogi <105062005+kosabogi@users.noreply.github.com> Date: Thu, 10 Apr 2025 14:46:31 +0200 Subject: [PATCH 8/9] Update deploy-manage/uninstall/delete-a-cloud-deployment.md Co-authored-by: shainaraskas <58563081+shainaraskas@users.noreply.github.com> --- deploy-manage/uninstall/delete-a-cloud-deployment.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy-manage/uninstall/delete-a-cloud-deployment.md b/deploy-manage/uninstall/delete-a-cloud-deployment.md index cc348d65c..590da49a0 100644 --- a/deploy-manage/uninstall/delete-a-cloud-deployment.md +++ b/deploy-manage/uninstall/delete-a-cloud-deployment.md @@ -94,7 +94,8 @@ To restore a terminated deployment, ## {{eck}} [elastic-cloud-kubernetes] To delete a deployment managed by {{eck}}, remove the corresponding {{es}}, {{kib}}, and any other related custom resources from your Kubernetes cluster. This action deletes all associated pods and their persistent data. -To delete an Elasticsearch deployment created with {{eck}}: + +To delete an {{es}} cluster created with {{eck}}: 1. Run the following command to delete the {{es}} custom resource: From aff83141ae50733bc45dd754f66e6e27a79f949e Mon Sep 17 00:00:00 2001 From: kosabogi <105062005+kosabogi@users.noreply.github.com> Date: Mon, 14 Apr 2025 09:31:28 +0200 Subject: [PATCH 9/9] Update deploy-manage/uninstall/delete-a-cloud-deployment.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Edu González de la Herrán <25320357+eedugon@users.noreply.github.com> --- deploy-manage/uninstall/delete-a-cloud-deployment.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy-manage/uninstall/delete-a-cloud-deployment.md b/deploy-manage/uninstall/delete-a-cloud-deployment.md index 3f956ba3d..f71aff280 100644 --- a/deploy-manage/uninstall/delete-a-cloud-deployment.md +++ b/deploy-manage/uninstall/delete-a-cloud-deployment.md @@ -108,7 +108,7 @@ To delete an {{es}} cluster created with {{eck}}: kubectl delete elasticsearch test-deployment ``` :::{warning} - This deletes the custom resource and all associated infrastructure, such as {{es}} nodes, services, and persistent data volumes. By default, this also deletes the data stored in those volumes, but you can [configure](/deploy-manage/deploy/cloud-on-k8s/volume-claim-templates.md#k8s_controlling_volume_claim_deletion) the `volumeClaimDeletePolicy` field in the {{es}} resource manifest to retain the volumes if you plan to recreate the cluster later. + This deletes the custom resource and all associated resources, such as {{es}} nodes, services, and persistent data volumes. By default, this also deletes the data stored in those volumes, but you can [configure](/deploy-manage/deploy/cloud-on-k8s/volume-claim-templates.md#k8s_controlling_volume_claim_deletion) the `volumeClaimDeletePolicy` field in the {{es}} resource manifest to retain the volumes if you plan to recreate the cluster later. :::