排空 Istio Pod 时,某些节点可能由于副本计数为 1 而没有排空,而需要使用 3 个或更多副本。为避免出现这种情况,您应将每个属性的最小副本计数设置为 3。
备份和排空 Istio 节点时,您可能会看到以下错误:
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
===
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-02。"],[[["Version 1.7 of the Apigee hybrid documentation is end of life, and users should upgrade to a newer version."],["To prevent draining issues with Istio pods, set the minimum replica count for each property to at least 3."],["Errors during Istio node backup and draining can be resolved by adjusting `istio.ingressgateway.replicaCountMin` and `istio.pilot.replicaCountMin` properties to 3 or higher."],["For Istio components without a `replicaCountMin` property, refer to GKE or Istio documentation for manual upgrade or configuration options."]]],[]]