k0sproject / k0sproject/k0sctl

Restoring kubelet config from backup fails

Open
#367 8 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
582
Forks
113
Avg merge
2d 13h
Merged PRs (30d)
34

Description

I'm getting this error in each worker server after restoring from backup:
$ journalctl -u k0sworker.service

level=info msg="Starting kubelet"
level=warning msg="failed to get initial kubelet config with join token: failed to get kubelet config from API: Unauthorized"
level=warning msg="failed to get initial kubelet config with join token: failed to get kubelet config from API: Unauthorized"
...

$ k get nodes
NAME STATUS ROLES AGE VERSION
s504des204k0s NotReady 9d v1.23.5+k0s
s504des205k0s NotReady 9d v1.23.5+k0s

I've a cluster backup using this command:
k0sctl backup -c k0s-des-airgap.yml --disable-telemetry --disable-upgrade-check

I've reset all nodes with k0sctl reset -c k0s-des-airgap.yml --disable-telemetry and I've tried to restore with this command:

k0sctl apply --restore-from k0s_backup_1649314850.tar.gz -c k0s-des-airgap.yml --disable-telemetry

I've three master nodes and two worker nodes.

I'm running k0sctl v0.12.6 and k0s v1.23.5+k0s with airgap config

Thanks.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.