docker_practice/kubernetes/setup/docker-desktop.md
Kang HuaiShuai a691aa607a
remove azk8s.cn mirror
Signed-off-by: Kang HuaiShuai <khs1994@khs1994.com>
2020-04-04 22:54:32 +08:00

22 lines
837 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Docker Desktop 启用 Kubernetes
使用 Docker Desktop 可以很方便的启用 Kubernetes由于国内获取不到 `k8s.gcr.io` 镜像我们必须首先解决这一问题
## 获取 `k8s.gcr.io` 镜像
由于国内拉取不到 `k8s.gcr.io` 镜像我们可以使用开源项目 [AliyunContainerService/k8s-for-docker-desktop](https://github.com/AliyunContainerService/k8s-for-docker-desktop) 来获取所需的镜像。
## 启用 Kubernetes
Docker Desktop 设置页面点击 `Kubernetes`选择 `Enable Kubernetes`稍等片刻看到左下方 `Kubernetes` 变为 `running`Kubernetes 启动成功
![](https://github.com/AliyunContainerService/k8s-for-docker-desktop/raw/master/images/k8s.png)
## 测试
```bash
$ kubectl version
```
如果正常输出信息则证明 Kubernetes 成功启动