2020-12-18 16:34:24 +08:00
|
|
|
# containerd
|
2020-11-30 16:22:49 +08:00
|
|
|
|
|
|
|
[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/
|