mirror of
https://github.com/rkt/rkt.git
synced 2025-08-26 06:11:28 +08:00

It might happen that the pod is created but we can't get its start time (e.g. we can't find the CNI network corresponding to `--net=NETWORK`). This means StartedAt will not be set and the kubelet will error out and ignore the pod, so it won't try to start it again. Let's introduce CreatedAt to express the time when the pod was created (even if it doesn't start) to handle this. This works because this time is available after pod preparation. We'll need to change rktlet to use CreatedAt instead of StartedAt when getting a pod sandbox status.