Kops: Improve validate output

Created on 29 Jan 2017  路  2Comments  路  Source: kubernetes/kops

We can do better that this :)

$ kops validate cluster
Using cluster from kubectl context: liea-ginny.dev.datapipe.io

Validating cluster liea-ginny.dev.datapipe.io

INSTANCE GROUPS
NAME            ROLE    MACHINETYPE MIN MAX SUBNETS
master-eu-west-1a   Master  m3.medium   1   1   eu-west-1a
nodes           Node    t2.medium   2   2   eu-west-1a

NODE STATUS
NAME                        ROLE    READY
ip-172-20-42-112.eu-west-1.compute.internal node    True
ip-172-20-42-21.eu-west-1.compute.internal  node    False
ip-172-20-43-204.eu-west-1.compute.internal master  True
Master(s) Not Ready 0 out of 1.
Node(s) Not Ready   1 out of 2.

Your cluster liea-ginny.dev.datapipe.io is NOT ready.

This section

Master(s) Not Ready 0 out of 1.
Node(s) Not Ready   1 out of 2.

Need some better english :)

Most helpful comment

From a user perspective I would think the output would be easier to read if it only contained failing resources.

  • Your cluster is not ready and here is why

All 2 comments

Also

Cannot get nodes for "liea-ginny.dev.datapipe.io": Get https://api.liea-ginny.dev.datapipe.io/api/v1/nodes: dial tcp 54.171.147.139:443: getsockopt: operation timed out

We need to improve the error message stating that we cannot connect to the api server.

From a user perspective I would think the output would be easier to read if it only contained failing resources.

  • Your cluster is not ready and here is why
Was this page helpful?
0 / 5 - 0 ratings

Related issues

rot26 picture rot26  路  5Comments

Caskia picture Caskia  路  3Comments

mikejoh picture mikejoh  路  3Comments

chrislovecnm picture chrislovecnm  路  3Comments

owenmorgan picture owenmorgan  路  3Comments