https://kubernetes.io/docs/getting-started-guides/gce/#starting-a-cluster
However, when I get to the step:
kubectl get --all-namespaces services
I get this error:
---
root@control:~# kubectl get --all-namespaces services
The connection to the server localhost:8080 was refused - did you specify the right host or port?
---
It doesn't look like a service was to be set up to run at any point on port 8080.
Why am I getting this error and how can I fix it?
Thanks in advance,
Traiano
sudo cp /etc/kubernetes/admin.conf $HOME/
sudo chown $(id -u):$(id -g) $HOME/admin.conf
export KUBECONFIG=$HOME/admin.conf--
You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscribe@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.
I'm having this same issue and haven't been able to come to a workaround yet. Have you managed to figure anything out?
I think my problem is api-server restarting always. don't have idea why this is happening
Do we need to setup weave-net on worker nodes as well?
On my case this is happening due to a failing kubelet service('service kubelet status') and I had to do 'swapoff -a' to disable paging and swapping which fixed the problem
#swapoff -a