Skip to content

Commit 5793ba7

Browse files
committed
OSDOCS-7985: Adding warning about scaling to 0
1 parent 1af2641 commit 5793ba7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

modules/dr-hosted-cluster-within-aws-region-delete.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ Ensure that the `kubeconfig` file of the destination management cluster is place
2121

2222
. Scale the `deployment` and `statefulset` objects by entering these commands:
2323
+
24+
[IMPORTANT]
25+
====
26+
Do not scale the stateful set if the value of its `spec.persistentVolumeClaimRetentionPolicy.whenScaled` field is set to `Delete`, because this could lead to a loss of data.
27+
28+
As a workaround, update the value of the `spec.persistentVolumeClaimRetentionPolicy.whenScaled` field to `Retain`. Ensure that no controllers exist that reconcile the stateful set and would return the value back to `Delete`, which could lead to a loss of data.
29+
====
30+
+
2431
[source,terminal]
2532
----
2633
# Just in case

0 commit comments

Comments
 (0)