Failed to connect to apiserver: the server has asked for the clieto provide credentials
异常信息:
[root@n1 kubernetes]# systemctl status kubelet -l
● kubelet.service - Kubernetes KubeletLoaded: loaded (/etc/systemd/system/kubelet.service; enabled; vendor preset: disabled)Active: active (running) since 二 2022-08-02 19:31:38 CST; 42s agoDocs: https://github.com/GoogleCloudPlatform/kubernetesMain PID: 80509 (kubelet)Tasks: 9Memory: 13.0MCGroup: /system.slice/kubelet.service└─80509 /usr/local/bin/kubelet --bootstrap-kubeconfig=/etc/kubernetes/kubelet-bootstrap.kubeconfig --cert-dir=/etc/kubernetes/pki --kubecig=/etc/kubernetes/kubelet.kubeconfig --config=/etc/kubernetes/kubelet.config.json --network-plugin=cni --pod-infra-container-image=k8s.gcr.io/paused64:3.1 --allow-privileged=true --alsologtostderr=true --logtostderr=false --log-dir=/var/log/kubernetes --v=28月 02 19:32:01 n1 kubelet[80509]: I0802 19:32:01.240801 80509 bootstrap.go:294] Failed to connect to apiserver: the server has asked for the clieto provide credentials
8月 02 19:32:03 n1 kubelet[80509]: I0802 19:32:03.277292 80509 bootstrap.go:294] Failed to connect to apiserver: the server has asked for the clieto provide credentials
8月 02 19:32:05 n1 kubelet[80509]: I0802 19:32:05.531491 80509 bootstrap.go:294] Failed to connect to apiserver: the server has asked for the clieto provide credentials
8月 02 19:32:07 n1 kubelet[80509]: I0802 19:32:07.698197 80509 bootstrap.go:294] Failed to connect to apiserver: the server has asked for the clieto provide credentials
8月 02 19:32:09 n1 kubelet[80509]: I0802 19:32:09.946787 80509 bootstrap.go:294] Failed to connect to apiserver: the server has asked for the clieto provide credentials
8月 02 19:32:11 n1 kubelet[80509]: I0802 19:32:11.955601 80509 bootstrap.go:294] Failed to connect to apiserver: the server has asked for the clieto provide credentials
8月 02 19:32:14 n1 kubelet[80509]: I0802 19:32:14.092859 80509 bootstrap.go:294] Failed to connect to apiserver: the server has asked for the clieto provide credentials
8月 02 19:32:16 n1 kubelet[80509]: I0802 19:32:16.101928 80509 bootstrap.go:294] Failed to connect to apiserver: the server has asked for the clieto provide credentials
8月 02 19:32:18 n1 kubelet[80509]: I0802 19:32:18.293540 80509 bootstrap.go:294] Failed to connect to apiserver: the server has asked for the clieto provide credentials
8月 02 19:32:20 n1 kubelet[80509]: I0802 19:32:20.408899 80509 bootstrap.go:294] Failed to connect to apiserver: the server has asked for the clieto provide credentials
[root@n1 kubernetes]# journalctl -xef -u kubelet
-- Logs begin at 二 2022-08-02 17:43:29 CST. --
8月 02 19:28:22 n1 kubelet[80432]: I0802 19:28:22.598616 80432 flags.go:33] FLAG: --version="false"
8月 02 19:28:22 n1 kubelet[80432]: I0802 19:28:22.598635 80432 flags.go:33] FLAG: --vmodule=""
8月 02 19:28:22 n1 kubelet[80432]: I0802 19:28:22.598645 80432 flags.go:33] FLAG: --volume-plugin-dir="/usr/libexec/kubernetes/kubelet-plugins/vol/exec/"
8月 02 19:28:22 n1 kubelet[80432]: I0802 19:28:22.598656 80432 flags.go:33] FLAG: --volume-stats-agg-period="1m0s"
8月 02 19:28:22 n1 kubelet[80432]: I0802 19:28:22.598737 80432 feature_gate.go:226] feature gates: &{map[]}
8月 02 19:28:22 n1 kubelet[80432]: Flag --allow-privileged has been deprecated, will be removed in a future version
8月 02 19:28:22 n1 kubelet[80432]: I0802 19:28:22.602278 80432 feature_gate.go:226] feature gates: &{map[RotateKubeletClientCertificate:true RotatbeletServerCertificate:true]}
8月 02 19:28:22 n1 kubelet[80432]: I0802 19:28:22.602390 80432 feature_gate.go:226] feature gates: &{map[RotateKubeletClientCertificate:true RotatbeletServerCertificate:true]}
8月 02 19:28:22 n1 kubelet[80432]: I0802 19:28:22.639153 80432 mount_linux.go:171] Detected OS with systemd
8月 02 19:28:22 n1 kubelet[80432]: I0802 19:28:22.639224 80432 server.go:417] Version: v1.14.0
8月 02 19:28:22 n1 kubelet[80432]: I0802 19:28:22.639304 80432 feature_gate.go:226] feature gates: &{map[RotateKubeletClientCertificate:true RotatbeletServerCertificate:true]}
8月 02 19:28:22 n1 kubelet[80432]: I0802 19:28:22.639400 80432 feature_gate.go:226] feature gates: &{map[RotateKubeletClientCertificate:true RotatbeletServerCertificate:true]}
8月 02 19:28:22 n1 kubelet[80432]: I0802 19:28:22.639516 80432 plugins.go:103] No cloud provider specified.
8月 02 19:28:22 n1 kubelet[80432]: I0802 19:28:22.639547 80432 server.go:533] No cloud provider specified: "" from the config file: ""
8月 02 19:28:22 n1 kubelet[80432]: I0802 19:28:22.639593 80432 bootstrap.go:118] Using bootstrap kubeconfig to generate TLS client cert, key and kconfig file
8月 02 19:28:22 n1 kubelet[80432]: I0802 19:28:22.645893 80432 bootstrap.go:149] No valid private key and/or certificate found, reusing existing pate key or creating a new one
8月 02 19:28:22 n1 kubelet[80432]: I0802 19:28:22.685746 80432 bootstrap.go:294] Failed to connect to apiserver: the server has asked for the clieto provide credentials
8月 02 19:28:24 n1 kubelet[80432]: I0802 19:28:24.912832 80432 bootstrap.go:294] Failed to connect to apiserver: the server has asked for the clieto provide credentials
8月 02 19:28:27 n1 kubelet[80432]: I0802 19:28:27.025950 80432 bootstrap.go:294] Failed to connect to apiserver: the server has asked for the clieto provide credentials
8月 02 19:28:29 n1 kubelet[80432]: I0802 19:28:29.403173 80432 bootstrap.go:294] Failed to connect to apiserver: the server has asked for the clieto provide credentials
8月 02 19:28:31 n1 kubelet[80432]: I0802 19:28:31.677202 80432 bootstrap.go:294] Failed to connect to apiserver: the server has asked for the clieto provide credentials
8月 02 19:28:33 n1 kubelet[80432]: I0802 19:28:33.738455 80432 bootstrap.go:294] Failed to connect to apiserver: the server has asked for the clieto provide credentials
8月 02 19:28:35 n1 kubelet[80432]: I0802 19:28:35.927611 80432 bootstrap.go:294] Failed to connect to apiserver: the server has asked for the clieto provide credentials
解决:
1.证书过期了导致链接不上。
2.可以看到 token 已经过期重新生成一下就可以了。
[root@m1 .kube]# kubeadm token list
TOKEN TTL EXPIRES USAGES DESCRIPTION EXTRA GROUPS
bwa8py.ghf5s0vfsxz1d7fx <invalid> 2022-08-01T19:06:15+08:00 authentication,signing kubelet-bootstrap-token system:bootstrappers:worker
Failed to connect to apiserver: the server has asked for the clieto provide credentials相关推荐
- Failed to connect to the specified server. Server library could not be loaded
这个错误是前几天用户提出了的,我今天又一次遇到了,特拿出来跟大家分享一下 问题背景: 使用ArcCatalog直连远程服务器,数据库为Oracle,提示"Error: Server libr ...
- Failed to connect to SDP server on FF:FF:FF:00:00:00: Connection refused问题解决方法
如果在移植bluez时使用的是5.xx版本,很可能会遇到Failed to connect to SDP server on FF:FF:FF:00:00:00: Connection refused ...
- Php错误邮件提示linux,linux下phpmailer发送邮件出现SMTP ERROR: Failed to connect to server: (0)错误...
在作项目的过程当中,后期客户提出了发送邮件的需求,既然客户有需求,那么没啥说的,上呗.php 通过网上的通常资料查找,PHPMailer这个插件貌似用起来不错,那就从github clone一份下来, ...
- Error -27796: Failed to connect to server ip地址: [10060] Connection timed out
如果出现Error -27796: Failed to connect to server "ip地址": [10060] Connection timed out 这样的错误,如 ...
- LoadRunner Error -27792: Failed to connect to server
用Google打开,replay的时候报错 Action.c(74): Error -27792: Failed to connect to server "accounts.google. ...
- git push 报错 Empty reply from server 或 Failed to connect to github.com port 443: Time out
git push 报错 Empty reply from server 或 Failed to connect to github.com port 443: Time out 问题出现 报错信息 问 ...
- 【TDengine】解决 failed to connect to server, reason: Mnode not found
目录 1.遇到问题 2.问题解决 1.遇到问题 failed to connect to server, reason: Mnode not found 2.问题解决 删除原先相关文件,重新安装: r ...
- Error: Failed to connect to MySQL server: DBI connect(';
先看问题: [root@localhost ~]# innobackupex --user=root --password=131417 /backup InnoDB Backup Utility v ...
- unable to connect to mks:Failed to connect to server XXXXXX:902
问题描述: 在vClient中打开虚拟机控制台时提示,Unable to connect to the MKS : Failed to connect to server XXXXXX:902:此时无 ...
最新文章
- pocoserver无限重启_poco相机老版本
- 无意间发现的一个留学mba的论坛
- SpringBoot是如何解析HTTP参数的?
- C++编程【Visual Studio 2017 环境搭建教程】【附:软件安装包】
- 01、python数据分析与机器学习实战——Python科学计算库-Numpy
- python生成奇数列表_python3:列出一个不需要迭代的奇数列表
- poj 3660(floyd 变形)
- 使用根轨迹分析的动态补偿设计
- Farthest Point Sampling on 2d image
- commons fileupload的DiskFileItemFactory
- 题目1012:畅通工程(并查集)
- excel规划求解功能总结
- 数据平台作业调度系统详解-理论篇
- html下拉控件 拼音检索和中文检索,bootstrap select 下拉框通过拼音搜索汉字
- oracle19c报价_官宣:Oracle数据库19c在Oracle Exadata上发布啦!
- 获取网页标题的小图标
- Unix传奇历史与回忆-读史使人明智,鉴以往而知未来
- Gradle 实现 Android 多渠道定制化打包
- 客户端dmesg_查看dmesg,会打出很多的日志“TCP: too many of orphaned sockets”
- 《复杂网络》复杂网络的结构及特点
热门文章
- 注册表编辑器厘米爱你找不到mysql,注册表编辑器上找不到office
- [数据湖] 基于flink hudi的批流一体实践
- rabbitmq配置证书
- 圣诞节怎么能缺少圣诞树呢?Python+HTML打造专属于你的圣诞树
- php输出语句中空格怎么表示_在PHP中如何输出空格?
- 计算机一级控制模型,2020年计算机等级考试《数据库技术》考点:IDEF0建模方法...
- 学会Retrofit+OkHttp+RxAndroid三剑客的使用,让自己紧跟Android潮流的步伐
- java模板变量_java freemarker + word 模板 生成 word 文档 (变量替换,数据的循环,表格数据的循环,以及图片的替换)...
- modprobe和insmod的区别
- MATLAB数据处理(2)——广义帕累托分布和极值外推