Ansibleサーバにログインし、以下のコマンドを実行します。
>kubectl get nodes
■コマンドの出力例(起動している場合)
NAME STATUS ROLES AGE VERSION az2-sghpf-service-server-k8s-master-00.novalocal Ready master 70d v1.10.3 az2-sghpf-service-server-k8s-node-00.novalocal Ready <none> 70d v1.10.3 az2-sghpf-service-server-k8s-node-01.novalocal Ready <none> 70d v1.10.3
以下のコマンドを実行します。
>kubectl get componentstatuses
■コマンドの出力例(正常な状態の場合)
正常時はSTATUSが、Healthyと表示されます。
NAME STATUS MESSAGE ERROR
scheduler Healthy ok
controller-manager Healthy ok
etcd-0 Healthy {"health": "true"}