本文说明如何使用 Windows 10 创建单节点的 kind 集群 (KinD Kubernetes in Docker)。
先提条件
条件 | 版本 |
---|---|
操作系统:Windows 10 或 Windows 11 | May 2020 Update (build 19041) |
Docker in WSL2 | 推荐安装Docker Desktop |
WSL2 distro 镜像 | 这里采用Debian |
内存 | 至少 8GB 内存 |
安装windows子系统
安装windows子系统步骤可以参考 [1]
启用子系统
Open PowerShell as Administrator (Start menu > PowerShell > right-click > Run as Administrator) and enter this command:
|
|
查看 wsl 状态
|
|
列出可用的 Linux 發行版本
|
|
更多命令参考 [1]
下载WSL可用的Linux发行版
使用命令 wsl –list –online 可以查看网络源上有那些 Linux distributions 可以进行选择
|
|
如果需要安装 Debian
|
|
https://cdimage.debian.org/mirror/cdimage/archive/
https://www.debian.org/doc/manuals/project-history/detailed.en.html
https://insightsdude.uk/2023/02/wsl2-debian-image-prep/
Reference
[1] 适用于windows10 Linux子系统的安装管理配置
[2] WSL 的基本命令
[3] Installing kubeadm, kubelet and kubectl
[4] Minimal example of using kine
[5] resource-profiling
[6] [*Goodbye