一、开启Hyper-V

温馨小提示:本文将基于windows10专业版操作,其它部分系统可能没有Hyper-V功能
在这里插入图片描述

依次进入 控制面板 -> 程序 -> 启用或关闭Windows功能 -> 勾选上 Hyper-V -> 确定开启之后重启电脑
在这里插入图片描述

二、K8s安装

以管理员身份运行Windows PowerShell,依次执行如下命令

1、安装Chocolatey包管理工具

可参考:https://chocolatey.org/install

# Run Get-ExecutionPolicy. If it returns Restricted, then run Set-ExecutionPolicy AllSigned or Set-ExecutionPolicy Bypass -Scope Process.
Get-ExecutionPolicy

Set-ExecutionPolicy AllSigned

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
# 验证
choco

在这里插入图片描述

2、Chocolatey安装minikube
choco install minikube

minikube

在这里插入图片描述

3、启动
minikube start --image-mirror-country=cn --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers

minikube dashboard

在这里插入图片描述
在这里插入图片描述


今日分享语句:
生活,有时候是会觉得有点难;有些路,我们终究要学会一个人去走。挺过去,再回头看曾经经历的这些艰辛,其实也不过如此。这些经历,让我们变得坚强且勇敢,能更有自信地去面对未来的生活。

Logo

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

更多推荐