Browse Source
Allow containerd root and state path to be configured (#7098)
pull/7101/head
Florian Ruynat
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
14 additions and
0 deletions
-
roles/container-engine/containerd/defaults/main.yml
-
roles/container-engine/containerd/templates/config.toml.j2
-
tests/files/packet_centos7-flannel-containerd-addons-ha.yml
|
|
@ -1,4 +1,9 @@ |
|
|
|
--- |
|
|
|
# The root directory for containerd metadata |
|
|
|
containerd_metadata_root_dir: /var/lib/containerd |
|
|
|
# The state directory for containerd |
|
|
|
containerd_state_dir: /run/containerd |
|
|
|
|
|
|
|
containerd_config: |
|
|
|
grpc: |
|
|
|
max_recv_message_size: 16777216 |
|
|
|
|
|
@ -1,3 +1,8 @@ |
|
|
|
# persistent data location |
|
|
|
root = "{{ containerd_metadata_root_dir }}" |
|
|
|
# runtime state information |
|
|
|
state = "{{ containerd_state_dir }}" |
|
|
|
|
|
|
|
# Kubernetes doesn't use containerd restart manager. |
|
|
|
disabled_plugins = ["restart"] |
|
|
|
|
|
|
|
|
|
@ -38,3 +38,7 @@ tls_cipher_suites: |
|
|
|
etcd_tls_cipher_suites: |
|
|
|
- TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 |
|
|
|
- TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 |
|
|
|
|
|
|
|
# Containerd path |
|
|
|
containerd_metadata_root_dir: /var/data/containerd |
|
|
|
containerd_state_dir: /run/cri/containerd |