-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
containerd docker hub registry mirror support (#6962)
* containerd docker hub registry mirror support * add docs * fix typo * fix yamllint * fix indent in sample and ansible-playbook param in testcases_run * fix md * mv common vars to tests/common/_docker_hub_registry_mirror.yml * checkout vars to upgrade tests
- Loading branch information
Showing
6 changed files
with
61 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# conrainerd | ||
|
||
[containerd] An industry-standard container runtime with an emphasis on simplicity, robustness and portability | ||
Kubespray supports basic functionality for using containerd as the default container runtime in a cluster. | ||
|
||
_To use the containerd container runtime set the following variables:_ | ||
|
||
## k8s-cluster.yml | ||
|
||
```yaml | ||
container_manager: containerd | ||
``` | ||
## Containerd config | ||
Example: define registry mirror for docker hub | ||
```yaml | ||
containerd_config: | ||
grpc: | ||
max_recv_message_size: 16777216 | ||
max_send_message_size: 16777216 | ||
debug: | ||
level: "" | ||
registries: | ||
"docker.io": | ||
- "https://mirror.gcr.io" | ||
- "https://registry-1.docker.io" | ||
``` | ||
[containerd]: https://containerd.io/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
docker_registry_mirrors: | ||
- "https://mirror.gcr.io" | ||
|
||
containerd_config: | ||
grpc: | ||
max_recv_message_size: 16777216 | ||
max_send_message_size: 16777216 | ||
debug: | ||
level: "" | ||
registries: | ||
"docker.io": | ||
- "https://mirror.gcr.io" | ||
- "https://registry-1.docker.io" | ||
max_container_log_line_size: -1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters