RKE version:
rke version v0.0.12-dev
Docker version: (docker version,docker info preferred)
Client:
Version: 1.12.6
API version: 1.24
Server:
Version: 1.12.6
API version: 1.24
Operating system and kernel: (cat /etc/os-release, uname -r preferred)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
Linux 3.10.0-693.17.1.el7.x86_64 #1 SMP Thu Jan 25 20:13:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Steps to Reproduce:
192.168.1.12/ # ps aux | grep etcd
1 root 18:53 /usr/local/bin/etcd --name=etcd-192.168.1.12 --data-dir=/var/lib/rancher/etcd --advertise-client-urls=https://192.168.1.12:2379,https://192.168.1.12:4001 --listen-client-urls=https://0.0.0.0:2379 --initial-advertise-peer-urls=https://192.168.1.12:2380 --listen-peer-urls=https://0.0.0.0:2380 --initial-cluster-token=etcd-cluster-1 --initial-cluster=etcd-192.168.1.11=https://192.168.1.11:2380,etcd-192.168.1.12=https://192.168.1.12:2380,etcd-192.168.1.14=https://192.168.1.14:2380,etcd-192.168.1.10=https://192.168.1.10:2380,etcd-192.168.1.19=https://192.168.1.19:2380,etcd-192.168.1.13=https://192.168.1.13:2380 --initial-cluster-state=new --peer-client-cert-auth --client-cert-auth --trusted-ca-file=/etc/kubernetes/ssl/kube-ca.pem --peer-trusted-ca-file=/etc/kubernetes/ssl/kube-ca.pem --cert-file=/etc/kubernetes/ssl/kube-etcd-192-168-1-12.pem --key-file=/etc/kubernetes/ssl/kube-etcd-192-168-1-12-key.pem --peer-cert-file=/etc/kubernetes/ssl/kube-etcd-192-168-1-12.pem --peer-key-file=/etc/kubernetes/ssl/kube-etcd-192-168-1-12-key.pem
Results:
cluster may be unhealthy: failed to list members
Error: client: etcd cluster is unavailable or misconfigured
error #0: dial tcp 127.0.0.1:4001: getsockopt: connection refused
error #1: malformed HTTP response "\x15\x03\x01\x00\x02\x02"
Pls help me check status of cluster by etcd.
Can you clarify what you are trying to do here ?
Sorry for replying late!
After install by RKE successful, I try check cluster etcd health, so I run command: etcdctl cluster-health, but the response make me confuse.
Please help me the correct command.
Thanks
@mtchuyen you should be able to see the cluster-health using this command:
etcdctl --endpoints "https://127.0.0.1:2379" --ca-file /etc/kubernetes/ssl/kube-ca.pem --cert-file /etc/kubernetes/ssl/kube-node.pem --key-file /etc/kubernetes/ssl/kube-node-key.pem cluster-health
Thanks @galal-hussein ! It done.
Most helpful comment
@mtchuyen you should be able to see the cluster-health using this command: