abiosoft / abiosoft/colima

How to configure cri-dockerd ImagePullProgressDeadline for large images

Abierto
#729 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Go
Estrellas
30.8k
Forks
613
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

### Description

Hey, I have been using cri-dockerd with k8s using Colima (`--runtime docker`). cri-dockerd sometimes struggles to pull large images if they take longer than 1 minute to pull due to this setting here (docker images that take longer than 1m to pull will get stuck in ImagePullBackoff): https://github.com/Mirantis/cri-dockerd/blob/master/config/options.go#L45C4-L48

The easy fix for this in the past was to increase ImagePullProgressDeadline to 10 minutes. In the past I would have developers run this to apply the change (it just adds `--image-pull-progress-deadline 10m` to the list of arguments that cri-dockerd starts with and restarts it:

```bash
# replace command_args line and add --image-pull-progress-deadline
colima ssh -- sudo sed -i '/command_args/c command_args="--container-runtime-endpoint unix:///run/cri-dockerd.sock --image-pull-progress-deadline 10m"' /etc/init.d/cri-dockerd

# restart cri-dockerd
colima ssh -- sudo rc-service cri-dockerd restart
```

In the latest version of the Colima iso, `/etc/init.d/cri-dockerd` is gone and it doesn't look like `cri-dockerd` is managed by rc-service any more. How do I configure cri-dockerd to increase ImagePullProgressDeadline in the current version of Colima?

### Version

Colima Version: 0.5.5
Lima Version: 0.16.0
Qemu Version: 8.0.0

### Operating System

- [X] macOS Intel <= 12 (Monterrey)
- [X] macOS Intel >= 13 (Ventura)
- [X] macOS M1 <= 12 (Monterrey)
- [X] macOS M1 >= 13 (Ventura)
- [X] Linux

### Output of `colima status`

INFO[0000] colima is running using QEMU
INFO[0000] arch: aarch64
INFO[0000] runtime: docker
INFO[0000] mountType: 9p
INFO[0000] socket: unix:///Users/jstafford/.colima/default/docker.sock
INFO[0000] kubernetes: enabled

### Reproduction Steps

1. Start colima with: `colima start -k -r docker`
2. Pulling large images in Kubernetes results in ImagePullBackoff/ErrImagePull if the image can't be downloaded in the default time of 1 minute
3. `/etc/init.d/cri-dockerd` is no longer present in the colima iso image, so `cri-dockerd` can no longer be configured to increase the timeout to a more reasonable value.

### Expected behaviour

Hoping that you can either increase the default value of ImagePullProgressDeadline to 10m, or point me to how cri-dockerd can be configured in the current Colima version.

### Additional context

_No response_

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.