> The connection to the server localhost:8080 was refused - did you specify
> the right host or port?

This means kubectl is not correctly configured. Try with kubectl
--server=THE_IP_OF_YOUR_MASTER:8080 … and/or check your configuration.

Also, how did you provision your cluster? Using kubeadm maybe?


Cheers,
Michael

--
Michael Hausenblas
Ireland, Europe
http://mhausenblas.info/

-----Original Message-----
From: Ram Sahay <ramsahay.si...@surmountsoft.com>
Reply: Ram Sahay <ramsahay.si...@surmountsoft.com>
Date: 6 April 2018 at 13:59:17
To: Michael Hausenblas <michael.hausenb...@gmail.com>
Cc: kubernetes-users@googlegroups.com <kubernetes-users@googlegroups.com>
Subject:  Re: [kubernetes-users] error: the server doesn't have a
resource type "cronjobs"

> Client Version: v1.10.0
> The connection to the server localhost:8080 was refused - did you specify
> the right host or port?
>
> On Fri, Apr 6, 2018 at 6:28 PM, Ram Sahay
> wrote:
>
> > Client Version: v1.10.0
> > The connection to the server localhost:8080 was refused - did you specify
> > the right host or port?
> >
> > On Fri, Apr 6, 2018 at 5:21 PM, Michael Hausenblas <
> > michael.hausenb...@gmail.com> wrote:
> >
> >> What does the following command give you?
> >>
> >> kubectl version --short
> >>
> >> Cheers,
> >> Michael
> >>
> >> --
> >> Michael Hausenblas
> >> Ireland, Europe
> >> http://mhausenblas.info/
> >>
> >> -----Original Message-----
> >> From: Ram Sahay
> >> Reply: kubernetes-users@googlegroups.com > >> .com>
> >> Date: 6 April 2018 at 12:45:03
> >> To: Kubernetes user discussion and Q&A > >> >
> >> Subject: [kubernetes-users] error: the server doesn't have a resource
> >> type "cronjobs"
> >>
> >> > Hi Everyone
> >> >
> >> > all time face problem in terminal close than error: the server doesn't
> >> > have a resource type "cronjobs"
> >> > how to fix proble .
> >> >
> >> > --
> >> > 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+unsubscr...@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.
> >> >
> >>
> >
> >
>

-- 
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+unsubscr...@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.

Reply via email to