System environment:
Ubuntu 20.04 LTSDocker 20.10.8Kubernetes 1.22.1Node: node
Execute command:
$ kubectl version
Errors are reported as follows:
Error in configuration:
* unable to read client-cert /var/lib/kubelet/pki/kubelet-client-current.pem for default-auth due to open /var/lib/kubelet/pki/kubelet-client-current.pem: no such file or directory
* unable to read client-key /var/lib/kubelet/pki/kubelet-client-current.pem for default-auth due to open /var/lib/kubelet/pki/kubelet-client-current.pem: no such file or directory
Error reporting Description:
The token
on the node
has expired.
Solution:
$ kubeadm token create --print-join-command
kubeadm join 192.168.50.51:6443 --token rt43m1.b9py8ba6uxbfv7sr --discovery-token-ca-cert-hash sha256:f57a09633cf0e18cd905d41159a790704502410fd841acd63cffc8e493ad3cb2
Regenerate the token
on the Master
node.
$ kubeadm join 192.168.50.51:6443 --token rt43m1.b9py8ba6uxbfv7sr --discovery-token-ca-cert-hash sha256:f57a09633cf0e18cd905d41159a790704502410fd841acd63cffc8e493ad3cb2
$ kubectl version
Re execute on the node
node.
Read More:
- [Solved] Kubernetes Error: failed to list *core.Secret: unable to transform key
- [Solved] Hbase …ERROR: Unable to read .tableinfo from file:/hbaseData/data/default/table1/xxxx
- [Solved] Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050
- [Solved] Fabric Start Network Error: Error: error getting endorser client for channel: endorser client failed to connect to
- Springcloud configuration center client 3355 startup Error: error on get request for“ http://localhost:8761/eureka/apps/ “: Connection
- How to Solve Client-go Mod Error
- [Solved] K8s Error: ERROR: Unable to access datastore to query node configuration
- [Solved] ClientError.Security.Unauthorized: The client is unauthorized due to authentication failure.
- How to Solve creating bean with name ‘mappingjackson2httpmessageconverter’ error when elasticsearch advanced client starts‘
- [Solved] sqoop Error: jSQLException in nextKeyValue Caused by: ORA-24920:column size too large for client
- Error reporting and resolution of kubernetes installation
- PIP Fatal error in launcher: Unable to create process using
- [Solved] Error in integrating redis with springboot: unable to connect to redis
- [Solved] Kubernetes ingress-srv. error: failed calling webhook “validate.nginx.ingress.kubernetes.io”
- [Solved] CXF Call webservice Client Error: 2 counts of InaccessibleWSDLException
- The authentication server Configurate NoClassDefFoundError Error (store client information in a JDBC-based database)
- [Solved] Feign Error: -‘oauth-client.FeignClientSpecification‘ could not be registered
- [Solved] Excel plug in installation failed: unable to resolve the value of property ‘type’
- [Solved] Error: Could not open client transport with JDBC Uri
- kubernetes Error from server (AlreadyExists): error when creating “kubernetes-dashboard.yaml”: serv