Skip to content

Commit

Permalink
k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
wjw0315 committed Jun 20, 2021
1 parent e809892 commit d1fa3ac
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 2 deletions.
1 change: 0 additions & 1 deletion 2019/04/2019-04-30.html

This file was deleted.

1 change: 0 additions & 1 deletion 2019/04/newnote_1556633346266.html

This file was deleted.

Binary file added _postImg/DevOps/1624192280832.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _postImg/DevOps/1624192343069.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions _posts/DevOps/k8s/2021-06-19-mac m1安装k8s.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,54 @@ tags:
- DevOps
---



> 环境说明:
> Docker Desktop:version 3.3.3 ;
> Docker :version 20.10.6;
> k8s:version 1.19.7


# 1、安装

## 1.1 拉取镜像

- 采用阿里云的k8s-for-docker-desktop,解决经常遇到的Docker for Desktop中K8S一直卡在starting状态的问题

```
git clone https://github.com/AliyunContainerService/k8s-for-docker-desktop
cd k8s-for-docker-desktop
git checkout v1.19.7
// 执行脚本安装K8S相关镜像(确认k8s-for-docker-desktop文件夹下的images中的k8s和本地安装的docker中需要的k8s版本保持一致)
//拉取镜像
sh load_images.sh
```

## 1.2 设置

- 设置docker代理和k8s的设置,并重启Docker for Desktop

```
"registry-mirrors": [
"https://docker.mirrors.ustc.edu.cn"
]
```

<img src="../../../_postImg/DevOps/1624192280832.jpg" style="zoom:50%;" />

<img src="../../../_postImg/DevOps/1624192343069.jpg" style="zoom:50%;" />



# 2.配置k8s





# 官方文档
https://docs.docker.com/docker-for-mac/apple-m1/

https://www.docker.com/blog/new-docker-desktop-preview-for-apple-m1-released/

0 comments on commit d1fa3ac

Please sign in to comment.