ACS icon indicating copy to clipboard operation
ACS copied to clipboard

What is SandboxChanged and why does it happen randomly

Open jmalobicky opened this issue 9 years ago • 0 comments

Is this a request for help?: yes

Orchestrator and version (e.g. Kubernetes, DC/OS, Swarm) Kubernetes v1.7.7 deployed via ACS

What happened: All pods are restarted (within kube-system and all other namespaces) and reason is SandboxChanged with a message of Pod sandbox changed, it will be killed and re-created. with a source component of kubelet

This would not be an issue, but I am running Consul (v0.9.1) and the raft protocol (v2) seems to keep the old ips of the nodes. This then causes other issues as consul cannot elect a leader since it cannot find the other nodes via raft, which then causes my app pods to fail as they cannot connect to consul to get necessary key/values to start properly. I must manually recover consul peers.

What you expected to happen: Kubernetes would not issue a SandboxChanged and pods would not be rescheduled for restart

How to reproduce it (as minimally and precisely as possible): I have not been able to reproduce this issue as it might be something with kubelet or docker system running on the hosts.

Is there a way to track down why SandboxChanged event happened?

jmalobicky avatar Nov 17 '17 14:11 jmalobicky