Updated on 2024-06-17 GMT+08:00

Setting Basic Container Information

A workload is an abstract model of a group of pods. One pod can encapsulate one or more containers. You can click Add Container in the upper right corner to add multiple container images and set them separately.

Figure 1 Adding a container
Table 1 Image parameters

Parameter

Description

Container Name

Name the container.

Image Name

Click Select Image and select the image used by the container.

Image Tag

Select the image tag to be deployed.

Pull Policy

Image update or pull policy. If you select Always, the image is pulled from the image repository each time. If you do not select Always, the existing image of the node is preferentially used. If the image does not exist in the node, it is pulled from the image repository.

CPU Quota

  • Request: minimum number of CPU cores required by a container. The default value is 0.25 cores.
  • Limit: maximum number of CPU cores available for a container. Do not leave Limit unspecified. Otherwise, intensive use of container resources will occur and your workload may exhibit unexpected behavior.

Memory Quota

  • Request: minimum amount of memory required by a container. The default value is 512 MiB.
  • Limit: maximum amount of memory available for a container. When memory usage exceeds the specified memory limit, the container will be terminated.

For details about Request and Limit, see Setting Container Specifications.

Init Container

Select whether to use the container as an init container.

An init container is a special container that runs before app containers in a pod. For details, see Init Containers.