etcd健康检查
命令:etcdctl --endpoints=https://[127.0.0.1]:2379 --ca-file=/etc/kubernetes/pki/etcd/ca.crt --cert-file=/etc/kubernetes/pki/etcd/healthcheck-client.crt --key-file=/etc/kubernetes/pki/etcd/healthcheck-client.key cluster-health
etcdctl安装
[root@k8s01 ~]# curl -L https://github.com/coreos/etcd/releases/download/v3.3.2/etcd-v3.3.2-linux-amd64.tar.gz -o etcd-v3.3.2-linux-amd64.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 153 100 153 0 0 253 0 --:--:-- --:--:-- --:--:-- 253
100 620 100 620 0 0 917 0 --:--:-- --:--:-- --:--:-- 917
100 10.7M 100 10.7M 0 0 148k 0 0:01:14 0:01:14 --:--:-- 114k
[root@k8s01 ~]# tar zxf etcd-v3.3.2-linux-amd64.tar.gz
[root@k8s01 ~]# mv etcd-v3.3.2-linux-amd64/etcd* /usr/local/bin/
etcd健康检查
[root@k8s01 ~]# etcdctl --endpoints=https://[127.0.0.1]:2379 --ca-file=/etc/kubernetes/pki/etcd/ca.crt --cert-file=/etc/kubernetes/pki/etcd/healthcheck-client.crt --key-file=/etc/kubernetes/pki/etcd/healthcheck-client.key cluster-health
member 857d3f4c49b80ddd is healthy: got healthy result from https://192.168.200.203:2379
member a85d98743664ecc5 is healthy: got healthy result from https://192.168.200.205:2379
member da64e04c46ca889f is healthy: got healthy result from https://192.168.200.208:2379
cluster is healthy
版权声明:
本站所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自
爱吃可爱多!
喜欢就支持一下吧
打赏
微信
支付宝