kind – Quick Start
This resource provides a quick start guide for installing and using Kind, which allows you to run local Kubernetes clusters using Docker containers. It covers cluster creation, interaction with kubectl, and loading custom container images for testing different Kubernetes versions or local development.
概览
收录于
2026年3月17日
学科与领域
computer-science-advanced · devops-site-reliability-engineering
年级范围
九年级(高一)–十二年级(高四)
页面类型
Article
简介
kind Quick Start Guide
- Overview:
kind(Kubernetes in Docker) allows you to run local Kubernetes clusters using Docker containers as "nodes." - Installation:
- Release Binaries: Download from the official releases page and add to your
$PATH. - Go: Install via
go install sigs.k8s.io/kind@v0.31.0(requires Go 1.16+). - Make: Use
make buildfor a reproducible build without requiring a local Go installation. - Package Managers: Community-supported packages are available for Homebrew, MacPorts, Chocolatey, Scoop, and Winget.
- Release Binaries: Download from the official releases page and add to your
- Cluster Management:
- Create:
kind create cluster(defaults to namekind). Use--imageto specify a Kubernetes version and--waitto block until the control plane is ready. - List:
kind get clusters. - Delete:
kind delete cluster(idempotent; no error if the cluster doesn't exist).
- Create:
- Interaction:
kindautomatically manages~/.kube/config.- Use
kubectlwith the--contextflag (e.g.,kind-kind) to target specific clusters.
- Image Handling:
- Load local images into the cluster using
kind load docker-image <image-name>. - Important: If using
:latesttags, ensureimagePullPolicyis set toIfNotPresentorNeverto prevent the cluster from attempting to pull the image from a remote registry.
- Load local images into the cluster using
- Node Images:
kinduses pre-built node images fromkindest/node.- Custom node images can be built from Kubernetes source, official release tarballs, or local files using
kind build node-image.
- Runtime Support:
kindauto-detects Docker, Podman, or nerdctl. You can force a specific runtime using theKIND_EXPERIMENTAL_PROVIDERenvironment variable.
用户评价
暂无已发布的评价,欢迎率先分享您的使用体验。