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

Permission error in task k3s.orchestration.k3s_server : Copy kubeconfig to control node #369

Open
jkrenzer opened this issue Oct 8, 2024 · 1 comment

Comments

@jkrenzer
Copy link

jkrenzer commented Oct 8, 2024

Hi!

Creating a cluster drops the error:

TASK [k3s.orchestration.k3s_server : Copy kubeconfig to control node] *****************************************************************
fatal: [hypericum]: FAILED! => {"msg": "error while accessing the file /etc/rancher/k3s/k3s.yaml, error was: [Errno 13] Keine Berechtigung: b'/etc/rancher/k3s/k3s.yaml'"}

So the permission for the file /etc/rancher/k3s/k3s.yaml seem to be lacking.

ansible-playbook was called with -K so a become-password is available to the play.

System is a debian bullseye server.

Cheers,

Jörn

@dereknola
Copy link
Member

What does your inventory.yaml look like. I am unable to reproduce this issue.

TASK [k3s_server : Copy kubeconfig to control node] ****************************
changed: [server-0]

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