-
Notifications
You must be signed in to change notification settings - Fork 81
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
Unable to upload files to /etc/k0s/containerd.d/
#638
Comments
I tried doing it this way too but I also got a error: Config files:
- name: containerd-spegel
src: resources/containerd/spegel.toml
dstDir: /etc/k0s/containerd.d/
perm: 0644
user: root
group: root
- name: containerd-unprivileged-ports
src: resources/containerd/unprivileged-ports.toml
dstDir: /etc/k0s/containerd.d/
perm: 0644
user: root
group: root Logs
|
Updating the config to this worked: files:
- name: containerd-config
src: resources/containerd/
perm: 0644
user: root
group: root
hooks:
apply:
before:
- sudo mv ~/spegel.toml /etc/k0s/containerd.d/spegel.toml
- sudo mv ~/unprivileged-ports.toml /etc/k0s/containerd.d/unprivileged-ports.toml I am curious why this is needed and shouldn't the |
Yes, the |
@kke it looks like the code already does this? Line 70 in 51a07a3
I am also confused how I am able to successfully omit the k0sctl/pkg/apis/k0sctl.k0sproject.io/v1beta1/cluster/uploadfile.go Lines 36 to 42 in 51a07a3
I am on a Mac M2 using
|
Yes, but the file creation part wasn't using sudo.
That does seem funky indeed. The validation is kind of unnecessary since it can just upload the file to |
That is the behavior I see on my Macbook M2. However my Linux buddies get the error that |
I have settled on using Talos so I am not using k0s anymore and likely won't in the future. If someone else comes across this, please open a new issue. Maybe I will check back on it if it ever donated to the CNCF. |
This may be some weird quirk caused by golang/go#61779 and the fact Golang devs interpreted POSIX different way than Apple (https://forums.developer.apple.com/forums/thread/734230) We also have a weird case where it works on M1, but not on M2. |
Problem
Hi 👋🏼 I am trying to upload files to the
/etc/k0s/containerd.d/
directory using thefiles
in thehosts
section but I get the error in the logs section below.Version
Config
Files
Logs
The text was updated successfully, but these errors were encountered: