• Cloud-Native Container ProductsCloud-Native Container Products
    • KubeSphere Enterprisehot
    • KubeSphere Virtualizationhot
    • KubeSphere Enterprise HCI
  • Cloud-Native ServiceCloud-Native Service
    • KubeSphere Backuphot
    • KubeSphere Litenew
    • KubeSphere Inspectornew
  • Public Cloud Container ServicePublic Cloud Container Service
    • KubeSphere on AWS
    • KubeSphere on DigitalOcean

Create a timer task

Describes how to create a timer task in the KSV web console.

This topic describes how to create a timer task in the KubeSphere Virtualization (KSV) web console.

Prerequisites

The user that you use has been granted the permissions to manage timer tasks. Project administrators and operators can perform all operations on timer tasks, and project viewers can view only timer tasks. For more information about permissions, see Timer.

Procedure

  1. Log in to the KSV web console.

  2. In the top navigation bar, click O&M Tools to go to the management page of O&M tools.

  3. In the left-side navigation pane, choose Timer > Timer Tasks.

  4. On the Timer Tasks tab, click Create in the upper-right corner.

  5. In the dialog box that appears, configure basic information for the timer task. The following table describes the parameters.

    ParameterDescription
    Name
    The custom name of the timer task.
    The name can contain only letters, digits, and hyphens (-), and must start and end with a letter or a digit. The name can be up to 16 characters in length.
    Select Project
    The project name in which the timer task is created. User admin can create timer tasks in all projects, and project administrators and operators can create timer tasks in the projects to which they belong.
    Description
    The description of the timer task.
  6. Configure the policy for the timer task. The following table describes the parameters.

    ParameterDescription
    Operation
    The operation to perform by the timer task. You can select Start VM, Stop VM, Restart VM, or Create Snapshot as needed.
    Select Method
    The method that is used to run the timer task. You can select Execute Periodically or Execute Once.
    Object
    The VM on which the timer task runs. You can select one or more VMs in the selected project.
    Policy
    The policy that is used to run the timer task. If no policy can meet your business requirements, click Create Policy. This parameter is available only when Select Method is set to Execute Periodically.
    Time
    The point in time at which the timer task runs. This parameter is available only when Select Method is set to Execute Once.
    Maximum Attempts
    The maximum number of times that the timer task is allowed to fail. If the specified value is exceeded, the system will stop or skip the task based on the settings. Valid values: 3 to 8.
    Whether to Skip Error
    The operation to perform if the number of the maximum attempts has been reached. You can select Skip Error or Stop Task.
  7. Click OK. The task appears in the timer task list after it is created.

KubeSphere ®️ © QingCloud Technologies 2022