tencent cloud

Feedback

Creating a Container Instance

Last updated: 2022-12-13 17:16:30
This document is currently invalid. Please refer to the documentation page of the product.

    Step 1. Sign up and top up

    1. Sign up for a Tencent Cloud account and complete identity verification.
      If you already have a Tencent Cloud account, ignore this step.
    2. Top up online.
      TKE serverless cluster provides two billing modes: Pay-as-you-go and reservation. Before purchasing a container instance, you need to top up your account as instructed in Payment Methods.

    Step 2. Authorize the service

    1. Container instance is in beta test. To try it out, submit a ticket for application.
    2. After your account is added to the allowlist, authorize the container instance as prompted in the TKE console. (If you have already authorized the container instance, skip this step.)

    Step 3. Create a container instance

    Log in to the TKE console and configure the container instance on the Quick create page.

    Configuration ItemDescription
    Region Select a closest region. For example, if you are located in Shenzhen, select "Guangzhou" for the region.
    Container network Assign an IP address within the IP range of the container network to the container instance.
    Note

    Subnet determines the availability zone. Each availability zone supports different type of resources, such as AMD, GPU-T4 and GPU-V100. Select a subnet which supports the desired type of resources according to the prompts.

    Security Group Security group has the capability of a firewall and can limit the network communication of the instance. Default value is default.
    Instance specification For specifications supported by an instance, see Resource Specifications.
    Image You can select an image from TCR Enterprise Edition, TCR Personal Edition, Docker Hub, or other third-party image repositories.
    Image Tag If this parameter is left empty, `latest` will be used by default.
    Image Repository Credential If you select an image from a third-party image repository other than Dockerhub, you must enter the image credential, i.e., access address, username and password of the image repository.
    Volume (optional) Provides storage for the container. Currently, it supports NFS and CBS. Also, it needs to be mounted to the specified path of the container.
    Volume Type Description
    Cloud Block Storage (CBS) You can mount a Tencent Cloud CBS disk to a specified path of the container. When the container is migrated, the cloud disk will be migrated along with it. CBS volumes are suitable for the persistent storage of data and can be used for stateful services such as MySQL. For a service for which a CBS volume is configured, the maximum number of Pods is 1.
    Network File System (NFS) You only need to enter the NFS path. You can use a CFS or NFS for file storage. NFS volumes are suitable for the persistent storage of data that is read and written many times. They can also be used in scenarios such as big data analysis, media processing, and content management.
    Environment Variable (optional) You can configure environment variables for containers.
    Number of Instances (optional) You can create multiple instances at a time. You can create only one copy if you select CBS as the volume type.
    After configuring the required fields, confirm the resource specification and configuration fees, and click **Create Instance**. Then, you can view the created container instance.

    Step 4. View container instance events

    1. Log in to the TKE console.
    2. On the container instance list page, click More > View events on the right of the instance for which you want to view the events.

    Step 5. View container logs

    1. Log in to the TKE console.
    2. On the container instance list page, click Logs on the right of the instance for which you want to view the events.

    Only the standard output logs of the container can be viewed here. For more information on the collection of standard output logs and container file logs, see Enabling Log Collection.

    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