树莓派4安装k3d
# 树莓派 4 安装 k3d
k3d - Run k3s in Docker!
系统:树莓派官方系统(arm64)
k3d 项目:https://github.com/rancher/k3d (opens new window)
# 安装
# 安装docker(树莓派官网系统)
curl -sSL https://get.docker.com | sh
# 如果是ubuntu20.4
# sudo add-apt-repository "deb [arch=arm64] https://download.docker.com/linux/ubuntu bionic stable"
# sudo apt-get install docker-ce
sudo systemctl enable docker
# 安装k3d
curl -s https://raw.githubusercontent.com/rancher/k3d/master/install.sh | bash
# 安装kubectl,根据自己CPU的架构(arm,arm64,amd64)
curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/arm64/kubectl
sudo chmod a+x kubectl
sudo mv kubectl /usr/local/bin/
# 创建一个集群
k3d create -n k3s-test
export KUBECONFIG=$(k3d get-kubeconfig --name='k3s-test')
kubectl cluster-info
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
上次更新: 2022/06/17, 07:22:19