kubernetes – cannot run kubeadm init on centos
I am trying to run kubeadm init on my centos 8 server and I am getting this error
I0604 20:44:42.254901 2073003 version.go:255] remote version is much newer: v1.27.2; falling back to: stable-1.23
[init] Using Kubernetes version: v1.23.17
[preflight] Running pre-flight checks
[WARNING FileExisting-tc]: tc not found in system path
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR FileExisting-conntrack]: conntrack not found in system path
[ERROR Port-10250]: Port 10250 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
when i am trying to install tc
this is the error i get.
Centos_8.x_x86_64 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository 'Centos-8.x':
- Curl error (37): Couldn't read a file:// file for file:///root/os/repodata/repomd.xml [Couldn't open file /root/os/repodata/repomd.xml]
Error: Failed to download metadata for repo 'Centos-8.x': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Read more here: Source link