Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can i config containerd config.toml.tmpl. #204

Closed
baozitao opened this issue May 9, 2023 · 1 comment
Closed

how can i config containerd config.toml.tmpl. #204

baozitao opened this issue May 9, 2023 · 1 comment

Comments

@baozitao
Copy link

baozitao commented May 9, 2023

i want change containerd native images store dir from /var/lib/containerd to /path, but i don’t know how to do.

@onedr0p
Copy link
Collaborator

onedr0p commented May 13, 2023

This might be helpful @baozitao
k3s-io/k3s#2068
and
k3s-io/k3s#6675
and
https://docs.k3s.io/advanced#configuring-containerd

I would investigate more if you can do this without any changes to the role. But by the looks of it you can just pass in data-dir to the server and agent, e.g.

---
k3s_server:
  data-dir: /path

and

---
k3s_agent:
  data-dir: /path

@onedr0p onedr0p closed this as not planned Won't fix, can't repro, duplicate, stale May 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants