Skip to content

Commit 8d02dbe

Browse files
committed
Add --cascade=orphan flag info
1 parent 4411ab2 commit 8d02dbe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/current/v25.2/migrate-cockroachdb-kubernetes-operator.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ The {{ site.data.products.public-operator }} and the {{ site.data.products.cockr
105105
kubectl delete crdbcluster $CRDBCLUSTER --cascade=orphan
106106
~~~
107107

108+
The `--cascade=orphan` flag tells Kubernetes not to delete the dependent resources (StatefulSets, Services, PVCs, etc.) created by the `CrdbCluster` custom resource. This ensures that only the parent custom resource is deleted, while child resources are left intact in the cluster. This allows the CockroachDB cluster to continue running as a StatefulSet until the migration is complete.
109+
108110
- Delete {{ site.data.products.public-operator }} resources and custom resource definition:
109111
{% include_cached copy-clipboard.html %}
110112
~~~ shell

0 commit comments

Comments
 (0)