Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Riferimento
Questa pagina descrive le risorse di estensione Gateway e fornitore.
Risorse API
Con Gateway for Mesh, una xRoute utilizza in genere un servizio Kubernetes come
parentRef. Se utilizzato
in questo modo, il servizio principale diventa il "frontend del servizio" che il client deve
chiamare, dove il servizio riceve un nome DNS (name.namespace.svc.cluster.local) e un indirizzo IP (ClusterIP) allocati automaticamente. Un client gRPC
senza proxy utilizza quindi l'URI del canale per accedere al servizio all'indirizzo
La specifica dell'API HTTPRoute, un componente chiave dell'API Gateway di Kubernetes, definisce una risorsa per il routing del traffico HTTP all'interno di Kubernetes. Consente agli utenti di specificare regole di routing granulari per il traffico HTTP in base ad attributi come nomi host, percorsi, intestazioni e metodi, determinando la modalità di indirizzamento delle richieste all'interno del cluster. HTTPRoute può essere collegato anche ai gateway, che fungono da
punti di ingresso per il traffico nel cluster.
La specifica dell'API GRPCRoute fa parte dell'API Gateway di Kubernetes e definisce una risorsa per il routing del traffico gRPC all'interno di un cluster Kubernetes. Consente agli utenti di specificare come le richieste gRPC devono essere abbinate e indirizzate ai servizi di backend in base a criteri quali nomi host, metodi gRPC e intestazioni. Puoi anche collegare GRPCRoutes ai gateway che fungono da punti di ingresso per il traffico nel cluster. Questa specifica consente un controllo granulare del routing del traffico gRPC, il che la rende uno strumento prezioso per la gestione delle applicazioni basate su gRPC in Kubernetes.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-04 UTC."],[],[],null,["# Reference\n=========\n\n|\n| **Preview**\n|\n|\n| This product or feature is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA products and features are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\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/)."]]