Expanda as contagens de réplicas de propriedade do Istio para evitar problemas ao reduzir os nós do Istio
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Esta
é a documentação da Apigee e da Apigee híbrida.
Não há documentação equivalente do
Apigee Edge para esse tópico.
Ao remover os pods do Istio, alguns nós podem não ser removidos devido a uma
contagem de réplicas de 1, em que 3 ou mais réplicas são necessárias.
Para evitar isso, é preciso definir a contagem mínima de réplicas de cada
propriedade como no mínimo 3.
Ao fazer backup e drenar nós do Istio, é possível ver alguns erros, como:
kubectl drain` failed to evict and reschedule pods to another node due to PodDisruptionBudget definitions:
===
NAMESPACE NAME MIN AVAILABLE MAX UNAVAILABLE ALLOWED DISRUPTIONS AGE
istio-system istio-ingressgateway 1 N/A 2 5d11h
istio-system istio-pilot 1 N/A 2 5d11h
===
Para istio-ingressgateway e istio-pilot, é possível definir
as propriedades istio.ingressgateway.replicaCountMin e
istio.pilot.replicaCountMin como 3
ou superior. Consulte a
Referência das propriedades de configuração istio.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-08-28 UTC."],[[["\u003cp\u003eThis documentation applies specifically to Apigee hybrid users and does not have an equivalent for Apigee Edge.\u003c/p\u003e\n"],["\u003cp\u003eDraining Istio pods may fail if the replica count is less than 3, therefore a minimum of 3 replicas should be set.\u003c/p\u003e\n"],["\u003cp\u003eErrors during Istio node backup and draining can occur due to \u003ccode\u003ePodDisruptionBudget\u003c/code\u003e definitions.\u003c/p\u003e\n"],["\u003cp\u003eSetting the \u003ccode\u003eistio.ingressgateway.replicaCountMin\u003c/code\u003e and \u003ccode\u003eistio.pilot.replicaCountMin\u003c/code\u003e properties to 3 or higher can resolve issues for \u003ccode\u003eistio-ingressgateway\u003c/code\u003e and \u003ccode\u003eistio-pilot\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eFor other Istio components without a \u003ccode\u003ereplicaCountMin\u003c/code\u003e property, consult the GKE documentation or the Istio documentation for guidance.\u003c/p\u003e\n"]]],[],null,["# Expand Istio property replica counts to avoid problems when draining Istio nodes\n\n*You're viewing **Apigee** and **Apigee hybrid** documentation.\nThere is no equivalent\n[Apigee Edge](https://docs.apigee.com/api-platform/get-started/get-started) documentation for this topic.*\n| **Note:** This document is applicable for Apigee hybrid users only.\n\n\nWhen draining Istio pods some nodes may not drain because they have a replica\ncount of `1`, while `3` or more replicas are required.\nIn order to avoid this, you should set the minimum replica count for each\nproperty to at least `3`.\n\n\nWhen backing up and draining Istio nodes you may see errors like: \n\n```text\nkubectl drain` failed to evict and reschedule pods to another node due to PodDisruptionBudget definitions:\n===\nNAMESPACE NAME MIN AVAILABLE MAX UNAVAILABLE ALLOWED DISRUPTIONS AGE\nistio-system istio-ingressgateway 1 N/A 2 5d11h\nistio-system istio-pilot 1 N/A 2 5d11h\n===\n```\n\n\nFor `istio-ingressgateway` and `istio-pilot` you can set\nthe `istio.ingressgateway.replicaCountMin` and\n`istio.pilot.replicaCountMin` properties to **`3`**\nor higher. See the\n[Configuration properties reference, `istio`](/apigee/docs/hybrid/latest/config-prop-ref#istio).\n\n\nFor other `istio` components (that don't have a\n`replicaCountMin` property), see\n[Manually upgrading a cluster or node pool](/kubernetes-engine/docs/how-to/upgrading-a-cluster) in the GKE documentation or\n[IstioOperator Options](https://istio.io/latest/docs/reference/config/istio.operator.v1alpha1/) in the Istio documentation."]]