[root@node03 ~]# kubeadm join 192.168.99.10:6443 --token ysrv0l.1d9f6g1ecgv5yryl \
> --discovery-token-ca-cert-hash sha256:9f1adb5597a3df3df6afc86c8610792fd2e89840657380ddc56d9f4ba81d4c97 --ignore-preflight-errors=Swap
[preflight] Running pre-flight checks
[WARNING Swap]: swap is enabled; production deployments should disable swap unless testing the NodeSwap feature gate of the kubelet
error execution phase preflight: couldn't validate the identity of the API Server: could not find a JWS signature in the cluster-info ConfigMap for token ID "ysrv0l"
To see the stack trace of this error execute with --v=5 or higher
As mentioned above, I read the last line of the error message mainly because the original token has expired
You can verify with the following command that there is no output
$ kubeadm token list # There is no output here, indicating that there are no surviving tokens
Solution: Generate a new token
# execute in the note of master kubeadm token create --print-join-command --ttl=0
Where --ttl=0
means that the generated token will never expire If there is no --ttl
parameter, the default effective time is 24 hours
Read More:
- [Solved] Kubeadm join Timeout error execution phase kubelet-start: error uploading crisocket: timed out waiting
- [Solved] Kubeadm Reset error: etcdserver: re-configuration failed due to not enough started members
- [Solved] kubeadm init initialize error: “unknown service runtime.v1alpha2.RuntimeService”
- [Hive] Both left and right aliases encountered in JOIN
- Tomcat Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors
- [Solved] New MAC Unity Develop Error: error installing cocoapods
- [Solved] iperf Analyze Error: unable to create a new stream: Invalid argument
- [Solved] CMake Error at CMakeLists.txt:92 (add_subdirectory)
- New Spring boot startup error Failed to auto-configure a DataSource
- [GNS3 router and cloud times error] error while sending commadn ‘bridge add_nio_ethernet
- Error in plot.new() : figure margins too large
- [Solved] Rancher Add User Error: x509: certificate has expired Internal error occurred: failed calling webhook “rancherauth.cattle.io”:
- Clion new method shows undefined reference to solution
- [Solved] OpenCv5 error: (-215:Assertion failed) !_descriptors.empty() in function ‘add‘
- Yarn add package loading error: operation not permitted, unlink …
- [Solved] elasticsearch Error: Failed: 1: this action would add [6] total shards, but this cluster currently has [2
- C++ new types may not be defined in a return type Error?
- [Solved] Springcloud Add gateway to Startup Error: Exception encountered during context initialization – cancelling refresh
- AN ERROR MESSAGE APPEARS WHEN TOMCAT DEPLOYS A NEW PROJECT: INVALID BYTE TAG IN CONSTANT POOL: 15
- [Solved] RuntimeError: An attempt has been made to start a new process before the current process…