Memperluas jumlah replika properti Istio untuk menghindari masalah saat menghabiskan node Istio

Saat menghabiskan pod Istio, beberapa node mungkin tidak dikosongkan karena memiliki jumlah replika 1, sementara 3 replika atau lebih diperlukan. Untuk menghindari hal ini, Anda harus menetapkan jumlah replika minimum untuk setiap properti ke minimal 3.

Saat mencadangkan dan menghabiskan node Istio, Anda mungkin melihat error seperti:

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
===

Untuk istio-ingressgateway dan istio-pilot, Anda dapat menetapkan properti istio.ingressgateway.replicaCountMin dan istio.pilot.replicaCountMin ke 3 atau yang lebih tinggi. Lihat Referensi properti konfigurasi, istio.

Untuk komponen istio lainnya (yang tidak memiliki properti replicaCountMin), baca artikel Mengupgrade cluster atau kumpulan node secara manual di dokumentasi GKE atau Opsi IstioOperator di dokumentasi Istio.