Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#739 - Fixed commands used landingzonev2 readme #740

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions docs/landing-zone-v2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -701,19 +701,21 @@ To reacquire the resources you will need to redeploy a new instance and deploy t
First delete the Rootsync deployment. This will prevent the resources from self-healing.

```shell
kubectl delete root-sync landing-zone -n config-management-system
kubectl delete RootSync root-sync -n config-management-system
```

Now we can delete our KCC resources from the Config Controller instance.
Now we can delete our KCC resources solution by solution in a reverse order of initial solution deployments from the Config Controller instance (assuming either you still have the local bootstrapping solution folders or you have checked those solution folders out from your git repository, and you run the below commands at the parent folder of those solution folders).

```shell
kubectl delete gcp --all
# kpt live destroy <solution_folder_path>
kpt live destroy core-landing-zone
kpt live destroy gatekeeper-policies # Optional
```

Once the resources have been deleted you can delete the config controller instance .
Once all solution's resources have been deleted you can delete the config controller instance.

If you have forgotten the name of the instance you can run `gcloud anthos config controller list` to reveal the instances in your current project.
If you have forgotten the name of the instance you can run `gcloud anthos config controller list` to reveal the instances in your project and then replace the corresponding environment variables from the below command with your actual values. If you are still in the same deploymemt session with the environment variables available, please directly run the below command.

```shell
gcloud anthos config controller delete instance-name --location instance-region
gcloud anthos config controller delete $CLUSTER --location $REGION
```