# 2022-09-06-07:18:25+0000 Clear Network for Project 1372813089190521282

- Cause:
    - https://jira.tidbcloud.com/browse/TCOC-600 for create a new Network based on EKS provider
- Operation:
    1. Switch KUBECONFIG to the Infra API Server
    2. Ensure a Gardener AWS based Network exists
        ```shell
        kubectl --context infra-api-server -n prod-1372813089190521282 get network
        ```
        ```shell
        NAME                 PHASE        SHOOT      BUCKET                                          PROVIDER   AGE
        aws-ap-northeast-1   Hibernated   417fcb12   dbaas-prod-ap-northeast-1-1372813089190521282   aws        20d
        ```
    3. Ensure no other CR exists in this Network
        ```shell
        kubectl --context infra-api-server -n prod-1372813089190521282 get backup,cluster,import,networkpeer,restore,ticdc
        ```
    4. If there are any backups, the shoot needs to be wake up and manually delete the Backup CR
        1. Switch KUBECONFIG to the Gardener API Server
        2. Change `.spec.hibernation.enabled` from `true` to `false` in the `garden-prod` namespace for shoot `417fcb12`
    5. Delete the Network
        ```shell
        kubectl --context infra-api-server -n prod-1372813089190521282 delete network aws-ap-northeast-1
        ```
- Impact:
    - All resources relates to the Network will be deleted.
- Recovery operation:
    - Recreate a Network in the region.
- Time window:
    - 2022-09-06 17:30 ~ 18:00
