官网:

minikube start | minikube (k8s.io)icon-default.png?t=MBR7https://minikube.sigs.k8s.io/docs/start/

步骤1 下载安装 minikube

curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube

步骤2  start 

minikube start

* Centos 7.6.1810 上的 minikube v1.28.0
* Kubernetes 1.25.3 is now available. If you would like to upgrade, specify: --kubernetes-version=v1.25.3
* 根据现有的配置文件使用 docker 驱动程序
* Starting control plane node minikube in cluster minikube
* Pulling base image ...
* Updating the running docker "minikube" container ...
! This container is having trouble accessing https://k8s.gcr.io
* To pull new external images, you may need to configure a proxy: https://minikube.sigs.k8s.io/docs/reference/networking/proxy/
* 正在 Docker 20.10.20 中准备 Kubernetes v1.23.2…
* Verifying Kubernetes components...
  - Using image gcr.io/k8s-minikube/storage-provisioner:v5
* Enabled addons: storage-provisioner, default-storageclass

! /usr/local/bin/kubectl is version 1.25.4, which may have incompatibilities with Kubernetes 1.23.2.
  - Want kubectl v1.23.2? Try 'minikube kubectl -- get pods -A'
* Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default

1、什么是Minikube?

Minikube是一种轻量化的Kubernetes集群,是Kubernetes社区为了帮助开发者和学习者能够更好学习和体验k8s功能而推出的,借助个人PC的虚拟化环境就可以实现Kubernetes的快速构建启动。目前已支持在macOS、Linux、Windows平台上利用各类本地虚拟化环境作为驱动运行。

1)配置需求

2)常用驱动

Minikube在不同操作系统上支持不同的驱动,具体如下:

  • macOS
  • Linux
  • Windows

⚠️ 注意:

  • 由于minikube复用了docker-machine,在其软件包中已经支持了相应的VirtualBox, VMware Fusion驱动

  • VT-x/AMD-v 虚拟化必须在 BIOS 中开启

  • 在Windows环境下,如果开启了Hyper-V,不支持VirtualBox方式




原文链接:https://www.jianshu.com/p/ef400bfea973
 

 

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐