Hi Pubudu,

May be you have not set the KUBERNETES_MASTER environment variable properly
or the SSH tunnel has not established.

On Tue, Jun 2, 2015 at 4:23 PM, Pubudu Gunatilaka <[email protected]> wrote:

> Hi Devs,
>
> I am trying to install Stratos with Kubernetes on EC2 and following [1]. I
> used region specific CoreOs alpha channel AMI in [2] and I was able to
> spawn a master and 3 minions on EC2.  I also configured Kubectl ssh tunnel
> for the communication between Kubectl client and Kubernets API.
>
> But when I try *kubectl api-versions* command, I am getting following
> error.
>
> *channel 2: open failed: connect failed: Connection refused*
> *Couldn't get available api versions from server: Get
> http://localhost:8080/api <http://localhost:8080/api>: EOF*
>
> What could be the reason for this error? As I understood kubernetes master
> node is refusing the connection. I did not change anything on master.yaml
> file and kept all values as default. But I could ssh to kubernetes master
> node as well.
>
> Please note that my Kubectl client runs on a EC2 instance. Any help on
> this is greatly appreciated.
>
> [1] -
> https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+Install+Stratos+with+Kubernetes+on+EC2
>
> [2] - https://coreos.com/docs/running-coreos/cloud-providers/ec2/
>
> Thank you!
> --
>
> *Pubudu Gunatilaka*
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean.enterprise.middleware
> mobile:  +94 77 4078049
>



-- 
Imesh Gunaratne

Senior Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

Reply via email to