文档地址: https://yq.aliyun.com/articles/508460?spm=a2c4e.11153940.blogcont221687.18.7dd57733hFolMo
Docker社区版中Kubernetes开发
下载docker ce 18.06
https://store.docker.com/editions/community/docker-ce-desktop-windows
安装 chocolately https://chocolatey.org/install
@"%SystemRoot%System32WindowsPowerShellv1.0powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%chocolateyin"
choco install kubernetes-cli
kubectl version
在 Docker -> Preferences ... 中,配置 registry mirror 为 https://registry.docker-cn.com
git clone https://github.com/AliyunContainerService/k8s-for-docker-desktop
cd k8s-for-docker-desktop
admin启动power shell
power shell 这里如果 遇取权限的问题
使用kubectl 连接本地集群
部署dashboard
kubectl create -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml
http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/#!/overview?namespace=default