tencent cloud


Workload Management

Last updated: 2022-05-06 10:47:41


    This document describes how to select different types of workloads to run your services in an elastic cluster.


    • Elastic clusters do not have nodes. Workloads allocate resources for each pod based on parameter settings when they are created. For more information, see Specifying Resource Specifications.
    • To create and manage Kubernetes objects using a YAML file, specify annotations. For more information, please see Annotation Description.


    • You have created an elastic cluster that is in Running state. For more information, please see Creating a Cluster.
    • The cluster has an appropriate namespace that is in Active state.

    Workload Types


    A Deployment declares the pod template and pod running policies. It is used to deploy stateless applications. You can specify the number of replicas, scheduling policy, and update policy for pods running in the Deployment as needed.


    A StatefulSet is used to manage stateful applications. A Pod created by a StatefulSet has a persistent identifier that is created according to the specifications. The identifier will be retained after the Pod is migrated, terminated, or restarted. When using persistent storage, you can map storage volumes to identifiers. If your application does not require any persistent identifier, we recommend that you use a Deployment to deploy the application.


    A Job creates one or more pods and ensures that these pods run according to specified rules until they are terminated. Jobs can be used in many scenarios, such as batch computing and data analysis. You can specify the number of repeated runs, concurrency, and restart policy as required.
    After the Job stops running, it will not create new pods and only the running records of original pods exist. However, the real underlying resources have been released. Therefore, you cannot query the logs of the corresponding pods in "Logs" section of the console.


    A CronJob object is similar to a line in a crontab (cron table) file. It periodically runs a Job according to the specified schedule. For more information about the format, see the Cron documentation.
    The format of a Cron is as follows:

    # File format description
    # ——min (0 - 59)
    # |  ——hour (0 - 23)
    # | | ——day of month (1 - 31)
    # | | |  ——month (1 - 12)
    # | | | |  ——day of week (0 - 6)
    # | | | | |
    # * * * * *


    1. Log in to the TKE console and select Elastic Cluster in the left sidebar.
    2. On the "Elastic Cluster" page, click the ID of the cluster where the workload that you want to create is located. The Deployment page for the cluster appears, as shown in the following figure.
    3. Click Create to open the Create Workload page.
    4. Specify the workload name and select a workload type.
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support