# I have a problem: kubeadm init

**URL:** <https://discuss.kubernetes.io/t/i-have-a-problem-kubeadm-init/22229>\
**Category:** General Discussions\
**Created:** [December 7, 2022, 8:30pm UTC](https://discuss.kubernetes.io/t/i-have-a-problem-kubeadm-init/22229 "2022-12-07T20:30:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aziz\_Jemai](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/aziz_jemai/32/9516_2.png) [@Aziz\_Jemai](https://discuss.kubernetes.io/u/Aziz_Jemai)\
**Post date:** [December 7, 2022, 8:30pm UTC](https://discuss.kubernetes.io/t/i-have-a-problem-kubeadm-init/22229/1 "2022-12-07T20:30:13Z")

</div>

sudo kubeadm init  
[init] Using Kubernetes version: v1.25.4  
[preflight] Running pre-flight checks  
error execution phase preflight: [preflight] Some fatal errors occurred:  
[ERROR Port-6443]: Port 6443 is in use  
[ERROR Port-10259]: Port 10259 is in use  
[ERROR Port-10257]: Port 10257 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-2379]: Port 2379 is in use  
[ERROR Port-2380]: Port 2380 is in use  
[ERROR DirAvailable–var-lib-etcd]: /var/lib/etcd is not empty  
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`  
To see the stack trace of this error execute with --v=5 or higher

sudo kubectl apply -f kube-flannel.yml  
The connection to the server localhost:8080 was refused - did you specify the right host or port?

---

<div class="post-metadata">

**Author:** ![Bhavesh\_Shah](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/bhavesh_shah/32/13862_2.png) [@Bhavesh\_Shah](https://discuss.kubernetes.io/u/Bhavesh_Shah)\
**Post date:** [April 15, 2024, 8:39pm UTC](https://discuss.kubernetes.io/t/i-have-a-problem-kubeadm-init/22229/2 "2024-04-15T20:39:47Z")

</div>

first install docker ($sudo apt-get install [docker.io](http://docker.io)), then run ($kubeadm init). In my case it’s working fine.
