Skip to content

Commit fce014d

Browse files
authored
Merge pull request #278457 from troy0820/troy0820/prevent-delete-clusters
[operator-nexus] Add delete to cluster for operator nexus
2 parents c93d046 + 6bcd731 commit fce014d

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

articles/operator-nexus/howto-configure-cluster.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,10 @@ az networkcloud cluster create --name "$CLUSTER_NAME" --location "$LOCATION" \
114114

115115
An alternate way to create a Cluster is with the ARM template editor.
116116

117-
In order to create the cluster this way, you need to provide a template file (cluster.jsonc) and a parameter file (cluster.parameters.jsonc).
117+
In order to create the cluster this way, you need to provide a template file (cluster.jsonc) and a parameter file (cluster.parameters.jsonc).
118118
You can find examples for an 8-Rack 2M16C SKU cluster using these two files:
119119

120-
[cluster.jsonc](./cluster-jsonc-example.md) ,
120+
[cluster.jsonc](./cluster-jsonc-example.md) ,
121121
[cluster.parameters.jsonc](./cluster-parameters-jsonc-example.md)
122122

123123
>[!NOTE]
@@ -270,7 +270,7 @@ az networkcloud cluster show --resource-group "$CLUSTER_RG" \
270270
--name "$CLUSTER_NAME"
271271
```
272272

273-
The Cluster deployment is in-progress when detailedStatus is set to `Deploying` and detailedStatusMessage shows the progress of deployment.
273+
The Cluster deployment is in-progress when detailedStatus is set to `Deploying` and detailedStatusMessage shows the progress of deployment.
274274
Some examples of deployment progress shown in detailedStatusMessage are `Hardware validation is in progress.` (if cluster is deployed with hardware validation) ,`Cluster is bootstrapping.`, `KCP initialization in progress.`, `Management plane deployment in progress.`, `Cluster extension deployment in progress.`, `waiting for "<rack-ids>" to be ready`, etc.
275275

276276
:::image type="content" source="./media/nexus-deploy-kcp-status.png" lightbox="./media/nexus-deploy-kcp-status.png" alt-text="Screenshot of Azure portal showing cluster deploy progress kcp init.":::
@@ -295,3 +295,16 @@ Cluster create Logs can be viewed in the following locations:
295295
2. Azure CLI with `--debug` flag passed on command-line.
296296

297297
:::image type="content" source="./media/nexus-deploy-activity-log.png" lightbox="./media/nexus-deploy-activity-log.png" alt-text="Screenshot of Azure portal showing cluster deploy progress activity log.":::
298+
299+
## Delete a cluster
300+
301+
When deleting a cluster, it will delete the resources in Azure and the cluster that resides in the on-premises environment.
302+
303+
>[!NOTE]
304+
>If there are any tenant resources that exist in the cluster, it will not be deleted until those resources are deleted.
305+
306+
:::image type="content" source="./media/nexus-delete-failure.png" lightbox="./media/nexus-delete-failure.png" alt-text="Screenshot of the portal showing the failure to delete because of tenant resources.":::
307+
308+
```azurecli
309+
az networkcloud cluster delete --name "$CLUSTER_NAME" --resource-group "$CLUSTER_RG"
310+
```
31.6 KB
Loading

0 commit comments

Comments
 (0)