Hapus instance Apigee dalam konteks yang baru saja Anda pilih dengan perintah apigeectl:
apigeectl delete --all -f overrides.yaml
Periksa pod Kubernetes saat ini:
kubectl get pods -n apigee
kubectl get pods -n apigee-system
Tetapkan konteks ke region lain yang ada dan pastikan datacenter cassandra dihapus
dari ring yang ada. Output tidak boleh menampilkan detail pusat data yang dihapus.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-05 UTC."],[[["\u003cp\u003eThis document guides you through decommissioning a region in a multi-region Apigee hybrid environment.\u003c/p\u003e\n"],["\u003cp\u003eBefore decommissioning, ensure no live traffic is directed to the region you intend to remove.\u003c/p\u003e\n"],["\u003cp\u003eUse \u003ccode\u003ekubectl\u003c/code\u003e to set the Kubernetes context to the region you wish to decommission.\u003c/p\u003e\n"],["\u003cp\u003eExecute the \u003ccode\u003eapigeectl delete --all\u003c/code\u003e command to remove the Apigee instance within the selected context.\u003c/p\u003e\n"],["\u003cp\u003eVerify the Cassandra datacenter of the decommissioned region is removed from the other regions using \u003ccode\u003enodetool\u003c/code\u003e status.\u003c/p\u003e\n"]]],[],null,["# Decommission a hybrid region\n\n| You are currently viewing version 1.7 of the Apigee hybrid documentation. **This version is end of life.** You should upgrade to a newer version. For more information, see [Supported versions](/apigee/docs/hybrid/supported-platforms#supported-versions).\n\n\nThis guide explains the procedure to decommission a region in a multi region environment.\n| Please ensure there is no live traffic going to the region you plan to delete.\n\nDecommission a hybrid region\n----------------------------\n\n1. Set the kubernetes contexts to the region that needs to be decommissioned.\n List your current contexts to see the context name for each cluster:\n\n ```\n kubectl config get-contexts\n ```\n\n\n Set the context to the cluster and region you want to decommission: \n\n ```\n kubectl config use-context CONTEXT_NAME\n ```\n\n\n Where \u003cvar translate=\"no\"\u003eCONTEXT_NAME\u003c/var\u003e is the context name for the cluster and region.\n\n\n For example: \n\n kubectl config get-contexts\n CURRENT NAME CLUSTER AUTHINFO NAMESPACE\n gke_example-org-1_us-central1_example-cluster-1 gke_example-org-1_us-central1_example-cluster-1 gke_example-org-1_us-central1_example-cluster-1 apigee\n * gke_example-org-1_us-central1_example-cluster-2 gke_example-org-1_us-central1_example-cluster-2 gke_example-org-1_us-central1_example-cluster-2 apigee\n gke_example-org-1_us-west1_example-cluster-2 gke_example-org-1_us-west1_example-cluster-2 gke_example-org-1_us-west1_example-cluster-2 apigee\n\n kubectl config use-context gke_example-org-1_us-west1_example-cluster-2\n\n2. Delete the Apigee instance in the context you just selected with the `apigeectl` command: \n\n ```\n apigeectl delete --all -f overrides.yaml\n ```\n3. Check the current Kubernetes pods: \n\n kubectl get pods -n apigee\n kubectl get pods -n apigee-system\n\n4. Set the context to other existing regions and make sure the cassandra datacenter is removed from the existing ring. The output should not show the removed data center details. \n\n ```\n kubectl exec apigee-cassandra-default-0 -n apigee -- nodetool -u JMX_USER -pw JMX_PASSWORD status\n ```"]]