Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The connection to the server was refused, similar to #47 #159

Open
Geobm opened this issue Jul 9, 2024 · 0 comments
Open

The connection to the server was refused, similar to #47 #159

Geobm opened this issue Jul 9, 2024 · 0 comments

Comments

@Geobm
Copy link

Geobm commented Jul 9, 2024

Im having the similar issue, and the CPUs is not the problem since I have 16. Any other possible reason? I also fixed some deprecated libraries:

docker.io was already set on hold.
kubernetes-cni was already set on hold.
kubelet was already set on hold.
kubeadm was already set on hold.
kubectl was already set on hold.
+ kubeadm config images pull --kubernetes-version=1.16.0
this version of kubeadm only supports deploying clusters with the control plane version >= 1.29.0. Current version: v1.16.0
To see the stack trace of this error execute with --v=5 or higher
+ NODETYPE=master
+ '[' master == master ']'
+ [[ 1.16.0 == 1.13.* ]]
+ [[ 1.16.0 == 1.14.* ]]
+ [[ 1.16.0 == 1.15.* ]]
+ [[ 1.16.0 == 1.16.* ]]
+ cat
+ cat
+ kubeadm init --config /root/config.yaml
your configuration file uses an old API spec: "kubeadm.k8s.io/v1beta2". Please use kubeadm v1.22 instead and run 'kubeadm config migrate --old-config old.yaml --new-config new.yaml', which will write the new, similar spec using a newer API version.
To see the stack trace of this error execute with --v=5 or higher
+ cd /root
+ mkdir -p .kube
+ cp -i /etc/kubernetes/admin.conf /root/.kube/config
cp: cannot stat '/etc/kubernetes/admin.conf': No such file or directory
+ chown root:root /root/.kube/config
chown: cannot access '/root/.kube/config': No such file or directory
+ export KUBECONFIG=/root/.kube/config
+ KUBECONFIG=/root/.kube/config
+ echo KUBECONFIG=/root/.kube/config
+ kubectl get pods --all-namespaces
E0709 07:11:57.923753   62708 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp [::1]:8080: connect: connection refused
E0709 07:11:57.923975   62708 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp [::1]:8080: connect: connection refused
E0709 07:11:57.925332   62708 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp [::1]:8080: connect: connection refused
E0709 07:11:57.925488   62708 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp [::1]:8080: connect: connection refused
E0709 07:11:57.926733   62708 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp [::1]:8080: connect: connection refused
The connection to the server localhost:8080 was refused - did you specify the right host or port?
+ kubectl apply -f https://raw.githubusercontent.com/flannel-io/flannel/9de10c12c8266b0cfe09bc0d5c969ae28832239f/Documentation/kube-flannel.yml
error: error validating "https://raw.githubusercontent.com/flannel-io/flannel/9de10c12c8266b0cfe09bc0d5c969ae28832239f/Documentation/kube-flannel.yml": error validating data: failed to download openapi: Get "http://localhost:8080/openapi/v2?timeout=32s": dial tcp [::1]:8080: connect: connection refused; if you choose to ignore these errors, turn validation off with --validate=false
+ wait_for_pods_running 8 kube-system
+ NS=kube-system
+ CMD='kubectl get pods --all-namespaces '
+ '[' kube-system '!=' all-namespaces ']'
+ CMD='kubectl get pods -n kube-system '
+ KEYWORD=Running
+ '[' 2 == 3 ']'
+ CMD2='kubectl get pods -n kube-system  | grep "Running" | wc -l'
++ eval 'kubectl get pods -n kube-system  | grep "Running" | wc -l'
+++ kubectl get pods -n kube-system
+++ grep Running
+++ wc -l
E0709 07:11:58.323240   62745 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp [::1]:8080: connect: connection refused
E0709 07:11:58.323506   62745 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp [::1]:8080: connect: connection refused
E0709 07:11:58.324781   62745 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp [::1]:8080: connect: connection refused
E0709 07:11:58.324960   62745 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp [::1]:8080: connect: connection refused
E0709 07:11:58.326226   62745 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp [::1]:8080: connect: connection refused
The connection to the server localhost:8080 was refused - did you specify the right host or port?
+ NUMPODS=0
+ echo 'waiting for 0/8 pods running in namespace [kube-system] with keyword [Running]'
waiting for 0/8 pods running in namespace [kube-system] with keyword [Running]
+ '[' 0 -lt 8 ']'
+ sleep 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant