minikube快速搭建 k8s单节点环境

2023-05-24 09:36:05 浏览数 (2)

1 前提依赖

2 CPUs or more 2GB of free memory 20GB of free disk space Internet connection Container or virtual machine manager, such as: Docker, QEMU, Hyperkit, Hyper-V, KVM, Parallels, Podman, VirtualBox, or VMware Fusion/Workstation

kubectl,类似 docker 中的 docker-cli

2 安装

Linux

x86-64 Binary download

代码语言:javascript复制
[root@icv-monitor-platform-dev ~]# curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 80.0M  100 80.0M    0     0  1671k      0  0:00:49  0:00:49 --:--:-- 1807k
[root@icv-monitor-platform-dev ~]# sudo install minikube-linux-amd64 /usr/local/bin/minikube
[root@icv-monitor-platform-dev ~]# 

macOS

代码语言:javascript复制
javaedge@JavaEdgedeMac-mini ~ % brew install minikube
Running `brew update --auto-update`...
^C==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/api/formula.jws.json
######################################################################## 100.0%
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/api/cask.jws.json
######################################################################## 100.0%
==> Fetching dependencies for minikube: kubernetes-cli
==> Fetching kubernetes-cli
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/kubernetes-cli-1.27.1.big_sur.bottle.tar.gz
######################################################################## 100.0%
==> Fetching minikube
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/minikube-1.30.1.big_sur.bottle.tar.gz
######################################################################## 100.0%
==> Installing dependencies for minikube: kubernetes-cli
==> Installing minikube dependency: kubernetes-cli
==> Pouring kubernetes-cli-1.27.1.big_sur.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/kubectl
Target /usr/local/bin/kubectl
already exists. You may want to remove it:
  rm '/usr/local/bin/kubectl'

To force the link and overwrite all conflicting files:
  brew link --overwrite kubernetes-cli

To list all files that would be deleted:
  brew link --overwrite --dry-run kubernetes-cli

Possible conflicting files are:
/usr/local/bin/kubectl -> /Applications/Docker.app/Contents/Resources/bin/kubectl
==> Summary



	

0 人点赞