How do i display the kubernetes cluster state?



  • Find out what cluster-info does.

    $ kubectl help cluster-info
    Display addresses of the master and services with label kubernetes.io/cluster-service=true To further debug and diagnose
    cluster problems, use 'kubectl cluster-info dump'.
    
    Aliases:
    cluster-info, clusterinfo
    
    Available Commands:
      dump        Dump lots of relevant info for debugging and diagnosis
    
    Options:
          --include-extended-apis=true: If true, include definitions of new APIs via calls to the API server. [default true]
    
    Usage:
      kubectl cluster-info [options]
    
    Use "kubectl <command> --help" for more information about a given command.
    Use "kubectl options" for a list of global command-line options (applies to all commands).
    

    To check the state of the cluster, this is just a development installation one node.

    $ kubectl cluster-info
    Kubernetes master is running at http://localhost:8080
    KubeDNS is running at http://localhost:8080/api/v1/proxy/namespaces/kube-system/services/kube-dns
    


© Lightnetics 2024