首页 > 其他分享 >kupesphere 踩坑记录

kupesphere 踩坑记录

时间:2023-10-21 16:31:35浏览次数:24  
标签:kupesphere 59 22 记录 192.168 systemctl etcd error

22:58:25 CST stdout: [master2]
Job for etcd.service failed because a timeout was exceeded.
See "systemctl status etcd.service" and "journalctl -xeu etcd.service" for details.
22:58:25 CST message: [master2]
start etcd failed: Failed to exec command: sudo -E /bin/bash -c "systemctl daemon-reload && systemctl restart etcd && systemctl enable etcd"
Job for etcd.service failed because a timeout was exceeded.
See "systemctl status etcd.service" and "journalctl -xeu etcd.service" for details.: Process exited with status 1
22:59:51 CST stdout: [master1]
Job for etcd.service failed because a timeout was exceeded.
See "systemctl status etcd.service" and "journalctl -xeu etcd.service" for details.
22:59:51 CST message: [master1]
start etcd failed: Failed to exec command: sudo -E /bin/bash -c "systemctl daemon-reload && systemctl restart etcd && systemctl enable etcd"
Job for etcd.service failed because a timeout was exceeded.
See "systemctl status etcd.service" and "journalctl -xeu etcd.service" for details.: Process exited with status 1

kupesphere 踩坑记录_bash

我以为是kubesphere中kk的bug或者版本问题,换了几个版本,发现还是有这个问题,查看系统日志

只看到

Oct 20 22:59:45 v2141 etcd[2304]: rejected connection from "192.168.122.142:46836" (error "remote error: tls: bad certificate", ServerName "")
Oct 20 22:59:45 v2141 etcd[2304]: rejected connection from "192.168.122.142:46848" (error "remote error: tls: bad certificate", ServerName "")
Oct 20 22:59:45 v2141 etcd[2304]: rejected connection from "192.168.122.143:47460" (error "remote error: tls: bad certificate", ServerName "")
Oct 20 22:59:45 v2141 etcd[2304]: rejected connection from "192.168.122.143:47470" (error "remote error: tls: bad certificate", ServerName "")

直到我手动执行

systemctl daemon-reload && systemctl restart etcd && systemctl enable etcd

tail -f /var/log/syslog

发现如下

Oct 20 22:59:45 v2141 etcd[2304]: rejected connection from "192.168.122.143:47470" (error "remote error: tls: bad certificate", ServerName "")
Oct 20 22:59:45 v2141 etcd[2304]: health check for peer 4b6b6b04950cb4b0 could not connect: x509: certificate is valid for 127.0.0.1, ::1, 192.168.122.121, 192.168.122.122, 192.168.122.123, 192.168.122.124, 192.168.122.125, 192.168.122.126, 192.168.122.127, not 192.168.122.143
Oct 20 22:59:45 v2141 etcd[2304]: health check for peer 4b6b6b04950cb4b0 could not connect: x509: certificate is valid for 127.0.0.1, ::1, 192.168.122.121, 192.168.122.122, 192.168.122.123, 192.168.122.124, 192.168.122.125, 192.168.122.126, 192.168.122.127, not 192.168.122.143
Oct 20 22:59:45 v2141 etcd[2304]: rejected connection from "192.168.122.142:46860" (error "remote error: tls: bad certificate", ServerName "")
Oct 20 22:59:45 v2141 etcd[2304]: rejected connection from "192.168.122.142:46862" (error "remote error: tls: bad certificate", ServerName "")
Oct 20 22:59:45 v2141 etcd[2304]: health check for peer 8959ed642c954627 could not connect: x509: certificate is valid for 127.0.0.1, ::1, 192.168.122.121, 192.168.122.122, 192.168.122.123, 192.168.122.124, 192.168.122.125, 192.168.122.126, 192.168.122.127, not 192.168.122.142

kupesphere 踩坑记录_系统日志_02

证书之前之前另外一个集群的,md5sum 得到了确认

root@master1:~# ip a s eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 96:2c:8f:a0:7b:02 brd ff:ff:ff:ff:ff:ff
    altname enp6s18
    inet 192.168.122.121/24 brd 192.168.122.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::942c:8fff:fea0:7b02/64 scope link 
       valid_lft forever preferred_lft forever
root@master1:~# md5sum /etc/ssl/etcd/ssl/admin-master1-key.pem
c29eacd168e16ce0acb23f7b9540dd18  /etc/ssl/etcd/ssl/admin-master1-key.pem

kupesphere 踩坑记录_系统日志_03

kupesphere 踩坑记录_bash_04

./kk delete cluster -f config-sample.yaml 清除集群不会删除 文件夹kubekey中之前生成的配置比如key

kupesphere 踩坑记录_bash_05

./kk delete cluster -f config-sample.yaml  && rm -rf kubekey

然后就ok了

kupesphere 踩坑记录_bash_06

标签:kupesphere,59,22,记录,192.168,systemctl,etcd,error
From: https://blog.51cto.com/first01/7968232

相关文章

  • 执行这个这个命令sh download_depth_models.sh【记录】
     要下载上述模型,自己的电脑执行不了sh命令。 网上先下载git这个软件。sh.exe用这个软件来运行cd到 download_depth_models.sh这个文件所在的路径 再sh download_depth_models.sh执行这个命令! 方法二:直接用记事本打开这个文件download_depth_models.sh里面有ur......
  • 2024秋招记录
    前言本人北京211本硕,Java后端,两段小厂实习,1个外包项目,1个课设项目不定期更新美团基础研发平台美团的面试官我感觉相当nice2023.10.07笔试牛客,5道编程题,可以用IDE模拟,AC模拟,AC好像是贪心来着,AC数学期望,通过3%树,通过6%2023.10.11技术一面2023.10.17技术二面......
  • makefile学习记录 :一个工程里有多个makefile 如何make根目录下的makefile 调用子目录
    注:本文个人学习记录目的:一个工程里有多个makefile如何make根目录下的makefile调用子目录下的makefile,编译所有.c文件如图所示目录结构,根目录server:makefile;子目录so:makefile  根目录makefile:GCC=gccAPP=server ALL_C=$(wildcard./*.c)C_OBJ=$(notdir$......
  • uboot/Linux下MMC/SD/SDIO阅读记录
    1uboot下MMC/SD/SDIO1.1uboot下MMC/SD/SDIO相关配置uboot下关于MMC/SD/SDIO驱动以及工具配置:DeviceDrivers->MMCHostcontrollerSupportMMC/SD/SDIOcardsupport supportforMMC/SDwriteoperations--支持对MMC/SD/SDCar......
  • 关于 RabbitMQ 做消息推送的一点记录
    先说需求,需求是很简单的,也就是假设有10w+的用户,每个用户都需要维护一个长链,那么就不可能单机,就需要分布式,而分布式的就需要确保精确推送,确保用户A的数据确实能被推送到用户A连接的机器那,所以一个主要思路就是用消息队列的routingkey的逻辑去做确保所有节点订阅了一个topic,并持有......
  • 简单记录
    P1268树的重量先考虑二,三个,然后考虑四个,发现这种向外延展的思路.看树形背包发现动态开数组这个主要是针对N*W这种的开二维数组//如果你感觉这里的二维数组很难定义,可以先开一个一维的int数组,假设名字为pool;等到读入了N,W后再这样声明//但是,你甚至可以开ve......
  • 记录--谁还没个靠bug才能正常运行的程序
    这里给大家分享我在网上总结出来的一些知识,希望对大家有所帮助最近遇到一个问题,计算滚动距离,滚动比例达到某界定值时,显示mask,很常见吧^ _ ^这里讲的不是这个需求的实现,是其中遇到了一个比较有意思的bug,靠这个bug才达到了正确效果,以及这个bug是如何暴露的(很重要)。下面是演示......
  • flutter vscode iOS app debug 出错 记录1
    出现类似错误Error(Xcode):Targetdebug_unpack_iosfailed:Exception:Failedtocodesign/Users/cappuccino/Desktop/develop/code/app1/flutter_application_1/build/ios/Debug-iphonesimulator/Flutter.framework/Flutterwithidentity-.这个是由于代码所在文件夹被iC......
  • 刷题记录——MISTAKES 慢慢更新
    刷题记录——MISTAKES慢慢更新截止到:20231020(有时会忘记改日期)。信友队——CSP-S2023复赛模拟赛T2忘了取模和二分了,直接爆longlong和TLE然后\(0\text{pts}\).CF1065CMakeItEqual桶桶桶桶桶!!!\(2e5\)你不用桶难道还要二分的吗?洛谷CSP-S2023模拟赛模\(9982443......
  • L1-011记录
    关于这道题目,今天其实有自己的一些思路 L1-011A-B分数20全屏浏览题目切换布局作者 陈越单位 浙江大学本题要求你计算A−B。不过麻烦的是,A和B都是字符串——即从字符串A中把字符串B所包含的字符全删掉,剩下的字符组成的就是字符串A−B。输入......