k8s 常用命令

  • # check component status are all healthy
  • $ kubectl get cs
    NAME STATUS MESSAGE ERROR
    controller-manager Healthy ok nil
    scheduler Healthy ok nil
    etcd-0 Healthy {"health": "true"} nil

  • Check master is running
  • kubectl cluster-info
    Kubernetes master is running at http://localhost:8080

  • # check nodes are all Ready
  • kubectl get nodes
    NAME LABELS STATUS
    kub-node1 kubernetes.io/hostname=kub-node1 Ready
    kub-node2 kubernetes.io/hostname=kub-node2 Ready

posted @ 2017-12-08 09:17  一只宅男的自我修养  阅读(313)  评论(0编辑  收藏  举报