2020-12-18 08:34:24 +00:00
|
|
|
# containerd
|
2020-11-30 08:22:49 +00: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
|
|
|
|
```
|
|
|
|
|
2021-01-11 14:39:08 +00:00
|
|
|
## etcd.yml
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
etcd_deployment_type: host
|
|
|
|
```
|
|
|
|
|
2020-11-30 08:22:49 +00:00
|
|
|
## Containerd config
|
|
|
|
|
|
|
|
Example: define registry mirror for docker hub
|
|
|
|
|
|
|
|
```yaml
|
2021-04-02 06:20:11 +00:00
|
|
|
containerd_registries:
|
|
|
|
"docker.io":
|
|
|
|
- "https://mirror.gcr.io"
|
|
|
|
- "https://registry-1.docker.io"
|
2020-11-30 08:22:49 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
[containerd]: https://containerd.io/
|