Skip to content

Commit 86e2f46

Browse files
author
Lisa Pettyjohn
committed
OSDOCS-11706# Google Filestore auto delete resources
1 parent 134632a commit 86e2f46

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

modules/persistent-storage-csi-google-cloud-file-delete-instances.adoc

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,20 @@
33
// * storage/container_storage_interface/persistent-storage-csi-google-cloud-file.adoc
44

55
:_mod-docs-content-type: PROCEDURE
6-
[id="persistent-storage-csi-gcp-cloud-file-delete-instances_{context}"]
6+
[id="persistent-storage-csi-google-cloud-file-delete-instances_{context}"]
77
= Destroying clusters and GCP Filestore
88

9-
Typically, if you destroy a cluster, the {product-title} installer deletes all of the cloud resources that belong to that cluster. However, when a cluster is destroyed, Google Compute Platform (GCP) Filestore instances are not automatically deleted, so you must manually delete all persistent volume claims (PVCs) that use the Filestore storage class before destroying the cluster.
9+
Typically, if you destroy a cluster, the {product-title} installer deletes all of the cloud resources that belong to that cluster. However, due to the special nature of the Google Compute Platform (GCP) Filestore resources, the automated cleanup process might not remove all of them in some rare cases.
10+
11+
Therefore, Red Hat recommends that you verify that all cluster-owned Filestore resources are deleted by the uninstall process.
1012

1113
.Procedure
12-
To delete all GCP Filestore PVCs:
14+
To ensure that all GCP Filestore PVCs have been deleted:
1315

14-
. List all PVCs that were created using the storage class `filestore-csi`:
15-
+
16-
[source, command]
17-
----
18-
$ oc get pvc -o json -A | jq -r '.items[] | select(.spec.storageClassName == "filestore-csi")
19-
----
16+
. Access your Google Cloud account using the GUI or CLI.
2017

21-
. Delete all of the PVCs listed by the previous command:
18+
. Search for any resources with the `kubernetes-io-cluster-${CLUSTER_ID}=owned` label.
2219
+
23-
[source, command]
24-
----
25-
$ oc delete <pvc-name> <1>
26-
----
27-
<1> Replace <pvc-name> with the name of any PVC that you need to delete.
20+
Since the cluster ID is unique to the deleted cluster, there should not be any remaining resources with that cluster ID.
21+
22+
. In the unlikely case there are some remaining resources, delete them.

0 commit comments

Comments
 (0)