kmesh-net / kmesh

High Performance ServiceMesh Data Plane Based on Programmable Kernel
https://kmesh.net
Apache License 2.0
464 stars 70 forks source link

Should ignore unhealthy workload status in backend map #693

Closed hzxuzhonghu closed 2 months ago

hzxuzhonghu commented 3 months ago

What would you like to be added:

We should filter out unhealthy workload, and only store healthy ones to backend map.

When pod is being created or deleted, kmesh could receive workload with Status: WorkloadStatus_UNHEALTHY

Kube-proxy also filtered out unready endpoint when maintaining iptables.

If a pod access a server pod deleted/not ready, connection error or timeout may happen.