Skip to content
This repository has been archived by the owner on Jan 14, 2020. It is now read-only.

Commands for Managing Clusters

shoenisch edited this page Apr 18, 2017 · 3 revisions

There are numerous helpful commands that can be used to interact with clusters created on Photon Controller.

  • List cluster: photon service list
  • View cluster details: photon service show <cluster_uuid>
  • Show cluster VMs: photon service list-vms <cluster_uuid>
  • Deleting cluster: photon service delete <cluster_uuid>

For additional commands and more information, run the following command:

photon service --help

You can also view the help for the subcommands; example:

photon service show -h

Here's the output of photon service --help:

photon service --help
NAME:
   photon service - Options for services
USAGE:
   photon service command [command options] [arguments...]
COMMANDS:
     create               Create a new service
     show                 Show information about a service. 
     list                 List services
     list-vms             List the VMs associated with a service
     resize               Resize a service
     delete               Delete a service
     trigger-maintenance  Start a background process to recreate 
                          failed VMs in a service
     cert-to-file         Save the CA Certificate to a file with 
                          the specified path if the certificate exists
     change-version       Configure the service to use specified image id
     get-kubectl-auth     Generate the kubectl command for authentication
OPTIONS:
   --help, -h  show help
Clone this wiki locally