Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Penghapusan cluster Kubernetes membatalkan pendaftaran cluster dari instance air-gapped Google Distributed Cloud (GDC) dan menghapus workload, node pool, node bidang kontrol, dan resource terkait.
Sebelum memulai
Untuk mendapatkan izin yang diperlukan untuk menghapus cluster Kubernetes, minta Admin IAM Organisasi Anda untuk memberi Anda peran User Cluster Admin (user-cluster-admin). Peran ini tidak terikat ke namespace.
Menghapus cluster Kubernetes dan resourcenya
Selesaikan langkah-langkah berikut untuk menghapus cluster Kubernetes dan resource-nya:
Konsol
Di menu navigasi, pilih Kubernetes Engine > Clusters.
Di daftar cluster, klik cluster yang ingin Anda hapus.
Klik hapusHapus
Cluster.
Saat diminta, ketikkan frasa konfirmasi yang diberikan, lalu klik Delete untuk menghapus cluster.
API
Untuk menghapus cluster Kubernetes, hapus resource kustom Cluster dari
instance GDC:
KUBERNETES_CLUSTER_NAME: Nama cluster yang akan dihapus.
MANAGEMENT_API_SERVER: Jalur kubeconfig server API zonal tempat cluster Kubernetes dihosting. Jika Anda belum membuat file kubeconfig untuk server API di zona target, lihat Login untuk mengetahui detailnya.
Terraform
Untuk menghapus cluster Kubernetes menggunakan Terraform, jalankan:
[[["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-07-31 UTC."],[[["Deleting a Kubernetes cluster unregisters it from the Google Distributed Cloud (GDC) air-gapped instance and removes all associated workloads, node pools, control plane nodes, and resources."],["You must have the User Cluster Admin role (`user-cluster-admin`) to delete a Kubernetes cluster, which is granted by your Organization IAM Admin."],["Clusters with Kubernetes version 1.26 or greater can be deleted using the GDC console or API, while versions below 1.26 require the `kubectl` CLI."],["Deleting a cluster via the API involves removing the `Cluster` custom resource using a `kubectl` command, and this process can take up to 20 minutes to complete."],["You can also delete a kubernetes cluster using Terraform by executing the `terraform destroy` command targeting the cluster manifest."]]],[]]