Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

K8docsupdate #2306

Merged
merged 10 commits into from
May 12, 2020
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions docker/hyperzoo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,22 @@ Analytics Zoo hyperzoo image has been built to easily run applications on Kubern
sudo docker pull intelanalytics/hyper-zoo:0.8.0-SNAPSHOT-2.4.3-0.17
```

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a subsection "Speed up pulling image by adding mirrors", and put the new contents in that subsection. Describe it in a generic fashion, and use mirror in China as an example.

To speed up pulling the image, config the Docker daemon. Edit `/etc/docker/daemon.json` and add the registry-mirrors key and value:

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

Restart dockerd:

```bash
sudo systemctl restart docker
```

Then pull the image.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the commands are different in different os and versions of Docker

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

- Launch a k8s client container:

Please note the two different containers: **client container** is for user to submit zoo jobs from here, since it contains all the required env and libs except hadoop/k8s configs; executor container is not need to create manually, which is scheduled by k8s at runtime.
Expand Down
16 changes: 16 additions & 0 deletions docs/docs/ProgrammingGuide/k8s.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,22 @@ Analytics Zoo hyperzoo image has been built to easily run applications on Kubern
sudo docker pull intelanalytics/hyper-zoo:0.8.0-SNAPSHOT-2.4.3-0.17
```

To speed up pulling the image, config the Docker daemon. Edit `/etc/docker/daemon.json` and add the registry-mirrors key and value:

```bash
{
"registry-mirrors": ["https://docker.mirrors.ustc.edu.cn/"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these mirrors are only for China users, yes? I don't think you should make it as a default example; instead, add a section on how to add mirror for China users.

}
```

Restart dockerd:

```bash
sudo systemctl restart docker
```

Then pull the image.

- Launch a k8s client container:

Please note the two different containers: **client container** is for user to submit zoo jobs from here, since it contains all the required env and libs except hadoop/k8s configs; executor container is not need to create manually, which is scheduled by k8s at runtime.
Expand Down