windows 環境安裝K8s

文檔地址: https://yq.aliyun.com/articles/508460?spm=a2c4e.11153940.blogcont221687.18.7dd57733hFolMogit

 

Docker社區版中Kubernetes開發

 

下載docker ce 18.06github

https://store.docker.com/editions/community/docker-ce-desktop-windowsdocker

 

安裝 chocolately https://chocolatey.org/installshell

@"% SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

 

choco install kubernetes-cli
kubectl version

 

 

在 Docker -> Preferences ... 中,配置 registry mirror 爲 https://registry.docker-cn.comwindows

 

git clone http s://github.com/AliyunContainerService/k8s-for-docker-desktop
cd k8s-for-docker-desktop

 

admin啓動power shell\api

power shell 這裏若是 遇取權限的問題spa

 

 

使用kubectl 鏈接本地集羣code

部署dashboardregexp

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=defaultorm

相關文章
相關標籤/搜索