码迷,mamicode.com
首页 > Web开发 > 详细

初始化 Kubernetes 问题:Port 10251 is in use

时间:2019-11-19 17:12:58      阅读:523      评论:0      收藏:0      [点我收藏+]

标签:ESS   ase   yun   manifest   epo   ddr   red   use   bsp   

错误:

[root@k8s-master ~]# kubeadm init \

> --apiserver-advertise-address=10.31.4.1 \

> --image-repository registry.aliyuncs.com/google_containers \

> --kubernetes-version v1.15.0 \

> --service-cidr=10.1.0.0/16 \

> --pod-network-cidr=10.244.0.0/16

[init] Using Kubernetes version: v1.15.0

[preflight] Running pre-flight checks

[WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd". Please follow the guide at https://kubernetes.io/docs/setup/cri/

error execution phase preflight: [preflight] Some fatal errors occurred:

[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

[ERROR FileAvailable--etc-kubernetes-manifests-etcd.yaml]: /etc/kubernetes/manifests/etcd.yaml already exists

[ERROR Port-10250]: Port 10250 is in use

[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`

 

解决办法:

重启一下kubeadm:

[root@k8s-master ~]# kubeadm reset

 

 

初始化 Kubernetes 问题:Port 10251 is in use

标签:ESS   ase   yun   manifest   epo   ddr   red   use   bsp   

原文地址:https://www.cnblogs.com/xiaoyongyang/p/11890523.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!