Is there a way to view the loading process of Kubernetes images during pod initialization?

Is there a way to get log information about what happens to Kubernetes after creating the container. kubectl get pods contains only a basic status message. In the case of loading a large image, this can take some time, and the kubectl log command kubectl log not provide any real information at this point. This command, apparently, provides information only when the container starts.

Is there a way to get more log information about the current status of the Kubernetes module. Calling docker pull directly provides boot status information, but this is not obvious in Kubernetes.

+6
source share
2 answers

Unfortunately, Kubernetes does not currently show docker pull progress. I find it best to look at /var/log/docker.log on the machine that the block paid for.

+3
source

To add to the previous answer, if you are using a modern desktop with systemd, you probably won't have the /var/log/docker.log file at all.

You can see if downloads are active (by ubuntu / conjure-up):

  • bandwidth monitoring tools such as bmon for the worker (or its hypervisor)
  • check file download on the desktop: du -s /var/lib/docker/tmp
  • check system logs: journalctl --unit docker
  • After the download is complete, the files will be deleted from tmp dir

If you see messages like: Handler for GET /v1.26/images/docker.io/XXX/XXX:latest/json returned error: No such image: docker.io/XXX/XXX:latest - then I think that this means that the image is not available and will be downloaded, and not that it does not exist remotely; -)

0
source

Source: https://habr.com/ru/post/982050/


All Articles