microshift
microshift copied to clipboard
[BUG] Unable to register node with API server
What happened:
I'm trying to install Microshift but I'm getting an error when the node is trying to register.
config.yaml:
nodeName: node1
cluster:
domain: cluster.loca
oc get nodes
NAME STATUS ROLES AGE VERSION
fedora NotReady <none> 40h v1.21.0
Anything else we need to know?:
I've setup mDNS on the host with the name fedorasrv.local
Environment:
- Microshift version (use
microshift version):
MicroShift Version: 4.8.0-0.microshift-2022-02-02-194009
Base OKD Version: 4.8.0-0.okd-2021-10-10-030117
- OS (e.g:
cat /etc/os-release):
NAME="Fedora Linux"
VERSION="36 (Server Edition)"
ID=fedora
VERSION_ID=36
Relevant Logs
Logs:
Jul 06 08:58:04 fedorasrv.local microshift[125323]: E0706 08:58:04.489231 125323 kubelet.go:2303] "Error getting node" err="node \"fedorasrv.local\" not found"
Jul 06 08:58:04 fedorasrv.local microshift[125323]: I0706 08:58:04.489493 125323 kubelet_node_status.go:73] "Attempting to register node" node="fedorasrv.local"
Jul 06 08:58:04 fedorasrv.local microshift[125323]: E0706 08:58:04.495142 125323 kubelet_node_status.go:95] "Unable to register node with API server" err="nodes \"fedorasrv.local\" is forbidden: node \"fedora\" is not allowed to modify node \"fedorasrv.local\"" node="fedorasrv.local"
Jul 06 08:58:04 fedorasrv.local microshift[125323]: E0706 08:58:04.590260 125323 kubelet.go:2303] "Error getting node" err="node \"fedorasrv.local\" not found"
Jul 06 08:58:04 fedorasrv.local microshift[125323]: E0706 08:58:04.691072 125323 kubelet.go:2303] "Error getting node" err="node \"fedorasrv.local\" not found"
Jul 06 08:58:04 fedorasrv.local microshift[125323]: E0706 08:58:04.791456 125323 kubelet.go:2303] "Error getting node" err="node \"fedorasrv.local\" not found"
The main branch has moved on considerably from the 4.8 release. If you're still having trouble with this when using the later code, please open a new issue with the details.