1

I have one CentOS vm (for install RKE) and 3 node installed rancherOS (vmware version from here for controlplane, etcd, and worker nodes)

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 official website.

Result:

In result when I run it with rancher user printing this error: Unable to connect to the server: net/http: TLS handshake timeout

with root: Error from server: etcdserver: request timed out

Where is the problem? Is my rke design correct?

  • RKE (one vm Centos)

    • controlplane-etcd-worker node (rancherOS)
    • controlplane-etcd-worker node (rancherOS)
    • controlplane-etcd-worker node (rancherOS)

Environment information

RKE Installed VM: CentOS - 2CPU / 4GB Memory RancherOS Installed VMs: 2CPU / 4GB Memory

$ rke --version
rke version v1.0.1
$ 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
$ kubectl config get-contexts
CURRENT   NAME              CLUSTER           AUTHINFO                     NAMESPACE
*         rancher_cluster   rancher_cluster   kube-admin-rancher_cluster   
$ kubectl config current-context
rancher_cluster
$ 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

In RKE server (CentOS)

$ 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

In RancherOS VMs

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

0 Answers0