Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Riferimento
Questa pagina descrive le risorse di gateway ed estensioni del fornitore.
Risorse API
Con Gateway for Mesh, un'xRoute utilizza in genere un servizio Kubernetes come
parentRef. Se utilizzato in questo modo, il servizio principale diventa il "frontend del servizio" da chiamare dal client, 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 Kubernetes Gateway,
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 hostname, percorsi, intestazioni e metodi, per determinare in che modo le richieste vengono indirizzate all'interno del cluster. HTTPRoute può essere collegato anche ai gateway, che fungono da punti di accesso per il traffico all'interno del cluster.
La specifica dell'API GRPCRoute fa parte dell'API Kubernetes Gateway e
definisce una risorsa per il routing del traffico gRPC all'interno di un cluster Kubernetes. Consente agli utenti di specificare in che modo le richieste gRPC devono essere associate e indirizzate ai servizi di backend in base a criteri come nomi host, metodi gRPC e intestazioni. Puoi anche collegare GRPCRoutes ai gateway che fungono da punti di contatto per il traffico nel cluster. Questa specifica consente un controllo granulare del routing del traffico gRPC, rendendolo 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\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/)."]]