到Docker 官网https://www.docker.com/

下载windows操作系统对应的docker软件安装

Docker Desktop Installer-Win.exe 2023-09版本是4.23

下载后双击安装

重启windows后,继续安装

接受服务继续安装

解决碰到的Docker Engine stopped

打开 控制面板》程序》启用或关闭Windows功能, 选中Hyper-V后点击确定,再确定重启电脑进行配置

重启后报“wsl kernerl version too low”

wsl --update

 

启动Docker 

Docker 下启用Kubenetes 

到 Docker 的设置页面,找到Kubenetes,选中Enable Kubenetes,单击Apply&restart

当左下角出现 Kubenetes 的 logo,并逐步变为绿色,Kubenetes就运行起来了 

 访问Kubernetes Dashboard

 通过 kubectl 来安装Kubernetes Dashboard 2.7

kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.7.0/aio/deploy/recommended.yaml

开启API Server访问代理 kubectl proxy 

C:\Users\Administrator>kubectl proxy

Starting to serve on 127.0.0.1:8001

打开浏览器访问Kubernetes Dashboard 

http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/ 

访问web界面,需要输入token才可以登录

1.创建账号

kubectl create serviceaccount dashboard-admin -n kube-system

2. 赋予权限

kubectl create clusterrolebinding dashboard-admin --clusterrole=cluster-admin --serviceaccount=kube-system:dashboard-admin 

 3. 生成token

kubectl -n  kube-system create token dashboard-admin 

4.输入token,登录Kubernetes Dashboard

GitHub 加速计划 / da / dashboard
14.17 K
4.13 K
下载
General-purpose web UI for Kubernetes clusters
最近提交(Master分支:1 个月前 )
9a476333 Bumps [jest-preset-angular](https://github.com/thymikee/jest-preset-angular) from 14.2.0 to 14.2.2. - [Release notes](https://github.com/thymikee/jest-preset-angular/releases) - [Changelog](https://github.com/thymikee/jest-preset-angular/blob/main/CHANGELOG.md) - [Commits](https://github.com/thymikee/jest-preset-angular/compare/v14.2.0...v14.2.2) --- updated-dependencies: - dependency-name: jest-preset-angular dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 1 个月前
11b7e82e Bumps [cypress](https://github.com/cypress-io/cypress) from 13.13.1 to 13.13.2. - [Release notes](https://github.com/cypress-io/cypress/releases) - [Changelog](https://github.com/cypress-io/cypress/blob/develop/CHANGELOG.md) - [Commits](https://github.com/cypress-io/cypress/compare/v13.13.1...v13.13.2) --- updated-dependencies: - dependency-name: cypress dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 1 个月前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐