Intermittent `CreateContainerError` on startup for cron jobs due to container runtime

237 Views Asked by At

I’m getting CreateContainerErrors for cron jobs and I want to better understand why this would happen in the container runtime.

I know this is an issue in the container runtime (docker-engine v20.10.6) because it is the only possible common cause (see the common causes here). Specifically, subsequent containers are able to startup without issue.

The errors say something like:

Error from server (BadRequest): container "my-container" in pod "my-cron-27911235-69t4m" 
is waiting to start: CreateContainerError

kubectl describe doesn't provide much more insight

...
    State:          Waiting
      Reason:       CreateContainerError
    Ready:          False
    Restart Count:  0
...

I'm running v1.22.15-gke.2500 on GCP.

Any help would be appreciated. Thanks!

0

There are 0 best solutions below