cybozu-go / coil

CNI plugin for Kubernetes designed for scalability and extensibility
Apache License 2.0
165 stars 20 forks source link

Egress traffics is disconnected for about 30 seconds when deleting an Egress Pod #206

Closed masa213f closed 2 years ago

masa213f commented 2 years ago

Describe the bug Egress traffics is disconnected for about 30 seconds when deleting an Egress Pod.

Environments

To Reproduce

  1. Create an Egress resource. (.spec.replicas is 2 or more.)
  2. Create a client pod which uses the Egress NAT.
  3. ping to the external network via the Egress NAT from the client pod.
  4. Delete the Egress Pods one by one.

When deleting an Egress Pod, sometimes ping will fail (packets lost) for about 30 seconds.

Expected behavior There are some replicas. So I want to switch the Egress Pod immediately.

ysksuzuki commented 2 years ago

https://github.com/cybozu-go/coil/pull/215 fixed this issue. The traffic to a removed NAT pod is redirected to another pod as soon as users request to delete an Egress NAT pod.