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.

62 lines
1.5 KiB

  1. # CRI-O
  2. [CRI-O] is a lightweight container runtime for Kubernetes.
  3. Kubespray supports basic functionality for using CRI-O as the default container runtime in a cluster.
  4. * Kubernetes supports CRI-O on v1.11.1 or later.
  5. * etcd: configure either kubeadm managed etcd or host deployment
  6. _To use the CRI-O container runtime set the following variables:_
  7. ## all/all.yml
  8. ```yaml
  9. download_container: false
  10. skip_downloads: false
  11. etcd_kubeadm_enabled: true
  12. ```
  13. ## k8s_cluster/k8s_cluster.yml
  14. ```yaml
  15. container_manager: crio
  16. ```
  17. ## etcd.yml
  18. ```yaml
  19. etcd_deployment_type: host # optionally and mutually exclusive with etcd_kubeadm_enabled
  20. ```
  21. ## all/crio.yml
  22. Enable docker hub registry mirrors
  23. ```yaml
  24. crio_registries_mirrors:
  25. - prefix: docker.io
  26. insecure: false
  27. blocked: false
  28. location: registry-1.docker.io
  29. mirrors:
  30. - location: 192.168.100.100:5000
  31. insecure: true
  32. - location: mirror.gcr.io
  33. insecure: false
  34. ```
  35. ## Note about pids_limit
  36. For heavily mult-threaded workloads like databases, the default of 1024 for pids-limit is too low.
  37. This parameter controls not just the number of processes but also the amount of threads
  38. (since a thread is technically a process with shared memory). See [cri-o#1921]
  39. In order to increase the default `pids_limit` for cri-o based deployments you need to set the `crio_pids_limit`
  40. for your `k8s_cluster` ansible group or per node depending on the use case.
  41. ```yaml
  42. crio_pids_limit: 4096
  43. ```
  44. [CRI-O]: https://cri-o.io/
  45. [cri-o#1921]: https://github.com/cri-o/cri-o/issues/1921