kubekey icon indicating copy to clipboard operation
kubekey copied to clipboard

containerd可指定目录

Open Timeless0927 opened this issue 1 year ago • 3 comments

Your current KubeKey version

v3.0.13

Describe this feature

root = "/var/lib/containerd"能否将containerd的数据目录不固定,改为可指定。

Describe the solution you'd like

与现在的etcd配置数据目录相同的方法。https://github.com/kubesphere/kubekey/blob/b2fd07096e3ae9399d7737eed8107591c016110b/docs/config-example.md?plain=1#L116

Additional information

某些情况下,目录不能为默认路径,需要修改。所以希望在集群部署时完成,而不用部署完成之后再去修改。

Timeless0927 avatar Jan 10 '24 02:01 Timeless0927

use dataRoot config cri data path https://github.com/kubesphere/kubekey/blob/b2fd07096e3ae9399d7737eed8107591c016110b/cmd/kk/pkg/container/templates/containerd_config.go#L28

example: config-sample.yaml

... registry: dataRoot: /data/var/lib/containerd ...

wenwutang1 avatar Feb 05 '24 09:02 wenwutang1

@wenwutang1

registry:
   dataRoot: /data/var/lib/containerd

The dataRoot attribute of registry is not a good design for changing docker/containerd datadir.
How can i change the registry default datedir: /mnt/registry? Is dataRoot should be used in here.

deqingLv avatar Mar 23 '24 04:03 deqingLv

containerd的目录,后期更改非常麻烦,建议安装时支持指定

zmoon460 avatar Mar 23 '24 11:03 zmoon460