关于kubernetes:minikube安装方法

43次阅读

共计 1018 个字符,预计需要花费 3 分钟才能阅读完成。

minikube 装置办法

环境查看

sysctl -a | grep -E --color 'machdep.cpu.features|VMX'

呈现 VMX 阐明反对

在装置 minikube 之前先在本人的机器下面装置虚拟机
docker (driver installation)
virtualbox (driver installation)
podman (driver installation) (EXPERIMENTAL)
vmwarefusion
kvm2 (driver installation)
hyperkit (driver installation)
hyperv (driver installation) Note that the IP below is dynamic and can change. It can be retrieved with minikube ip.
vmware (driver installation) (VMware unified driver)
parallels (driver installation)
none (Runs the Kubernetes components on the host and not in a virtual machine. You need to be running Linux and to have Docker installed.

通过 brew 装置装 minikube

brew install minikube

通过 minikube 二进制包形式装置

curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-darwin-amd64 \
  && chmod +x minikube
sudo mv minikube /usr/local/bin
# vm-driver (hyperkit, vmware, virtualbox)
# vmwarefusion 被启用,如果应用 vmware 驱动失败,须要装置驱动

brew install docker-machine-driver-vmware
minikube start --vm-driver=vmware --memory 8192 --cpus 4

# 罕用的一些操作,如果想重建一个 kubenetes 环境,能够删除,再建设
minikube start
minikube status
minikube ssh
minikube ip
minikube delete
minikube dashboard

正文完
 0