Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Referensi
Halaman ini menjelaskan resource ekstensi Gateway dan Vendor.
Resource API
Dengan Gateway for Mesh, xRoute biasanya menggunakan Layanan Kubernetes sebagai
parentRef. Jika digunakan
dengan cara ini, Layanan induk menjadi "frontend layanan" yang dapat dipanggil klien
tempat layanan mendapatkan nama DNS (name.namespace.svc.cluster.local) dan alamat IP (ClusterIP) yang dialokasikan secara otomatis. Klien gRPC tanpa proxy
kemudian menggunakan URI saluran untuk mengakses layanan di
Spesifikasi HTTPRoute API, komponen utama Kubernetes Gateway API, menentukan resource untuk merutekan traffic HTTP dalam Kubernetes. Hal ini memungkinkan pengguna menentukan aturan pemilihan rute terperinci untuk traffic HTTP - berdasarkan atribut seperti nama host, jalur, header, dan metode, menentukan cara permintaan diarahkan dalam cluster. HTTPRoute juga dapat dilampirkan ke Gateway, yang berfungsi sebagai
titik entri untuk traffic ke cluster.
Spesifikasi GRPCRoute API adalah bagian dari Kubernetes Gateway API dan menentukan resource untuk merutekan traffic gRPC dalam cluster Kubernetes. Hal ini
memungkinkan pengguna menentukan cara permintaan gRPC dicocokkan dan diarahkan ke layanan
backend berdasarkan kriteria seperti nama host, metode gRPC, dan header. Anda juga dapat
melampirkan GRPCRoutes ke Gateway yang berfungsi sebagai titik entri untuk traffic ke
cluster. Spesifikasi ini memungkinkan kontrol terperinci atas pemilihan rute traffic gRPC, sehingga menjadi alat yang berharga untuk mengelola aplikasi berbasis gRPC di Kubernetes.
Untuk mengetahui informasi selengkapnya, lihat
GRPCRoute.
[[["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,["# Reference\n=========\n\nThis page describes the Gateway and Vendor extension resources.\n\nAPI Resources\n-------------\n\nWith Gateway for Mesh an xRoute typically uses a Kubernetes Service as the\n[`parentRef`](https://gateway-api.sigs.k8s.io/geps/gep-1426/#api). When used\nthis way, the parent Service becomes the \"service frontend\" for the client to\ncall where the service gets an automatically allocated DNS name\n(`name.namespace.svc.cluster.local`) and IP address (`ClusterIP`). A proxyless\ngRPC client then uses the channel URI to access the service at\n\n`xds:///`\u003cvar translate=\"no\"\u003eSERVICE_NAME\u003c/var\u003e`.`\u003cvar translate=\"no\"\u003eNAMESPACE_NAME\u003c/var\u003e`.svc.cluster.local:${PORT}`\n\n### HTTPRoute\n\nThe HTTPRoute API specification, a key component of the Kubernetes Gateway API,\ndefines a resource for routing HTTP traffic within Kubernetes. It allows users\nto specify fine-grained routing rules for HTTP traffic - based on attributes\nlike hostnames, paths, headers, and methods, determine how requests are directed\nwithin the cluster. HTTPRoute can also be attached to Gateways, which act as\nentry points for traffic into the cluster.\n\nFor more information, see [HTTPRoute](https://gateway-api.sigs.k8s.io/api-types/httproute/).\n\n### GRPCRoute\n\nThe GRPCRoute API specification is part of the Kubernetes Gateway API and\ndefines a resource for routing gRPC traffic within a Kubernetes cluster. It\nlets users specify how gRPC requests should be matched and directed to backend\nservices based on criteria like hostnames, gRPC methods, and headers. You can\nalso attach GRPCRoutes to Gateways which act as entry points for traffic into\nthe cluster. This specification enables fine-grained control over gRPC traffic\nrouting, making it a valuable tool for managing gRPC-based applications in\nKubernetes.\n\nFor more information, see\n[GRPCRoute](https://gateway-api.sigs.k8s.io/api-types/grpcroute/)."]]