Pastikan tidak ada pod yang tersisa di namespace Apigee:
kubectl get pods -n apigeekubectl get pods -n apigee-systemkubectl get pods -n cert-manager
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-08-18 UTC."],[[["\u003cp\u003eThis document guides users through the process of decommissioning a region in an Apigee hybrid multi-region environment, ensuring no live traffic is routed to the region being removed.\u003c/p\u003e\n"],["\u003cp\u003eThe process involves setting the Kubernetes context to the region targeted for decommissioning using \u003ccode\u003ekubectl config use-context\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe Apigee instance is then removed from the designated region, either by individually deleting components with Helm commands or with the \u003ccode\u003eapigeectl delete\u003c/code\u003e command.\u003c/p\u003e\n"],["\u003cp\u003eVerification steps are essential, including checking for remaining pods in Apigee namespaces and ensuring the decommissioned data center is removed from the Cassandra ring using \u003ccode\u003ekubectl exec\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe document covers version 1.11 of the Apigee hybrid documentation.\u003c/p\u003e\n"]]],[],null,["# Decommission a hybrid region\n\n| You are currently viewing version 1.11 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 ### Helm\n\n Delete the components one at a time. \n\n ```\n helm -n apigee delete datastore\n ``` \n\n ```\n helm -n apigee delete telemetry\n ``` \n\n ```\n helm -n apigee delete ingress-manager\n ``` \n\n ```\n helm -n apigee delete redis\n ``` \n\n ```\n helm -n apigee delete ORG_NAME\n ``` \n\n ```\n helm -n apigee delete ENV_NAME\n ``` \n\n ```\n helm -n apigee delete ENV_GROUP_NAME\n ``` \n\n ```\n helm -n apigee-system delete operator\n ```\n\n ### `apigeectl`\n\n ```\n $APIGEECTL_HOME/apigeectl delete --all -f OVERRIDES_FILE.yaml\n ```\n3. Verify there are no pods remaining in the Apigee namespaces: \n\n kubectl get pods -n apigee\n kubectl get pods -n apigee-system\n kubectl get pods -n cert-manager\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 ```\n| **Note:** If the entries of the deleted datacenter are still present in the Cassandra **nodetool** output, see [Stale references to deleted secondary region pods in Cassandra cluster](../../api-platform/troubleshoot/playbooks/cassandra/cassandra-pods-not-starting-secondary-region#stale-ref-deleted-region)."]]