April 2018
Intermediate to advanced
468 pages
14h 34m
English
Once the etcd cluster is up and running, you can access the etcdctl tool to check on the cluster status and health. Kubernetes lets you execute commands directly inside pods or container through the exec command (similar to Docker exec).
Here is how to check whether the cluster is healthy:
> k exec etcd-cluster-0000 etcdctl cluster-health member 898a228a043c6ef0 is healthy: got healthy result from http://etcd-cluster-0001.etcd-cluster.default.svc:2379 member 89e2f85069640541 is healthy: got healthy result from http://etcd-cluster-0002.etcd-cluster.default.svc:2379 member 963265fbd20597c6 is healthy: got healthy result from http://etcd-cluster-0000.etcd-cluster.default.svc:2379 cluster is healthy
Here is to how ...
Read now
Unlock full access