You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.2 KiB

  1. # containerd
  2. [containerd] An industry-standard container runtime with an emphasis on simplicity, robustness and portability
  3. Kubespray supports basic functionality for using containerd as the default container runtime in a cluster.
  4. _To use the containerd container runtime set the following variables:_
  5. ## k8s_cluster.yml
  6. When kube_node contains etcd, you define your etcd cluster to be as well schedulable for Kubernetes workloads. Thus containerd and dockerd can not run at same time, must be set to bellow for running etcd cluster with only containerd.
  7. ```yaml
  8. container_manager: containerd
  9. ```
  10. ## etcd.yml
  11. ```yaml
  12. etcd_deployment_type: host
  13. ```
  14. ## Containerd config
  15. Example: define registry mirror for docker hub
  16. ```yaml
  17. containerd_registries:
  18. "docker.io":
  19. - "https://mirror.gcr.io"
  20. - "https://registry-1.docker.io"
  21. ```
  22. `containerd_registries` is ignored for pulling images when `image_command_tool=nerdctl`
  23. (the default for `container_manager=containerd`). Use `crictl` instead, it supports
  24. `containerd_registries` but lacks proper multi-arch support (see
  25. [#8375](https://github.com/kubernetes-sigs/kubespray/issues/8375)):
  26. ```yaml
  27. image_command_tool: crictl
  28. ```
  29. [containerd]: https://containerd.io/