k3d安裝k3s


k3d安裝k3s

安裝kubectl

curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.17.4/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl

安裝k3d

curl -s https://raw.githubusercontent.com/rancher/k3d/master/install.sh | bash

# 單master
k3d create
export KUBECONFIG=$(k3d get-kubeconfig)
# 集群1master +2 worker
k3d create  rancher/k3s:v1.0.0  --workers 2
export KUBECONFIG=$(k3d get-kubeconfig)

如果重復操作,注意刪除$(k3d get-kubeconfig)所指向的config秘鑰配置。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM