Google consiglia di creare indirizzi IP statici per i due gateway di ingresso esposti al di fuori del cluster:
Gateway
Descrizione
apigee-mart-istio-ingressgateway
Il gateway di ingresso Istio utilizzato dal servizio MART per comunicare con il piano di gestione.
istio-ingressgateway
Il gateway di ingresso Istio utilizzato per inviare e ricevere traffico proxy API dai bilanciatori del carico del gestore dei messaggi.
Per questi gateway viene eseguito il provisioning con i bilanciatori del carico.
Per impostazione predefinita, gli indirizzi IP di questi bilanciatori del carico sono temporanei. Ciรฒ significa che ogni volta che uno dei servizi viene eliminato e ripristinato, riceve un nuovo IP del bilanciatore del carico.
Questo argomento spiega come definire indirizzi IP statici per Apigee Hybrid di cui รจ stato eseguito il deployment su GKE
e Anthos GKE (GKE on-prem).
Configurare gli indirizzi IP statici su GKE
Segui le istruzioni riportate in
Prenotazione di un indirizzo IP esterno statico per creare
due indirizzi IP statici. Puoi assegnare agli indirizzi i nomi che preferisci, ad esempio:
apigee-hybrid-mart e apigee-hybrid-runtime. Al termine, avrai due numeri IP da utilizzare nella configurazione del cluster nel passaggio successivo. Ad esempio:
35.225.131.189 e 34.66.75.196
Nel file delle sostituzioni, aggiungi le seguenti configurazioni loadBalancerIP al
componente di ingresso:
Sintassi
La configurazione ha la seguente struttura e sintassi.
I valori in red, bold italics sono
valori delle proprietร che devi fornire:
Applica il file delle sostituzioni al cluster. Poichรฉ รจ necessario aggiornare solo il componente istio, puoi utilizzare il flag -c istio. Ad esempio:
Configurare gli indirizzi IP statici per Anthos GKE
Consulta la documentazione di Anthos GKE e crea due indirizzi IP statici seguendo le istruzioni specifiche di Anthos GKE. Al termine, avrai due numeri IP da utilizzare nella configurazione del cluster nel passaggio successivo. Ad esempio:
35.225.131.189 e 34.66.75.196
Apri il file delle sostituzioni.
Aggiungi la seguente configurazione per ingress:
Sintassi
La configurazione ha la seguente struttura e sintassi.
I valori in red, bold italics sono
valori delle proprietร che devi fornire:
Applica il file delle sostituzioni al cluster. Poichรฉ รจ necessario aggiornare solo il componente istio, puoi utilizzare il flag -c istio. Ad esempio:
[[["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-08-21 UTC."],[[["\u003cp\u003eThis documentation is for Apigee hybrid version 1.1, which is end-of-life, and users should upgrade to a newer version.\u003c/p\u003e\n"],["\u003cp\u003eGoogle recommends using static IP addresses for the \u003ccode\u003eapigee-mart-istio-ingressgateway\u003c/code\u003e and \u003ccode\u003eistio-ingressgateway\u003c/code\u003e to prevent IP address changes upon service deletion and restoration.\u003c/p\u003e\n"],["\u003cp\u003eTo configure static IPs on GKE, reserve two static external IP addresses and add their values to the \u003ccode\u003eloadBalancerIP\u003c/code\u003e property in the \u003ccode\u003eingress\u003c/code\u003e component of your overrides file.\u003c/p\u003e\n"],["\u003cp\u003eTo configure static IPs on Anthos GKE, create two static IPs following the Anthos GKE instructions and then add their values to the \u003ccode\u003eloadBalancerIP\u003c/code\u003e property in the \u003ccode\u003eingress\u003c/code\u003e component of your overrides file.\u003c/p\u003e\n"],["\u003cp\u003eAfter updating your overrides file for either GKE or Anthos, apply the changes to your cluster using the \u003ccode\u003e-c istio\u003c/code\u003e flag, as only the \u003ccode\u003eistio\u003c/code\u003e component requires updates.\u003c/p\u003e\n"]]],[],null,["# Configure static IP addresses\n\n| You are currently viewing version 1.1 of the Apigee hybrid documentation. **This version is end of life.** You should upgrade to a newer version. For more information, see [Supported versions](/apigee/docs/hybrid/supported-platforms#supported-versions).\n\n\nGoogle recommends that you create static IP addresses for the two ingress gateways that\nare exposed outside the cluster:\n\nThese gateways are provisioned with [load balancers](https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer).\nBy default, the IP addresses for these load balancers are *ephemeral*. That\nmeans whenever one of the services is deleted and restored, it gets a new load balancer IP.\nThis topic explains how to define static IP addresses for Apigee hybrid deployed on GKE and Anthos GKE (GKE On-Prem).\n\n\u003cbr /\u003e\n\nConfigure static IP addresses on GKE\n------------------------------------\n\n1. Follow the instructions in [Reserving a static external IP address](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-external-ip-address) to create two static IP addresses. You can give the addresses any name you wish, for example: `apigee-hybrid-mart` and `apigee-hybrid-runtime`. When you finish, you will have two IP numbers to use in the cluster configuration in the next step. For example: `35.225.131.189` and `34.66.75.196`\n2. In your overrides file, add the following `loadBalancerIP` configurations to the ingress component: \n\n ### Syntax\n\n The configuration has the following structure and syntax.\n Values in \u003cvar translate=\"no\"\u003ered, bold italics\u003c/var\u003e are\n property values that you must provide: \n\n ```gdscript\n ingress:\n enableAccesslog: true\n runtime:\n loadBalancerIP: runtime_IP\n mart:\n loadBalancerIP: mart_IP\n ```\n\n ### Example\n\n The following example shows the completed configuration with example property values\n added: \n\n ```gdscript\n ingress:\n enableAccesslog: true\n runtime:\n loadBalancerIP: 35.225.131.189\n mart:\n loadBalancerIP: 34.66.75.196\n ```\n3. Apply your overrides file to the cluster. Because only the `istio`\n component needs to be updated, you can use the `-c istio` flag. For example:\n\n $APIGEECTL_HOME/apigeectl init -f my-overrides.yaml -c istio\n\nConfigure static IP addresses for Anthos GKE\n--------------------------------------------\n\n1. Refer to the Anthos GKE documentation and create two static IP addresses by following the Anthos GKE specific instructions. When you finish, you will have two IP numbers to use in the cluster configuration in the next step. For example: `35.225.131.189` and `34.66.75.196`\n2. Open your overrides file.\n3. Add the following configuration for `ingress`: \n\n ### Syntax\n\n The configuration has the following structure and syntax.\n Values in \u003cvar translate=\"no\"\u003ered, bold italics\u003c/var\u003e are\n property values that you must provide: \n\n ```gdscript\n ingress:\n enableAccesslog: true\n runtime:\n loadBalancerIP: runtime_IP\n mart:\n loadBalancerIP: mart_IP\n ```\n\n ### Example\n\n The following example shows the completed configuration with example property values\n added: \n\n ```gdscript\n ingress:\n enableAccesslog: true\n runtime:\n loadBalancerIP: 35.225.131.189\n mart:\n loadBalancerIP: 34.66.75.196\n ```\n4. Save the file.\n5. Apply your overrides file to the cluster. Because only the `istio`\n component needs to be updated, you can use the `-c istio` flag. For example:\n\n $APIGEECTL_HOME/apigeectl init -f my-overrides.yaml -c istio"]]