Skip to content

Commit abe8193

Browse files
committed
Update docs with dos and don'ts
1 parent 2665c49 commit abe8193

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

docs/OCP_CI_Tutorials/Cluster_Cleanup/Manual_Cluster_Cleanup_Guide.md

+32
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,45 @@
44

55
- [Introduction](#introduction)
66
- [AWS](#aws)
7+
- [General cleanup dos and don'ts!](#general-cleanup-dos-and-donts)
8+
- [VPCs](#vpcs)
9+
- [Hosted zones](#route-53-hosted-zones)
10+
- [S3 Buckets](#s3-buckets)
11+
- [Cleanup resources by cluster identified](#cleanup-resources-by-cluster-identified)
712

813
## Introduction
914

1015
Sometimes, a scenario can fail before a cluster is fully deprovisioned leaving stale resources in a cloud-provider (at the time of writing this, we only use AWS). If that occurs, the Interop team is responsible for cleaning that cluster up in the cloud-provider account to avoid any unwanted cost. This document will serve as a guide to how to manually cleanup a cluster in the cloud-provider platforms we use.
1116

1217
## AWS
1318

19+
### General cleanup dos and don'ts!
20+
21+
This section provides additional cleanup instructions for each resource type
22+
23+
It is generally safe to delete any resource whose name has one of the following prefixes:
24+
25+
* `ci-op-*`
26+
* `ci-rosa-*`
27+
* `mtc-*` (The MTC scenario has a unique prefix since it's deployed by the ocp-cli-installer)
28+
29+
#### VPCs
30+
31+
* In any AWS region: **_Don't_** delete any VPC whose `Default VPC` value is `Yes`
32+
33+
![default-vpc.png](img/default-vpc.png)
34+
35+
#### Route 53: Hosted zones
36+
37+
* **_Do_** ONLY delete A records safely inside available hosted zones
38+
* **_Don't_** delete any hosted zone which doesn't have the interop testing prefix mentioned above (there may be reserved resources for internal use)
39+
40+
#### S3 Buckets
41+
42+
* Similarly, **_don't_** delete any S3 buckets which doesn't have the interop testing prefix mentioned above (there may be reserved resources for internal use)
43+
44+
### Cleanup resources by cluster identified
45+
1446
In order to cleanup an OCP cluster provisioned through OpenShift CI in AWS, follow these steps:
1547

1648
1. Find the "name" of the cluster. Every cluster provisioned using OpenShift CI should have a unique name associated with it. This is how we know which AWS resources came from which Prow job.
Loading

0 commit comments

Comments
 (0)