k8s

Install minikube

https://minikube.sigs.k8s.io/docs/start/

Debian:

1
2
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube_latest_amd64.deb
sudo dpkg -i minikube_latest_amd64.deb

start your cluster

minikube start

install kubectl

下载curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"

下载sha256: curl -LO "https://dl.k8s.io/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl.sha256"

校验sha256: echo "$(<kubectl.sha256) kubectl" | sha256sum --check

https://kubernetes.io/zh/docs/tasks/tools/install-kubectl/#install-kubectl-on-linux

1
2
3
4
5
curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
kubectl version --client
kubectl cluster-info

安装 minikube

https://minikube.sigs.k8s.io/docs/start/