运维(5) Windows10专业版安装K8s
Windows10专业版、Chocolatey、minikube、K8s
·
一、开启Hyper-V
温馨小提示:本文将基于
windows10专业版
操作,其它部分系统可能没有Hyper-V
功能
依次进入 控制面板
-> 程序
-> 启用或关闭Windows功能
-> 勾选上 Hyper-V
-> 确定开启之后重启电脑
二、K8s安装
以管理员身份运行Windows PowerShell
,依次执行如下命令
1、安装Chocolatey
包管理工具
# 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
今日分享语句:
生活,有时候是会觉得有点难;有些路,我们终究要学会一个人去走。挺过去,再回头看曾经经历的这些艰辛,其实也不过如此。这些经历,让我们变得坚强且勇敢,能更有自信地去面对未来的生活。
更多推荐
已为社区贡献2条内容
所有评论(0)