当前位置:网站首页>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将其加入对应的父节点中。
边栏推荐
- Deep understanding of NN in pytorch Embedding
- Easyexcel and Lombok annotations and commonly used swagger annotations
- drools执行完某个规则后终止别的规则执行
- Tas (file d'attente prioritaire)
- Filtre de profondeur de la série svo2
- 测试左移和右移
- GGPUBR: HOW TO ADD ADJUSTED P-VALUES TO A MULTI-PANEL GGPLOT
- SVO2系列之深度滤波DepthFilter
- This article takes you to understand the operation of vim
- MSI announced that its motherboard products will cancel all paper accessories
猜你喜欢
随机推荐
Leetcode topic [array] -540- single element in an ordered array
刷题---二叉树--2
lombok常用注解
HOW TO ADD P-VALUES ONTO A GROUPED GGPLOT USING THE GGPUBR R PACKAGE
记录一下MySql update会锁定哪些范围的数据
YYGH-BUG-05
drools执行String规则或执行某个规则文件
Heap (priority queue)
The blink code based on Arduino and esp8266 runs successfully (including error analysis)
测试左移和右移
Yygh-9-make an appointment to place an order
Leetcode922 sort array by parity II
Log4j2
ORB-SLAM2不同线程间的数据共享与传递
子线程获取Request
Leetcode14 最长公共前缀
全链路压测
(C language) input a line of characters and count the number of English letters, spaces, numbers and other characters.
Codeforces 771-div2 C (trouble, permutation is not very good)
浅谈sklearn中的数据预处理









