containerd可指定目录
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
某些情况下,目录不能为默认路径,需要修改。所以希望在集群部署时完成,而不用部署完成之后再去修改。
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
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.
containerd的目录,后期更改非常麻烦,建议安装时支持指定