adamant-kite-43734
11/28/2024, 8:13 PMlate-needle-80860
11/28/2024, 8:31 PMFailed to get node when trying to set owner ref to the node lease
late-needle-80860
11/29/2024, 8:50 AMlate-needle-80860
12/01/2024, 9:00 PM--node-name
to have a base node name … still getting the same error.late-needle-80860
12/01/2024, 10:08 PM--with-node-id
that it should be used in combination with --node-name
? In a way where the value to these two parameters match?
Hmm doesn’t seem so … testing things here.
Reading How agent Node Registration Works
from the K3s docs … is using --with-node-id
only relevant and valid if there’s already a node-password.k3s Secret in the kube-system? If not … then things will fail as I experience it?creamy-pencil-82913
12/02/2024, 4:27 AMcreamy-pencil-82913
12/02/2024, 6:32 AMlate-needle-80860
12/02/2024, 6:43 AMNov 28 19:56:51 test-test-worker-129 k3s[4296]: E1128 19:56:51.145395 4296 kubelet_node_status.go:453] "Error getting the current node from lister" err="node \"test-test-worker-129-94ede7cb\" not found" ` in the K3s agent journal logs
And
Failed to get node when trying to set owner ref to the node lease
Executing the hostname command on the worker gives the plain hostname ( without the node id appended ) > test-test-worker-129
Thank youlate-needle-80860
12/02/2024, 6:44 AMcreamy-pencil-82913
12/02/2024, 9:23 AMlate-needle-80860
12/02/2024, 9:25 AMlate-needle-80860
12/02/2024, 11:03 AMcreamy-pencil-82913
12/02/2024, 5:45 PM"Set node PodCIDR" node="test-test-worker-129-70d99708" podCIDRs=["10.240.32.0/24"]
level=warning msg="Unable to remove node password: secrets \"test-test-worker-129-70d99708.node-password.k3s\" not found"
The node is created and then deleted. What are you running that is deleting nodes from your cluster? Do you have some 3rd party cloud provider installed that is deleting nodes it does not recognize?late-needle-80860
12/02/2024, 6:04 PMlate-needle-80860
12/02/2024, 6:05 PMlate-needle-80860
12/02/2024, 6:07 PMcreamy-pencil-82913
12/02/2024, 6:18 PMcreamy-pencil-82913
12/02/2024, 6:19 PMlate-needle-80860
12/02/2024, 6:19 PMlevel=warning msg="Unable to remove node password: secrets \"test-test-worker-129-70d99708.node-password.k3s\" not found"
Is a red herring in my context … it occurs because the node was deleted and it’s basically just because in this case there was no node-passwordlate-needle-80860
12/02/2024, 6:19 PMlate-needle-80860
12/02/2024, 7:24 PMlate-needle-80860
12/02/2024, 7:25 PMlate-needle-80860
12/03/2024, 8:11 PMcreamy-pencil-82913
12/03/2024, 8:24 PMlate-needle-80860
12/03/2024, 8:24 PMlate-needle-80860
12/03/2024, 8:24 PMcreamy-pencil-82913
12/03/2024, 8:25 PMcreamy-pencil-82913
12/03/2024, 8:25 PMcreamy-pencil-82913
12/03/2024, 8:25 PMlate-needle-80860
12/03/2024, 8:26 PMlate-needle-80860
12/03/2024, 8:26 PMcreamy-pencil-82913
12/03/2024, 8:27 PMlate-needle-80860
12/03/2024, 8:28 PMlate-needle-80860
12/03/2024, 8:29 PMlate-needle-80860
12/03/2024, 8:29 PMcreamy-pencil-82913
12/03/2024, 8:36 PMlate-needle-80860
12/03/2024, 8:37 PMcreamy-pencil-82913
12/03/2024, 8:37 PMlate-needle-80860
12/03/2024, 8:37 PM