acceptable-lunch-74034
02/21/2023, 5:56 PMcgroup_memory=1 cgroup_enable=memory
to /boot/cmdline.txt
but I am running into an issue with the worker nodes not able to join the cluster with a worker role. I run the following command on the worker nodes:
curl -sfL <https://get.k3s.io> | K3S_URL=<https://rpi-kube-master-01:6443> K3S_TOKEN=<token> sh -
I can curl
the api server just fine from the worker nodes to validate iptables/nftables aren’t an issue. I have also removed them via sudo apt remove iptables -y && sudo apt install nftables
How can I further troubleshoot how to fix this issue with worker nodes joining with no roles?creamy-pencil-82913
02/21/2023, 6:24 PMacceptable-lunch-74034
02/21/2023, 6:29 PMcreamy-pencil-82913
02/21/2023, 6:43 PMacceptable-lunch-74034
02/21/2023, 6:53 PMk3s check-config
on my master shows this:
Verifying binaries in /var/lib/rancher/k3s/data/9088e57b1ba3c37820aaba60202af921dbc01b77ec0ad1e08be86b5c7bc9b8c1/bin:
- sha256sum: good
- links: aux/ip6tables should link to iptables-detect.sh (fail)
- links: aux/ip6tables-restore should link to iptables-detect.sh (fail)
- links: aux/ip6tables-save should link to iptables-detect.sh (fail)
- links: aux/iptables should link to iptables-detect.sh (fail)
- links: aux/iptables-restore should link to iptables-detect.sh (fail)
- links: aux/iptables-save should link to iptables-detect.sh (fail)
creamy-pencil-82913
02/21/2023, 6:58 PMacceptable-lunch-74034
02/23/2023, 9:42 PMcreamy-pencil-82913
02/23/2023, 9:46 PMacceptable-lunch-74034
02/23/2023, 9:53 PMlevel=error msg="Failed to authenticate request from 192.168.1.146:42378: invalid username/password combination"
so maybe the api key is bad?creamy-pencil-82913
02/23/2023, 9:54 PMacceptable-lunch-74034
02/23/2023, 9:54 PMsudo cat /opt/k3s/data/server/token
K102bbdc04d2df00bar4081d6f269f81d327c055bf890ee565f42dcb3::server:fc967c1c8424624646e9688867c10
In this token,
`fc967c1c8424624646e9688867c10`
is the api key I have the agents use to join right?
On my worker nodes I’m running:
curl -sfL <https://get.k3s.io> | K3S_URL=<https://rpi-kube-master-01:6443> K3S_TOKEN=fc967c1c8424624646e9688867c10 sh -
creamy-pencil-82913
02/23/2023, 9:55 PMacceptable-lunch-74034
02/23/2023, 9:56 PMK3S_TOKEN
should be: K102bbdc04d2df00bar4081d6f269f81d327c055bf890ee565f42dcb3::server:fc967c1c8424624646e9688867c10
?creamy-pencil-82913
02/23/2023, 10:01 PM:
) should work, but if in doubt use the whole thing.acceptable-lunch-74034
02/23/2023, 10:34 PMcreamy-pencil-82913
02/23/2023, 10:40 PM