mirror of
https://github.com/kubernetes-sigs/kind.git
synced 2025-11-30 23:16:04 +07:00
Merge pull request #3994 from AnjaliMishra1st/docs-kind-load-images
docs: add example for loading multiple images with kind load docker-i…
This commit is contained in:
@@ -157,7 +157,7 @@ wait for 30 seconds, do `--wait 30s`, for 5 minutes do `--wait 5m`, etc.
|
||||
|
||||
More usage can be discovered with `kind create cluster --help`.
|
||||
|
||||
The kind can auto-detect the [docker], [podman], or [nerdctl] installed and choose the available one. If you want to turn off the auto-detect, use the environment variable `KIND_EXPERIMENTAL_PROVIDER=docker`, `KIND_EXPERIMENTAL_PROVIDER=podman` or `KIND_EXPERIMENTAL_PROVIDER=nerdctl` to
|
||||
kind can auto-detect the [docker], [podman], or [nerdctl] installed and choose the available one. If you want to turn off the auto-detect, use the environment variable `KIND_EXPERIMENTAL_PROVIDER=docker`, `KIND_EXPERIMENTAL_PROVIDER=podman` or `KIND_EXPERIMENTAL_PROVIDER=nerdctl` to
|
||||
select the runtime.
|
||||
|
||||
## Interacting With Your Cluster
|
||||
@@ -218,13 +218,21 @@ context name `kind` and delete that cluster.
|
||||
|
||||
## Loading an Image Into Your Cluster
|
||||
|
||||
Docker images can be loaded into your cluster nodes with:
|
||||
You can load one or more images into your kind cluster:
|
||||
|
||||
`kind load docker-image my-custom-image-0 my-custom-image-1`
|
||||
```bash
|
||||
kind load docker-image my-app:latest
|
||||
```
|
||||
|
||||
> **Note**: If using a named cluster you will need to specify the name of the
|
||||
> cluster you wish to load the images into:
|
||||
> `kind load docker-image my-custom-image-0 my-custom-image-1 --name kind-2`
|
||||
```bash
|
||||
kind load docker-image my-app:latest my-db:latest my-cache:latest
|
||||
```
|
||||
|
||||
Note: If using a named cluster you will need to specify the name of the cluster:
|
||||
|
||||
```bash
|
||||
kind load docker-image my-app:latest --name test-cluster
|
||||
```
|
||||
|
||||
Additionally, image archives can be loaded with:
|
||||
`kind load image-archive /my-image-archive.tar`
|
||||
@@ -493,4 +501,4 @@ kind, the Kubernetes cluster itself, etc.
|
||||
[Private Registries]: /docs/user/private-registries
|
||||
[customize control plane with kubeadm]: https://kubernetes.io/docs/setup/independent/control-plane-flags/
|
||||
[access multiple clusters]: https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/
|
||||
[release notes]: https://github.com/kubernetes-sigs/kind/releases
|
||||
[release notes]: https://github.com/kubernetes-sigs/kind/releases
|
||||
Reference in New Issue
Block a user