服务器错误统计
服务器错误统计一、K8S证书(No resources found.)报错信息:kubectl get csr报错分析问题解决二、使用步骤1.引入库2.读入数据总结一、K8S证书(No resources found.)证书有效期,突然没有找到任何资源。报错信息:kubectl get csrNo resources found.报错分析master端接收不到node申请加入kubernetes的
·
服务器错误统计
一、K8S证书(No resources found.)
证书有效期,突然没有找到任何资源。
报错信息:kubectl get csr
No resources found.
报错分析
master端接收不到node申请加入kubernetes的请求信息
问题解决
通过查看日志文件发现是kubelet没有启动成功,筛选kubelet发现没有kubelet命令选项,从 master节点将kubelet命令拷贝到node节点下,再次重启 kubelet发现问题得到解决
二、k8s:kubeadm部署pods急退
报错信息:CrashLoopBackOff
报错分析:查看kube-flannel.yml文件
cd /opt/
vim kubeadm-config.yaml
忘记修改版本了,导致服务没起来
三、Git无法执行“快速合并”
[root@qfedu.com ~]# git add readme.txt
[root@qfedu.com ~]# git commit -m "& simple"
git merge feature1 Auto-merging readme.txt CONFLICT (content):
Merge conflict in readme.txt Automatic merge failed;
fix conflicts and then commit the result.
[root@qfedu.com ~]# git status 可以显示冲突的文件;
直接查看readme.txt的内容:
Git is a distributed version control system.
Git is free software distributed under the GPL.
Git has a mutable index called stage.
Git tracks changes of files.
<<<<<<< HEAD Creating a new branch is quick & simple. ======= Creating a new branch is quick AND simple. >>>>>>> feature1
Git用<<<<<<<,=======,>>>>>>>标记出不同分支的内容,我们修改后保存再提交:
[root@qfedu.com ~]# git add readme.txt
[root@qfedu.com ~]# git commit -m "conflict fixed"
[master 59bc1cb] conflict fixed
最后,删除feature1分支:
[root@qfedu.com ~]# git branch -d feature1
Deleted branch feature1 (was 75a857c).
四、配置ssl证书报错
#问题
The mandatory countryName field was missing
#解决办法
修改openssl配置文件 /etc/pki/tls/openssl.cnf
[ policy_match ]
countryName = optional
stateOrProvinceName = optional
organizationName = optional
organizationalUnitName = optional
commonName = supplied
emailAddress = optional
#问题
Using configuration from /etc/pki/tls/openssl.cnf
Enter pass phrase for ca-key.pem:
ca: ./demoCA/newcerts is not a directory
./demoCA/newcerts: No such file or directory
#解决办法
[root@localhost ca]# mkdir -p ./demoCA/newcerts
[root@localhost ca]# touch demoCA/index.txt
[root@localhost ca]# touch demoCA/serial
[root@localhost ca]# echo '01'>demoCA/serial
更多推荐
已为社区贡献8条内容
所有评论(0)