From ca1b9882dec2fb4119ee9287d2981434de3af944 Mon Sep 17 00:00:00 2001 From: George G Date: Wed, 14 Sep 2016 02:31:29 +0100 Subject: [PATCH] scratch.md: Document how to use cluster/validate-cluster.sh --- docs/getting-started-guides/scratch.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/docs/getting-started-guides/scratch.md b/docs/getting-started-guides/scratch.md index 8d0e1d39ae..e503a76e4b 100644 --- a/docs/getting-started-guides/scratch.md +++ b/docs/getting-started-guides/scratch.md @@ -823,7 +823,24 @@ Notes for setting up each cluster service are given below: ### Running validate-cluster -**TODO** explain how to use `cluster/validate-cluster.sh` +Example usage and output: + +```shell +KUBECTL_PATH=$(which kubectl) NUM_NODES=3 KUBERNETES_PROVIDER=local cluster/validate-cluster.sh +Found 3 node(s). +NAME STATUS AGE +node1.local Ready 1h +node2.local Ready 1h +node3.local Ready 1h +Validate output: +NAME STATUS MESSAGE ERROR +controller-manager Healthy ok +scheduler Healthy ok +etcd-1 Healthy {"health": "true"} +etcd-2 Healthy {"health": "true"} +etcd-0 Healthy {"health": "true"} +Cluster validation succeeded +``` ### Inspect pods and services