k8s

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

egrep --color 'vmx|svm' /proc/cpuinfo

Note: Minikube also supports a --vm-driver=none option that runs the Kubernetes components on the host and not in a VM. Using this driver requires Docker and a Linux environment but not a hypervisor.

curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 \
  && chmod +x minikube

sudo install minikube /usr/local/bin

使用 virtualbox driver

minikube start
指定名稱與driver
minikube start -p myminikube --vm-driver=virtualbox

使用原生linux 環境

sudo minikube --vm-driver=none start

若是啟動完成可以透過以下指令觀看 cluster 情況:

查看 minikube 的狀態:

還可以透過圖形化介面來觀看和操作 Kubernetes

Last updated