linkerd-network-validator doesn't restart failed pod #11071
Unanswered
darek76000
asked this question in
Help
Replies: 1 comment
-
Thanks for the detailed write-up. Indeed, I think the claim in that post is wrong; when the network-validator catches a bad iptables config it will fail the pod but that doesn't make the scheduler restart it. It needs to be restarted manually. It would be great to have this be automated but I'm not aware of any workaround, besides some kind of external controller doing the restart after catching this situation. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
We tested linkerd stable-2.13.3 and stable-2.13.5 with linkerd-cni enabled and both have the same issue.
In this article https://linkerd.io/2022/12/01/what-really-happens-at-startup-linkerd-init-containers-the-cni-and-more/#the-linkerd-cni-plugin you wrote that:
We can see that pod is not restarted but only linkerd-network-validator init-container is.
Scenario:
Describe of the pod:
Scenario part 2:
3. Delete and recreate linkerd-cni pod so now we have proper iptables configuration.
4. Wait for nginx pod to be ready, but during the linkerd-network-validator container restarts nothing happens. Same logs as before.
5. Delete and recreate nginx pod manually, everything is up and running. linkerd-network-validator container has no errors. Iptables are validated and nginx is going to start.
So my question is that linkerd-network-validator works ok? K8s should restart whole failed nginx pod or only linkerd-network-validator init container?
Regards!
Beta Was this translation helpful? Give feedback.
All reactions