当前位置:网站首页>kubeadm join时出现错误:[ERROR Port-10250]: Port 10250 is in use [ERROR FileAvailable--etc-kubernetes-pki
kubeadm join时出现错误:[ERROR Port-10250]: Port 10250 is in use [ERROR FileAvailable--etc-kubernetes-pki
2022-07-02 09:43:00 【Ostrich5yw】
kubeadm join时出现错误:[ERROR Port-10250]: Port 10250 is in use;[ERROR FileAvailable--etc-kubernetes-pki-ca.crt]: /etc/kubernetes/pki/ca.crt already exists
初次使用kubeadm构建k8s集群,所以对子节点加入管理节点的过程认识不足,导致我先对子节点进行了kubeadm init
之后,才准备进行kubeadm join
操作。结果出现了如下错误:
[[email protected] ostrich5yw]# kubeadm join 192.168.139.129:6443 --token abcdef.0123456789abcdef \
> --discovery-token-ca-cert-hash sha256:3ac4ae8b5b3b08f2b8cd8a85be7b37bc5855e749ec9126e3d87bebfb2235af9b
[preflight] Running pre-flight checks
[WARNING SystemVerification]: this Docker version is not on the list of validated versions: 20.10.6. Latest validated version: 18.09
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR DirAvailable--etc-kubernetes-manifests]: /etc/kubernetes/manifests is not empty
[ERROR FileAvailable--etc-kubernetes-kubelet.conf]: /etc/kubernetes/kubelet.conf already exists
[ERROR Port-10250]: Port 10250 is in use
[ERROR FileAvailable--etc-kubernetes-pki-ca.crt]: /etc/kubernetes/pki/ca.crt already exists
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
问题原因:只有父节点需要运行kubeadm init --config=kubeadm-config.yaml --upload-certs | tee kubeadm-init.log
进行初始化;对于子节点来说,无需进行kubeadm init
进行初始化,直接运行kubeadm join加入父节点即可。
解决方法:运行kubeadm reset
重置子节点,之后直接对子节点使用kubeadm join 192.168.139.129:6443 --token abcdef.0123456789abcdef --discovery-token-ca-cert-hash sha256:3ac4ae8b5b3b08f2b8cd8a85be7b37bc5855e749ec9126e3d87bebfb2235af9b
将其加入对应的父节点中。
边栏推荐
- jenkins 凭证管理
- CONDA common command summary
- (C语言)八进制转换十进制
- Map and set
- Uniapp uni list item @click, uniapp uni list item jump with parameters
- conda常用命令汇总
- SSH automatically disconnects (pretends to be dead) after a period of no operation
- Fabric. JS 3 APIs to set canvas width and height
- Depth filter of SvO2 series
- YYGH-BUG-04
猜你喜欢
Applet link generation
[QT] Qt development environment installation (QT version 5.14.2 | QT download | QT installation)
使用Sqoop把ADS层数据导出到MySQL
CDA数据分析——AARRR增长模型的介绍、使用
Natural language processing series (III) -- LSTM
基于Arduino和ESP8266的连接手机热点实验(成功)
XSS labs master shooting range environment construction and 1-6 problem solving ideas
WSL 2 will not be installed yet? It's enough to read this article
The blink code based on Arduino and esp8266 runs successfully (including error analysis)
Addition, deletion, modification and query of MySQL table (Advanced)
随机推荐
Addition, deletion, modification and query of MySQL table (Advanced)
ThreadLocal的简单理解
[C language] Yang Hui triangle, customize the number of lines of the triangle
【工控老马】西门子PLC Siemens PLC TCP协议详解
Log4j2
ES集群中节点与分片的区别
Orb-slam2 data sharing and transmission between different threads
输入一个三位的数字,输出它的个位数,十位数、百位数。
Lekao: contents of the provisions on the responsibility of units for fire safety in the fire protection law
Tas (file d'attente prioritaire)
FastDateFormat为什么线程安全
Easyexcel and Lombok annotations and commonly used swagger annotations
Power Spectral Density Estimates Using FFT---MATLAB
WSL 2 will not be installed yet? It's enough to read this article
[untitled] how to mount a hard disk in armbian
(C语言)输入一行字符,分别统计出其中英文字母、空格、数字和其它字符的个数。
Time format display
xss-labs-master靶场环境搭建与1-6关解题思路
HOW TO CREATE A BEAUTIFUL INTERACTIVE HEATMAP IN R
jenkins 凭证管理