title: RKE - Unable to connect to the server: net/http: TLS handshake timeout
body: <p>I have one CentOS vm (for install RKE) and 3 node installed rancherOS (vmware version from <a href="https://github.com/rancher/os/releases/" rel="nofollow noreferrer">here</a> for controlplane, etcd, and worker nodes) </p>
  
  <p>I get "Finished building Kubernetes cluster successfully" message but I'm getting error while write "kubectl get nodes" command. After install rke, kubectl command didn't work and I installed it manually from <a href="https://kubernetes.io/docs/tasks/tools/install-kubectl/" rel="nofollow noreferrer">official website</a>. </p>
  
  <p><strong>Result:</strong></p>
  
  <p>In result when I run it with rancher user printing this error:
  Unable to connect to the server: net/http: TLS handshake timeout</p>
  
  <p>with root:
  Error from server: etcdserver: request timed out</p>
  
  <p>Where is the problem? Is my rke design correct?</p>
  
  <ul>
  <li><p>RKE (one vm Centos)</p></li>
  <li><ul>
  <li>controlplane-etcd-worker node (rancherOS)</li>
  </ul></li>
  <li><ul>
  <li>controlplane-etcd-worker node (rancherOS)</li>
  </ul></li>
  <li><ul>
  <li>controlplane-etcd-worker node (rancherOS)</li>
  </ul></li>
  </ul>
  
  <p><strong>Environment information</strong></p>
  
  <p>RKE Installed VM: CentOS - 2CPU / 4GB Memory
  RancherOS Installed VMs: 2CPU / 4GB Memory</p>
  
  <pre><code>$ rke --version
  rke version v1.0.1
  </code></pre>
  
  <pre><code>$ kubectl version
  Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.2", GitCommit:"59603c6e503c87169aea6106f57b9f242f64df89", GitTreeState:"clean", BuildDate:"2020-01-18T23:30:10Z", GoVersion:"go1.13.5", Compiler:"gc", Platform:"linux/amd64"}
  Unable to connect to the server: net/http: TLS handshake timeout
  </code></pre>
  
  <pre><code>$ kubectl config get-contexts
  CURRENT   NAME              CLUSTER           AUTHINFO                     NAMESPACE
  *         rancher_cluster   rancher_cluster   kube-admin-rancher_cluster   
  </code></pre>
  
  <pre><code>$ kubectl config current-context
  rancher_cluster
  </code></pre>
  
  <pre><code>$ kubectl config view
  apiVersion: v1
  clusters:
  - cluster:
      certificate-authority-data: DATA+OMITTED
      server: https://xxx.xxx.xxx.xxx:6443
    name: rancher_cluster
  contexts:
  - context:
      cluster: rancher_cluster
      user: kube-admin-rancher_cluster
    name: rancher_cluster
  current-context: rancher_cluster
  kind: Config
  preferences: {}
  users:
  - name: kube-admin-rancher_cluster
    user:
      client-certificate-data: REDACTED
      client-key-data: REDACTED
  </code></pre>
  
  <p>In RKE server (CentOS)</p>
  
  <pre><code>$ sudo docker version
  Client:
   Version:         1.13.1
   API version:     1.26
   Package version: docker-1.13.1-103.git7f2769b.el7.centos.x86_64
   Go version:      go1.10.3
   Git commit:      7f2769b/1.13.1
   Built:           Sun Sep 15 14:06:47 2019
   OS/Arch:         linux/amd64
  
  Server:
   Version:         1.13.1
   API version:     1.26 (minimum version 1.12)
   Package version: docker-1.13.1-103.git7f2769b.el7.centos.x86_64
   Go version:      go1.10.3
   Git commit:      7f2769b/1.13.1
   Built:           Sun Sep 15 14:06:47 2019
   OS/Arch:         linux/amd64
   Experimental:    false
  </code></pre>
  
  <p>In RancherOS VMs</p>
  
  <pre><code>Client: Docker Engine - Community
   Version:           19.03.5
   API version:       1.40
   Go version:        go1.12.12
   Git commit:        633a0ea838
   Built:             Wed Nov 13 07:22:05 2019
   OS/Arch:           linux/amd64
   Experimental:      false
  
  Server: Docker Engine - Community
   Engine:
    Version:          19.03.5
    API version:      1.40 (minimum version 1.12)
    Go version:       go1.12.12
    Git commit:       633a0ea838
    Built:            Wed Nov 13 07:28:45 2019
    OS/Arch:          linux/amd64
    Experimental:     false
   containerd:
    Version:          v1.2.10
    GitCommit:        b34a5c8af56e510852c35414db4c1f4fa6172339
   runc:
    Version:          1.0.0-rc8+dev
    GitCommit:        3e425f80a8c931f88e6d94a8c831b9d5aa481657
   docker-init:
    Version:          0.18.0
    GitCommit:        fec3683
  </code></pre>