Viewing Cluster Lists

Follow the steps below to view the list of deployed Kubernetes cluster with the PKS CLI.

  1. On the command line, run the following command to log in:

    pks login -a PKS-API -u USERNAME -k

    • PKS-API is the domain name for the PKS API that you entered in Ops Manager >Pivotal Container Service >PKS API >API Hostname (FQDN). For example,
    • USERNAME is your user name.

      See Logging in to PKS for more information about the pks login command.

  2. Run the following command to view the list of deployed clusters, including cluster names and status:

    $ pks clusters

Please send any feedback you have to