-
Notifications
You must be signed in to change notification settings - Fork 129
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 localhost:8080 was refused #23
Comments
That is the error message which you get when there is no configuration at all. When you login to the master, there will be two kubeconfig files:
You can either copy them to local host or use them from the master. To configure |
Thank you for getting back so quickly. /home/centos/kubeconfig_ip i tried finding the kubeconfig file from / and yet it does not exits. |
If these do not exist in the paths above, maybe the deployment failed for some reason. You should check the log in |
There's a likelihood that you are using t2.micro instance type as your master node (Happened to me). If thats the case, remember to add --ignore-preflight-errors=NumCPU behind kubeadm init --config /tmp/kubeadm.yaml in your init-aws-kubernetes-master.sh script because kubernetes require at least 2 cpus. Cheers |
I'm not sure where the .kube file is saved, i'm able to ssh to my master node but when I run
kubectl get nodes
i this this messege:'' The connection to the server localhost:8080 was refused - did you specify the right host or port? ''
so I tried opening the port 8080 but still had the same problem. Am I missing anything?
The text was updated successfully, but these errors were encountered: