2024-07-12
한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina
In kubernetes, although docker is used to download images, the images stored in the docker image cannot be used directly by k8s. However, kind is different. You can use the following method to let the kind kubernetes environment use the images in the docker image.
For example, on the same machine with kind and docker deployed, the docker images show:
You can use this kind command to cache the apachepulsar/pulsar:2.8.2 image in the docker image into the kind k8s environment, so that you don't have to download the image from the Internet when running kubectl apply -f my-deployment.yaml.
kind load docker-image apachepulsar/pulsar:2.8.2