当前位置: 首页 > >

初始化 Kubernetes 问题(端口占用)

发布时间:

[root@k8s-master01 ~]# kubeadm init --config config.yaml


[init] Using Kubernetes version: v1.10.0
[init] Using Authorization modes: [Node RBAC]
[preflight] Running pre-flight checks.
[preflight] Some fatal errors occurred:
? ? ? ? [ERROR Port-6443]: Port 6443 is in use
? ? ? ? [ERROR Port-10250]: Port 10250 is in use
? ? ? ? [ERROR Port-10251]: Port 10251 is in use
? ? ? ? [ERROR Port-10252]: Port 10252 is in use
? ? ? ? [ERROR FileAvailable--etc-kubernetes-manifests-kube-apiserver.yaml]: /etc/kubernetes/manifests/kube-apiserver.yaml already exists
? ? ? ? [ERROR FileAvailable--etc-kubernetes-manifests-kube-controller-manager.yaml]: /etc/kubernetes/manifests/kube-controller-manager.yaml already exists
? ? ? ? [ERROR FileAvailable--etc-kubernetes-manifests-kube-scheduler.yaml]: /etc/kubernetes/manifests/kube-scheduler.yaml already exists
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`


?


解决方案:发现杀死进程都没有用,最终*粢幌耴ubeadm就可以了,如下:


[root@k8s-master01 ~]# kubeadm reset



友情链接: