CLI

Introduction

A Command Line Interface (CLI) is provided for you to manage resources.

Configuration

  1. You can obtain the executable file vcctl from the release package volcano-{version}-linux-gnu.tar.gz. Decompress the release package. The file is under the path volcano-{version}-linux-gnu\bin\amd64. Alternatively, you can obtain the latest executable file by cloning the code from GitHub and running the following command in the root directory of the project:

    1. # make vcctl
  2. Copy the executable file to $PATH. You then can execute it anywhere.

Command Line List

Listing all jobs

vcctl job list

  1. # vcctl job list
  2. Name Creation Phase JobType Replicas Min Pending Running Succeeded Failed Unknown RetryCount
  3. job-1 2020-09-01 Running Batch 1 1 0 1 0 0 0 0

Deleting a specific job

vcctl job delete –name job-name [–namespace job-namespace]

  1. # vcctl delete job --name job-1 --namespaces default
  2. delete job job-1 successfully

Suspending a job

vcctl job suspend –name job-name [–namespace job-namespace]

  1. # vcctl job suspend --name job-1 --namespace default

Resuming a job (opposite to “vcctl job suspend”)

vcctl job resume –name job-name [–namespace job-namespace]

  1. # vcctl job suspend --name job-1 --namespace default

Running a job

vcctl job run –name job-name [–namespace job-namespace]

  1. # vcctl job run --name job-1 --namespace default

Note

For more information about Volcano command lines, run the following commands:

  1. # vcctl -h
  2. # vcctl [command] -h