kaloom / kubernetes-podagent

Kaloom's Kubernetes Podagent
Apache License 2.0
8 stars 2 forks source link

Fix podagent #7

Closed tomleb closed 2 years ago

tomleb commented 2 years ago
Fix inconsistent state when podagent is down

This fixes some cases (but not all) where there can be an inconsistent
state between what the annotations describes and what CNI configuration
have actually been run.

eg: When a node reboot and Pod foo is started, then annotated BEFORE
podagent has started.

Note that with this change, the CNI configuration MUST be idempotent
because they will be re-run whenever podagent restarts.