windows10 安装 rancher desktop及测试案例
首先条件1.升级 windows10 最新版本2.cpu 开启虚拟化3.需要互联网github 快速下载https://github.com/dotnetcore/fastgithub/releases下载 windows版,运行他,解决github下载慢问题winget-cli 下载https://github.com/microsoft/winget-cli/releases浏览器打开页面,点
·
首先条件
1.升级 windows10 最新版本
2.cpu 开启虚拟化
3.需要互联网
github 快速下载
https://github.com/dotnetcore/fastgithub/releases
下载 windows版,运行他,解决github下载慢问题
winget-cli 下载
https://github.com/microsoft/winget-cli/releases
浏览器打开页面,点开Assets
,下载 DesktopAppInstallerPolicies.zip
这个压缩包
WindowsTerminal 安装
winget install Microsoft.WindowsTerminal
wsl 安装及初始化
wsl --install
下载 rancher desktop
官网
https://rancherdesktop.io/
官方文档 https://docs.rancherdesktop.io/getting-started/installation
下载地址:https://github.com/rancher-sandbox/rancher-desktop/releases
下载 Rancher.Desktop.Setup.xxx.exe
版本,xxx表示最新版本号
接着进行安装,安装成功后,启动,让其自动下载必备数据,如果网速快30分钟下载好
window10 开机启动
右击Windows键
,选择运行
,在框内输入如下,会弹出启动
文件夹,拖入需要设置的程序快捷方式即可
shell:startup
k8s nginx案例
kubectl create deployment nginx --image=nginx
kubectl create service nodeport nginx --tcp 80:80 --node-port=31800
输出如下,表示创建成功
deployment.apps/nginx created
service/nginx created
使用浏览器访问如下,可以看到welcome to nginx
http://127.0.0.1:31800
查看状态
kubectl get pods
查看服务端口
kubectl get svc
删除案例
kubectl delete service nginx
kubectl delete deployment nginx
更多推荐
所有评论(0)