Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Halaman ini memberikan ringkasan subnet di Google Distributed Cloud (GDC) dengan air gap dan perannya dalam upaya load balancing Anda. Subnet, atau subnetwork, mewakili
subdivisi logis dari jaringan IP. Segmentasi ini meningkatkan efisiensi, keamanan, dan kemudahan pengelolaan jaringan. Untuk mengetahui informasi selengkapnya tentang subnet, lihat
Subnet dan alamat IP di
GDC.
Halaman ini ditujukan untuk developer dalam grup operator aplikasi yang ingin membuat koneksi air-gapped yang aman dan menyeimbangkan beban kerja di seluruh zona. Untuk
mengetahui informasi selengkapnya, lihat Audiens untuk dokumentasi GDC air-gapped.
Subnet global untuk load balancing
Subnet global adalah subnet yang dibuat dalam server API global. Subnet ini diperlukan untuk load balancer eksternal (ELB) global dan load balancer internal (ILB). Subnet global memungkinkan alokasi alamat IP yang dapat diakses di berbagai bagian infrastruktur global, yang mencakup beberapa zona GDC.
Anda menggunakan subnet global untuk menyelesaikan tugas berikut:
Menyediakan CIDR induk untuk alamat IP ILB: Subnet induk global
berjenis Branch dapat dibuat untuk mengelola kumpulan alamat IP
khusus untuk load balancer internal.
Mengalokasikan alamat IP tunggal untuk layanan ILB dan ELB: Subnet leaf global digunakan untuk mencadangkan satu alamat IP Virtual (VIP) untuk ILB atau ELB tertentu.
Aktifkan IP anycast untuk ELB: Untuk ELB, subnet induk global tertentu digunakan untuk mengalokasikan alamat IP anycast, yang penting untuk aksesibilitas eksternal global.
Subnet dan aturan penerusan
Link langsung antara subnet global dan fungsi load balancer dibuat melalui resource aturan penerusan. Aturan penerusan mereferensikan subnet leaf global untuk mendapatkan alamat VIP yang digunakan klien untuk mengakses layanan load balancing.
Berikut adalah contoh yang menunjukkan cara kerja konfigurasi:
Subnet leaf global dibuat dengan nilai prefixLength32, yang menunjukkan bahwa subnet mengalokasikan satu alamat IP.
Alamat IP yang dialokasikan ini, yang diidentifikasi oleh nama subnet leaf, kemudian ditentukan di kolom cidrRef dari resource ForwardingRuleInternal untuk ILB atau resource ForwardingRuleExternal untuk ELB.
Link ini membuat aturan penerusan load balancer menggunakan alamat IP khusus
dan terkelola secara global yang disediakan oleh subnet.
[[["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-04 UTC."],[],[],null,["# About subnets for load balancing\n\nThis page provides an overview of subnets in Google Distributed Cloud (GDC) air-gapped and\ntheir role in your load balancing efforts. A subnet, or subnetwork, represents a\nlogical subdivision of an IP network. This segmentation enhances network\nefficiency, security, and manageability. For more information on subnets, see\n[Subnets and IP addresses in\nGDC](/distributed-cloud/hosted/docs/latest/gdch/platform/pa-user/subnets-overview).\n\nThis page is for developers within the application operator group who want to\nestablish a secure air-gapped connection and balance workloads across zones. For\nmore information, see [Audiences for GDC air-gapped\ndocumentation](/distributed-cloud/hosted/docs/latest/gdch/resources/audiences).\n\nGlobal subnets for load balancing\n---------------------------------\n\nA *global subnet* is a subnet created within the global API server. These\nsubnets are required for global external load balancers (ELB) and internal load\nbalancers (ILB). Global subnets enable the allocation of IP addresses that are\naccessible across different parts of a global infrastructure, spanning multiple\nGDC zones.\n\nYou use global subnets to complete the following tasks:\n\n- **Provide parent CIDRs for ILB IP addresses:** A global parent subnet of type `Branch` can be created to manage a pool of IP addresses specifically for internal load balancers.\n- **Allocate single IP addresses for ILB and ELB services:** Global leaf subnets are used to reserve a single Virtual IP (VIP) address for a specific ILB or ELB.\n- **Enable anycast IPs for ELBs:** For ELBs, a specific global parent subnet is used to allocate anycast IP addresses, which are essential for global external accessibility.\n\nSubnets and forwarding rules\n----------------------------\n\nThe direct link between a global subnet and a load balancer's functionality is\nestablished through the forwarding rule resource. A forwarding rule references a\nglobal leaf subnet to obtain the VIP address that clients use to\naccess the load balancing service.\n\nHere's an example showing how the configuration works:\n\n1. A global leaf subnet is created with a `prefixLength` value of `32`, indicating that the subnet allocates a single IP address.\n2. This allocated IP address, identified by the name of the leaf subnet, is then specified in the `cidrRef` field of either a `ForwardingRuleInternal` resource for ILBs or `ForwardingRuleExternal` resource for ELBs.\n3. This link makes the load balancer's forwarding rule use a dedicated and globally managed IP address provided by the subnet.\n\nWhat's next\n-----------\n\n- [Create a global subnet for internal load balancing](/distributed-cloud/hosted/docs/latest/gdch/platform/pa-user/create-global-subnet-ilb)\n- [Create a global subnet for external load balancing](/distributed-cloud/hosted/docs/latest/gdch/platform/pa-user/create-global-subnet-elb)"]]