Overview of ACS Pod instances
In modern cloud computing and containerized environments, a Pod instance is the smallest deployable unit in Kubernetes and typically consists of one or more containers. The computing type and computing power quality of a Pod instance significantly affect application performance and resource utilization. Container Compute Service (ACS) provides multiple computing types and the corresponding computing power quality options to meet diverse business requirements. This topic describes the Preparations, Limits, and core features of ACS Pod, including security isolation, CPU/Memory/GPU resource and specification configuration, image pulling, storage, networking, and log collection.
Computing type definitions
ACS currently provides CPU and GPU container computing types with a high price-performance ratio. Different computing types differ in resource provisioning to suit different business scenarios.
|
Computing type |
Label |
Features |
|
General-purpose type (default) |
general-purpose |
Meets the needs of most stateless microservice applications, Java Web applications, and compute tasks. |
|
Performance type |
performance |
Meets the needs of business scenarios with stronger performance requirements, such as CPU Based AI/ML training and inference, and HPC batch processing. |
|
GPU type |
gpu |
Meets the needs of heterogeneous computing scenarios such as AI and HPC, including single-GPU and multi-GPU inference, and GPU parallel computing. |
|
High-performance network GPU type (gpu-hpn) |
gpu-hpn |
Meets the needs of heterogeneous computing scenarios such as AI and HPC, including GPU distributed training, distributed inference, and GPU high-performance computing (HPC). |
You can specify the computing type of an instance by using the alibabacloud.com/compute-class label on a Pod. The following sample orchestrations based on an Nginx application specify the computing type as the general-purpose type general-purpose, the GPU type gpu, and the high-performance network GPU type gpu-hpn, respectively.
General-purpose type
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
labels:
app: nginx
spec:
replicas: 2
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
alibabacloud.com/compute-class: general-purpose
spec:
containers:
- name: nginx
image: registry.cn-hangzhou.aliyuncs.com/acs-sample/nginx:latest
GPU type
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
labels:
app: nginx
spec:
replicas: 2
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
# Specify compute-class as the gpu type
alibabacloud.com/compute-class: "gpu"
# Specify the GPU model as example-model. Enter an actual value as needed, such as T4
alibabacloud.com/gpu-model-series: "example-model"
spec:
containers:
- name: nginx
image: registry.cn-hangzhou.aliyuncs.com/acs-sample/nginx:latest
resources:
limits:
cpu: 4
memory: "8Gi"
nvidia.com/gpu: "1" # Specify the number of GPUs. Set the resource label and quantity based on your actual needs.
requests:
cpu: 4
memory: "8Gi"
nvidia.com/gpu: "1" # Specify the number of GPUs. Set the resource label and quantity based on your actual needs.
For the GPU card models and specifications supported by ACS, see Specification table of accelerated computing types.
High-performance network GPU type
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
labels:
app: nginx
spec:
replicas: 2
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
# Specify compute-class as the gpu-hpn type
alibabacloud.com/compute-class: "gpu-hpn"
spec:
containers:
- name: nginx
image: registry.cn-hangzhou.aliyuncs.com/acs-sample/nginx:latest
resources:
limits:
cpu: 4
memory: "8Gi"
nvidia.com/gpu: "1" # Specify the number of GPUs. Set the resource label and quantity based on your actual needs.
requests:
cpu: 4
memory: "8Gi"
nvidia.com/gpu: "1" # Specify the number of GPUs. Set the resource label and quantity based on your actual needs.
To use high-performance network GPUs in ACS, first create GPU-HPN Capacity Reservation.
Computing power quality definitions
ACS currently provides two computing power quality options. Different computing power quality options differ in resource provisioning to suit different business scenarios.
|
Computing power quality |
Label |
Features |
Typical application scenarios |
|
Default type |
default |
|
|
|
BestEffort type |
best-effort |
|
|
You can specify the computing power quality of an instance by using the alibabacloud.com/compute-qos label on a Pod. The following sample orchestration for an Nginx application specifies the computing power quality as the default type default.
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
labels:
app: nginx
spec:
replicas: 2
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
alibabacloud.com/compute-qos: default
spec:
containers:
- name: nginx
image: registry.cn-hangzhou.aliyuncs.com/acs-sample/nginx:latest
-
The ACS definition of computing power quality differs from the definition of native Kubernetes QoS types. Currently, the default computing power quality corresponds to the native Kubernetes QoS Class Guaranteed.
-
Instances with the BestEffort computing power quality use dynamic inventory. We strongly recommend that you configure an inventory-first scheduling policy in the production environment so that the platform performs an automatic switchover to the default type when inventory is insufficient. For more information, see Customize resource scheduling policies.
Mapping between computing types and computing power quality
|
Computing type (label) |
Supported computing power quality (label) |
|
General-purpose type (general-purpose) |
Default type (default), BestEffort type (best-effort) |
|
Performance type (performance) |
Default type (default), BestEffort type (best-effort) |
|
GPU type (gpu) |
Default type (default), BestEffort type (best-effort) |
|
High-performance network GPU type (gpu-hpn) |
Default type (default) |
Specify the CPU brand
For the general-purpose type (general-purpose) and the performance type (performance), ACS currently provides CPU computing power from two vendors, including Intel and AMD.
You can specify the CPU brand by adding the alibabacloud.com/cpu-vendors annotation to a Pod or by defining the alibabacloud.com/cpu-vendors annotation in the Pod Template of a workload. If you specify this annotation for computing types other than the general-purpose type (general-purpose) and the performance type (performance), a message indicates that CPU brand specification is not yet supported. This annotation supports the following declared values:
|
Key |
Value |
Meaning |
|
|
intel (default value) |
Specifies the CPU brand as Intel. If you do not specify a brand, the default value "intel" is used. |
|
amd |
Specifies the CPU brand as AMD. |
|
|
intel,amd |
Specifies the CPU brand as Intel or AMD. The system selects a suitable CPU brand based on inventory supply to create the instance. When you enter multiple values, a custom priority order cannot be specified. |
After the instance is created, you can view the CPU brand actually used by the instance through the value of the alibabacloud.com/cpu-vendor label in the Pod YAML.
The following is a sample orchestration for an Nginx application that specifies the CPU brand as amd.
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
labels:
app: nginx
spec:
replicas: 2
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
alibabacloud.com/compute-class: general-purpose
alibabacloud.com/compute-qos: default
annotations:
alibabacloud.com/cpu-vendors: amd
spec:
containers:
- name: nginx
image: registry.cn-hangzhou.aliyuncs.com/acs-sample/nginx:latest
Do not use ACS system labels (such as alibabacloud.com/compute-class, alibabacloud.com/compute-qos, and alibabacloud.com/cpu-vendor) as filter labels for the matchLabels of a workload. These labels may be modified by the system, which causes the controller to frequently recreate Pods and affects application stability.
Core features
|
Feature |
Description |
|
Security isolation |
As a secure and reliable serverless container runtime environment, ACS fully and strongly isolates each ACS Pod instance at the underlying layer by using lightweight sandboxed container technology, so instances do not affect each other. In addition, instances are distributed across different physical machines whenever possible during scheduling, which further ensures high availability. |
|
CPU/Memory/GPU/EphemeralStorage resource specification configuration |
|
|
Image |
By default, each time an ACS Pod starts, it uses the VPC associated with the Pod to pull the container image from a remote repository. If the image is a public image, you must enable a NAT gateway for the VPC. We recommend that you store container images in Alibaba Cloud Container Registry (ACR) to reduce image pull time over the VPC network. In addition, for private images in ACR, ACS provides the Pull ACR images without a password feature for your convenience. |
|
Storage |
ACS supports four types of persistent storage: cloud disk, NAS, OSS, and CPFS.
|
|
Network |
By default, an ACS Pod uses an independent Pod IP address and occupies one elastic network interface (ENI) of a vSwitch. In an ACS cluster environment, Pods can be interconnected in the following ways:
|
|
Log collection |
You can directly configure the environment variables of a Pod to collect |
Resource specifications
In an ACS cluster, the Pod specifications of the GPU and GPU-HPN computing types are automatically normalized at submission (for example, Pods of the GPU computing type are uniformly normalized to Guaranteed QoS, with Request equal to Limit). When you elastically use ACS GPU computing power through other channels such as ACK clusters and ACK One clusters, resource specification normalization is not reflected in the Pod metadata. You must ensure that the QoS of a Pod remains unchanged before and after submission (for example, Pods of the GPU computing type must be submitted with Guaranteed QoS) to avoid failures to update the Pod status.
General computing types
General-Purpose computing types
|
vCPU |
Memory (GiB) |
Supported Memory step size (GiB) |
Network bandwidth (out + in) (Gbits/s) |
Storage |
|
0.25 |
0.5, 1, 2 |
N/A |
0.08 |
A capacity of 30 GiB or less is free of charge. For a capacity greater than 30 GiB, you are charged only for the excess portion. A maximum of 2000 GiB can be configured. If you need additional storage space, you can extend it by mounting volumes such as NAS. |
|
0.5 |
1~4 |
1 |
0.08 |
|
|
1 |
1~8 |
0.1 |
||
|
1.5 |
2~12 |
1 |
||
|
2 |
2~16 |
|||
|
2.5 |
3~20 |
1.5 |
||
|
3 |
3~24 |
|||
|
3.5 |
4~28 |
|||
|
4 |
4~32 |
|||
|
4.5 |
5~36 |
|||
|
5 |
5~40 |
|||
|
5.5 |
6~44 |
|||
|
6 |
6~48 |
|||
|
6.5 |
7~52 |
2.5 |
||
|
7 |
7~56 |
|||
|
7.5 |
8~60 |
|||
|
8 |
8~64 |
|||
|
8.5 |
9~68 |
|||
|
9 |
9~72 |
|||
|
9.5 |
10~76 |
|||
|
10 |
10~80 |
|||
|
10.5 |
11~84 |
|||
|
11 |
11~88 |
|||
|
11.5 |
12~92 |
|||
|
12 |
12~96 |
|||
|
12.5 |
13~100 |
3 |
||
|
13 |
13~104 |
|||
|
13.5 |
14~108 |
|||
|
14 |
14~112 |
|||
|
14.5 |
15~116 |
|||
|
15 |
15~120 |
|||
|
15.5 |
16~124 |
|||
|
16 |
16~128 |
|||
|
24 |
24, 48, 96, 192 |
N/A |
4.5 |
|
|
32 |
32, 64, 128, 256 |
N/A |
6 |
|
|
48 |
48, 96, 192, 384 |
N/A |
12.5 |
|
|
64 |
64, 128, 256, 512 |
N/A |
20 |
Performance computing types
|
vCPU |
Memory (GiB) |
Supported Memory step size (GiB) |
Network bandwidth (out + in) (Gbits/s) |
Storage |
|
0.25 |
0.5, 1, 2 |
N/A |
0.1 |
A capacity of 30 GiB or less is free of charge. For a capacity greater than 30 GiB, you are charged only for the excess portion. A maximum of 2000 GiB can be configured. If you need additional storage space, you can extend it by mounting volumes such as NAS. |
|
0.5 |
1~4 |
1 |
0.5 |
|
|
1 |
1~8 |
|||
|
1.5 |
2~12 |
|||
|
2 |
2~16 |
1.5 |
||
|
2.5 |
3~20 |
|||
|
3 |
3~24 |
|||
|
3.5 |
4~28 |
|||
|
4 |
4~32 |
2 |
||
|
4.5 |
5~36 |
|||
|
5 |
5~40 |
|||
|
5.5 |
6~44 |
|||
|
6 |
6~48 |
2.5 |
||
|
6.5 |
7~52 |
|||
|
7 |
7~56 |
|||
|
7.5 |
8~60 |
|||
|
8 |
8~64 |
3 |
||
|
8.5 |
9~68 |
|||
|
9 |
9~72 |
|||
|
9.5 |
10~76 |
|||
|
10 |
10~80 |
3.5 |
||
|
10.5 |
11~84 |
|||
|
11 |
11~88 |
|||
|
11.5 |
12~92 |
|||
|
12 |
12~96 |
4 |
||
|
12.5 |
13~100 |
|||
|
13 |
13~104 |
|||
|
13.5 |
14~108 |
|||
|
14 |
14~112 |
4.5 |
||
|
14.5 |
15~116 |
|||
|
15 |
15~120 |
|||
|
15.5 |
16~124 |
|||
|
16 |
16~128 |
6 |
||
|
24 |
24, 48, 96, 192 |
N/A |
8 |
|
|
32 |
32, 64, 128, 256 |
N/A |
10 |
|
|
48 |
48, 96, 192, 384 |
N/A |
16 |
|
|
64 |
64, 128, 256, 512 |
N/A |
25 |
If you need an ACS Pod with more than 16 vCPUs or more than 128 GiB of memory, Submit a ticket to apply.
If you do not specify a specification (neither the .resources.requests nor the .resources.limits of the container is set), the resources of a single Pod default to 2 vCPUs and 4 GiB of memory.
ACS automatically normalizes the Pod specification: based on the greater of the summed .resources.requests or .resources.limits values of the containers, ACS normalizes the Pod to the closest supported specification and exposes the result through the alibabacloud.com/pod-use-spec annotation. If upward normalization occurs, ACS adjusts the .resources.requests or .resources.limits of the container to ensure that all billed resources can be used.
ACS Pod specification normalization logic
Take the case where the summed .resources.requests or .resources.limits values are 2 vCPUs and 3.5 GiB of memory. When the Pod starts, ACS automatically normalizes the Pod specification to 2 vCPUs and 4 GiB of memory. The additional adjusted resources take effect in the first container, and the annotation alibabacloud.com/pod-use-spec=2-4Gi is added to the Pod. The following is a sample resource declaration:
apiVersion: v1
kind: Pod
metadata:
labels:
app: nginx
alibabacloud.com/compute-class: general-purpose
alibabacloud.com/compute-qos: default
name: nginx
spec:
containers:
- name: nginx
image: anolis-registry.cn-zhangjiakou.cr.aliyuncs.com/openanolis/nginx:1.14.1-8.6
ports:
- containerPort: 80
resources:
requests:
cpu: 2 # Declare the CPU as 2 vCPU
memory: "3.5Gi" #Declare the memory as 3.5 GiB
ephemeral-storage: "30Gi" #Declare the storage space as 30 GiB
The resource declaration after normalization is as follows:
apiVersion: v1
kind: Pod
metadata:
annotations:
alibabacloud.com/pod-use-spec: "2-4Gi"
labels:
app: nginx
alibabacloud.com/compute-class: general-purpose
alibabacloud.com/compute-qos: default
name: nginx
spec:
containers:
- name: nginx
image: anolis-registry.cn-zhangjiakou.cr.aliyuncs.com/openanolis/nginx:1.14.1-8.6
ports:
- containerPort: 80
resources:
requests:
cpu: 2 # Declare the CPU as 2 vCPU
memory: "4Gi" #Declare the memory as 4 GiB
ephemeral-storage: "30Gi" #Declare the storage space as 30 GiB
Specify the Pod specification by using an Annotation
Scope
-
Only CPU Pods of the General-purpose type (general-purpose) and the Performance type (performance) are supported.
-
The maximum specification supported by the Annotation is 64 vCPU/512 GiB, subject to the limits of General computing type specifications.
Usage
For scenarios where the Quality of Service (QoS) is Burstable (.resources.limits > .resources.requests), you can declare the target resource specification of a Pod by specifying the Annotation alibabacloud.com/pod-required-spec: "X-YGi". The resource specification must use the <CPU>-<Memory> format, where the CPU unit is the number of cores (for example, "2" indicates 2 vCPUs) and the memory unit is GiB (for example, "4Gi" indicates 4 GiB). The detailed resource alignment and usage rules are as follows:
-
If the resource specification format is invalid (for example, a missing unit, the use of Mi, or a reversed order), the Pod fails to be created.
-
If the Annotation is set but
.resourcesis not defined for any container, the system strictly normalizes the Pod according to the Annotation declared value and does not fall back to the default specification (such as 2 vCPU/4 GiB). -
If the Annotation declared value is less than the sum of
.resources.requestsof all containers in the Pod, the Pod fails to be created. -
If the Annotation declared value is greater than the sum of
.resources.limitsof all containers in the Pod, the system uses the Annotation declared value as the target normalized specification of the Pod.In multi-container Pod scenarios, the first container is identified as the main container. The specification difference between the Annotation declared value and the sum of
limits(the declared value minus the current sum of limits) is preferentially allocated to the.resources.limitsof the main container (with.resources.requestsadjusted at the same time when necessary) to ensure that the overall Pod resources align with the target specification.
Usage examples
Take the case where alibabacloud.com/pod-required-spec: "2-4Gi" is configured and the summed .resources.requests or .resources.limits values of the containers are 1 vCPU and 2 GiB of memory. When the Pod starts, ACS automatically normalizes the Pod specification to 2 vCPUs and 4 GiB of memory. The additional adjusted resources take effect in the first container, and the annotation alibabacloud.com/pod-use-spec=2-4Gi is added to the Pod.
The following is a sample resource declaration:
In this example, .resources.limits.memory is 3.5Gi.apiVersion: v1
kind: Pod
metadata:
labels:
app: nginx
alibabacloud.com/compute-class: general-purpose
alibabacloud.com/compute-qos: default
annotations:
alibabacloud.com/pod-required-spec: "2-4Gi"
name: nginx
spec:
containers:
- name: nginx
image: anolis-registry.cn-zhangjiakou.cr.aliyuncs.com/openanolis/nginx:1.14.1-8.6
ports:
- containerPort: 80
resources:
requests:
cpu: 1 # Declare the CPU as 1 vCPU
memory: "2Gi" #Declare the memory as 2 GiB
ephemeral-storage: "30Gi" #Declare the storage space as 30 GiB
limits:
cpu: 2 # Declare the CPU as 2 vCPU
memory: "3.5Gi" #Declare the memory as 3.5 GiB
ephemeral-storage: "30Gi" #Declare the storage space as 30 GiB
The resource declaration after normalization is as follows:
In this example, .resources.limits.memory is normalized from 3.5Gi to 4Gi.apiVersion: v1
kind: Pod
metadata:
annotations:
alibabacloud.com/pod-required-spec: "2-4Gi"
alibabacloud.com/pod-use-spec: "2-4Gi"
labels:
app: nginx
alibabacloud.com/compute-class: general-purpose
alibabacloud.com/compute-qos: default
name: nginx
spec:
containers:
- name: nginx
image: anolis-registry.cn-zhangjiakou.cr.aliyuncs.com/openanolis/nginx:1.14.1-8.6
ports:
- containerPort: 80
resources:
requests:
cpu: 1 # Declare the CPU as 1 vCPU
memory: "2Gi" #Declare the memory as 2 GiB
ephemeral-storage: "30Gi" #Declare the storage space as 30 GiB
limits:
cpu: 2 # Declare the CPU as 2 vCPU
memory: "4Gi" #Declare the memory as 4 GiB
ephemeral-storage: "30Gi" #Declare the storage space as 30 GiB
Accelerated computing types
The following are the GPU card models supported by ACS. The specifications of different card models vary to some extent. For the specific specification mappings, Submit a ticket.
GU8TF
|
GPU (cards) |
vCPU |
Memory (GiB) |
Supported Memory step size (GiB) |
Storage (GiB) |
|
1 (96 GB of GPU memory) |
2 |
2 ~ 16 |
1 |
30 ~ 256 |
|
4 |
4 ~ 32 |
1 |
||
|
6 |
6 ~ 48 |
1 |
||
|
8 |
8 ~ 64 |
1 |
||
|
10 |
10 ~ 80 |
1 |
||
|
12 |
12 ~ 96 |
1 |
||
|
14 |
14 ~ 112 |
1 |
||
|
16 |
16 ~ 128 |
1 |
||
|
22 |
22, 32, 64, 128 |
N/A |
||
|
2 (96 GB of GPU memory x 2) |
16 |
16 ~ 128 |
1 |
30 ~ 512 |
|
32 |
32, 64, 128, 230 |
N/A |
||
|
46 |
64, 128, 230 |
N/A |
||
|
4 (96 GB of GPU memory x 4) |
32 |
32, 64, 128, 256 |
N/A |
30 ~ 1024 |
|
64 |
64, 128, 256, 460 |
N/A |
||
|
92 |
128, 256, 460 |
N/A |
||
|
8 (96 GB of GPU memory x 8) |
64 |
64, 128, 256, 512 |
N/A |
30 ~ 2048 |
|
128 |
128, 256, 512, 920 |
N/A |
||
|
184 |
256, 512, 920 |
N/A |
GU8TEF
|
GPU (cards) |
vCPU |
Memory (GiB) |
Supported Memory step size (GiB) |
Storage (GiB) |
|
1 (141 GB of GPU memory) |
2 |
2 ~ 16 |
1 |
30 ~ 768 |
|
4 |
4 ~ 32 |
1 |
||
|
6 |
6 ~ 48 |
1 |
||
|
8 |
8 ~ 64 |
1 |
||
|
10 |
10 ~ 80 |
1 |
||
|
12 |
12 ~ 96 |
1 |
||
|
14 |
14 ~ 112 |
1 |
||
|
16 |
16 ~ 128 |
1 |
||
|
22 |
22, 32, 64, 128, 225 |
N/A |
||
|
2 (141 GB of GPU memory x 2) |
16 |
16 ~ 128 |
1 |
30 ~ 1536 |
|
32 |
32, 64, 128, 256 |
N/A |
||
|
46 |
64, 128, 256, 450 |
N/A |
||
|
4 (141 GB of GPU memory x 4) |
32 |
32, 64, 128, 256 |
N/A |
30 ~ 3072 |
|
64 |
64, 128, 256, 512 |
N/A |
||
|
92 |
128, 256, 512, 900 |
N/A |
||
|
8 (141 GB of GPU memory x 8) |
64 |
64, 128, 256, 512 |
N/A |
30 ~ 6144 |
|
128 |
128, 256, 512, 1024 |
N/A |
||
|
184 |
256, 512, 1024, 1800 |
N/A |
L20(GN8IS)
|
GPU (cards) |
vCPU |
Memory (GiB) |
Supported Memory step size (GiB |
Storage (GiB) |
|
1 (48 GB of GPU memory) |
2 |
2 ~ 16 |
1 |
30 ~ 256 |
|
4 |
4 ~ 32 |
1 |
||
|
6 |
6 ~ 48 |
1 |
||
|
8 |
8 ~ 64 |
1 |
||
|
10 |
10 ~ 80 |
1 |
||
|
12 |
12 ~ 96 |
1 |
||
|
14 |
14 ~ 112 |
1 |
||
|
16 |
16 ~ 120 |
1 |
||
|
2 (48 GB of GPU memory x 2) |
16 |
16 ~ 128 |
1 |
30 ~ 512 |
|
32 |
32, 64, 128, 230 |
N/A |
||
|
4 (48 GB of GPU memory x 4) |
32 |
32, 64, 128, 256 |
N/A |
30 ~ 1024 |
|
64 |
64, 128, 256, 460 |
N/A |
||
|
8 (48 GB of GPU memory x 8) |
64 |
64, 128, 256, 512 |
N/A |
30 ~ 2048 |
|
128 |
128, 256, 512, 920 |
N/A |
L20X(GX8SF)
|
GPU (cards) |
vCPU |
Memory (GiB) |
Supported Memory step size (GiB) |
Storage (GiB) |
|
8 (141 GB of GPU memory x 8) |
184 |
1800 |
N/A |
30 ~ 6144 |
P16EN
|
GPU (cards) |
vCPU |
Memory (GiB) |
Supported Memory step size (GiB) |
Storage (GiB) |
|
1 (96 GB of GPU memory) |
2 |
2~16 |
1 |
30 ~ 384 |
|
4 |
4~32 |
1 |
||
|
6 |
6~48 |
1 |
||
|
8 |
8~64 |
1 |
||
|
10 |
10~80 |
1 |
||
|
2 (96 GB of GPU memory x 2) |
4 |
4~32 |
1 |
30 ~ 768 |
|
6 |
6~48 |
1 |
||
|
8 |
8~64 |
1 |
||
|
16 |
16~128 |
1 |
||
|
22 |
32, 64, 128, 225 |
N/A |
||
|
4 (96 GB of GPU memory x 4) |
8 |
8~64 |
1 |
30 ~ 1536 |
|
16 |
16~128 |
1 |
||
|
32 |
32, 64, 128, 256 |
N/A |
||
|
46 |
64, 128, 256, 450 |
N/A |
||
|
8 (96 GB of GPU memory x 8) |
16 |
16~128 |
1 |
30 ~ 3072 |
|
32 |
32, 64, 128, 256 |
N/A |
||
|
64 |
64, 128, 256, 512 |
N/A |
||
|
92 |
128, 256, 512, 900 |
N/A |
||
|
16 (96 GB of GPU memory x 16) |
32 |
32, 64, 128, 256 |
N/A |
30 ~ 6144 |
|
64 |
64, 128, 256, 512 |
N/A |
||
|
128 |
128, 256, 512, 1024 |
N/A |
||
|
184 |
256, 512, 1024, 1800 |
N/A |
T4
|
GPU (cards) |
vCPU |
Memory (GiB) |
Supported Memory step size (GiB) |
Storage (GiB) |
|
1 (16 GB of GPU memory) |
2 |
2~8 |
1 |
30 ~ 1536 |
|
4 |
4~16 |
1 |
||
|
6 |
6~24 |
1 |
||
|
8 |
8~32 |
1 |
||
|
10 |
10~40 |
1 |
||
|
12 |
12~48 |
1 |
||
|
14 |
14~56 |
1 |
||
|
16 |
16~64 |
1 |
||
|
24 |
24, 48, 90 |
N/A |
30 ~ 1536 |
|
|
2 (16 GB of GPU memory x 2) |
16 |
16~64 |
1 |
|
|
24 |
24, 48, 96 |
N/A |
||
|
32 |
32, 64, 128 |
N/A |
||
|
48 |
48, 96, 180 |
N/A |
A10
|
GPU (cards) |
vCPU |
Memory (GiB) |
Supported Memory step size (GiB) |
Storage (GiB) |
|
1 (24 GB of GPU memory) |
2 |
2~8 |
1 |
30 ~ 256 |
|
4 |
4~16 |
1 |
||
|
6 |
6~24 |
1 |
||
|
8 |
8~32 |
1 |
||
|
10 |
10~40 |
1 |
||
|
12 |
12~48 |
1 |
||
|
14 |
14~56 |
1 |
||
|
16 |
16~60 |
1 |
||
|
2 (24 GB of GPU memory x 2) |
16 |
16~64 |
1 |
30 ~ 512 |
|
32 |
32, 64, 120 |
N/A |
||
|
4 (24 GB of GPU memory x 4) |
32 |
32, 64, 128 |
N/A |
30 ~ 1024 |
|
64 |
64, 128, 240 |
N/A |
||
|
8 (24 GB of GPU memory x 8) |
64 |
64, 128, 256 |
N/A |
30 ~ 2048 |
|
128 |
128, 256, 480 |
N/A |
G28Ti
|
GPU (cards) |
vCPU |
Memory (GiB) |
Supported Memory step size (GiB) |
Storage (GiB) |
|
1 (11 GB of GPU memory) |
2 |
2~8 |
1 |
30 ~ 1536 |
|
4 |
4~16 |
1 |
||
|
6 |
6~24 |
1 |
||
|
8 |
8~32 |
1 |
||
|
10 |
10~40 |
1 |
||
|
12 |
12~48 |
1 |
G49E
|
GPU (cards) |
vCPU |
Memory (GiB) |
Supported Memory step size (GiB) |
Storage (GiB) |
|
1 (48 GB of GPU memory) |
2 |
2~16 |
1 |
30 ~ 256 |
|
4 |
4~32 |
1 |
||
|
6 |
6~48 |
1 |
||
|
8 |
8~64 |
1 |
||
|
10 |
10~80 |
1 |
||
|
12 |
12~96 |
1 |
||
|
14 |
14~112 |
1 |
||
|
16 |
16~120 |
1 |
||
|
2 (48 GB of GPU memory x 2) |
16 |
16~128 |
1 |
30 ~ 512 |
|
32 |
32, 64, 128, 230 |
N/A |
||
|
4 (48 GB of GPU memory x 4) |
32 |
32, 64, 128, 256 |
N/A |
30 ~ 1024 |
|
64 |
64, 128, 256, 460 |
N/A |
||
|
8 (48 GB of GPU memory x 8) |
64 |
64, 128, 256, 512 |
N/A |
30 ~ 2048 |
|
128 |
128, 256, 512, 920 |
N/A |
G59
|
GPU (cards) |
vCPU |
Memory (GiB) |
Supported Memory step size (GiB) |
Storage (GiB) |
|
1 (32 GB of GPU memory) |
2 |
2 ~ 16 |
1 |
30 ~ 256 |
|
4 |
4 ~ 32 |
1 |
||
|
6 |
6 ~ 48 |
1 |
||
|
8 |
8 ~ 64 |
1 |
||
|
10 |
10 ~ 80 |
1 |
||
|
12 |
12 ~ 96 |
1 |
||
|
14 |
14 ~ 112 |
1 |
||
|
16 |
16 ~ 128 |
1 |
||
|
22 |
22, 32, 64, 128 |
N/A |
||
|
2 (32 GB of GPU memory x 2) |
16 |
16 ~ 128 |
1 |
30 ~ 512 |
|
32 |
32, 64, 128, 256 |
N/A |
||
|
46 |
64, 128, 256, 360 |
N/A |
||
|
4 (32 GB of GPU memory x 4) |
32 |
32, 64, 128, 256 |
N/A |
30 ~ 1024 |
|
64 |
64, 128, 256, 512 |
N/A |
||
|
92 |
128, 256, 512, 720 |
N/A |
||
|
8 (32 GB of GPU memory x 8) |
64 |
64, 128, 256, 512 |
N/A |
30 ~ 2048 |
|
128 |
128, 256, 512, 1024 |
N/A |
||
|
184 |
256, 512, 1024, 1440 |
N/A |
L20N
|
GPU (cards) |
vCPU |
Memory (GiB) |
Supported Memory step size (GiB) |
Storage (GiB) |
|
1 (48 GB of GPU memory) |
2 |
2 ~ 16 |
1 |
30 ~ 2048 |
|
4 |
4 ~ 32 |
1 |
||
|
6 |
6 ~ 48 |
1 |
||
|
8 |
8 ~ 64 |
1 |
||
|
10 |
10 ~ 80 |
1 |
||
|
12 |
12 ~ 96 |
1 |
||
|
14 |
14 ~ 112 |
1 |
||
|
16 |
16 ~ 128 |
1 |
||
|
32 |
32, 64, 128, 256 |
N/A |
||
|
2 (48 GB of GPU memory x 2) |
16 |
16 ~ 128 |
1 |
|
|
32 |
32, 64, 128, 256 |
N/A |
||
|
64 |
64, 128, 256, 512 |
N/A |
||
|
4 (48 GB of GPU memory x 4) |
32 |
32, 64, 128, 256 |
N/A |
|
|
64 |
64, 128, 256, 512 |
N/A |
||
|
128 |
128, 256, 512, 1024 |
N/A |
||
|
8 (48 GB of GPU memory x 8) |
64 |
64, 128, 256, 512 |
N/A |
|
|
128 |
128, 256, 512, 1024 |
N/A |
||
|
256 |
256, 512, 1024, 2048 |
N/A |
L20NE
|
GPU (cards) |
vCPU |
Memory (GiB) |
Supported Memory step size (GiB) |
Storage (GiB) |
|
1 (72 GB of GPU memory) |
2 |
2 ~ 16 |
1 |
30 ~ 2048 |
|
4 |
4 ~ 32 |
1 |
||
|
6 |
6 ~ 48 |
1 |
||
|
8 |
8 ~ 64 |
1 |
||
|
10 |
10 ~ 80 |
1 |
||
|
12 |
12 ~ 96 |
1 |
||
|
14 |
14 ~ 112 |
1 |
||
|
16 |
16 ~ 128 |
1 |
||
|
32 |
32, 64, 128, 180 |
N/A |
||
|
2 (72 GB of GPU memory x 2) |
16 |
16 ~ 128 |
1 |
|
|
32 |
32, 64, 128, 256 |
N/A |
||
|
64 |
64, 128, 256, 360 |
N/A |
||
|
4 (72 GB of GPU memory x 4) |
32 |
32, 64, 128, 256 |
N/A |
|
|
64 |
64, 128, 256, 512 |
N/A |
||
|
128 |
128, 256, 512, 720 |
N/A |
||
|
8 (72 GB of GPU memory x 8) |
64 |
64, 128, 256, 512 |
N/A |
|
|
128 |
128, 256, 512, 1024 |
N/A |
||
|
256 |
256, 512, 1024, 1440 |
N/A |
All the preceding GPU models share the same specifications in scenarios such as pay-as-you-go usage, capacity reservation, and BestEffort. Specifically:
-
For specifications with 16 GiB of memory or less, the memory overhead is borne by ACS. For specifications with more than 16 GiB of memory, the memory overhead is apportioned to the corresponding Pod. Be sure to reserve sufficient resources for your application to ensure its stable operation.
-
No additional fees are charged for a system disk with a capacity of 30 GB or less (including the image size). For a system disk larger than 30 GB, you are charged for the excess portion.
Automatic specification normalization
If you do not specify a specification, a GPU container Pod selects the smallest Pod specification based on the GPU type (for example, the preceding table shows 2 vCPUs, 2 GiB of memory, and 1 GPU card).
ACS automatically normalizes unsupported specifications. After normalization, the .resources.requests of the container remains unchanged, but the Pod specification is exposed through the alibabacloud.com/pod-use-spec annotation. When the resource limit specified by a container (resources.limits) exceeds the Pod specification, ACS sets the resource limit of the container based on the Pod specification.
-
CPU and Memory normalization logic: If the resources of all containers add up to 2 vCPUs and 3.5 GiB of memory, ACS automatically normalizes the Pod to 2 vCPUs and 4 GiB of memory. The additional adjusted resources take effect in the first container. The Pod exposes the annotation
alibabacloud.com/pod-use-spec=2-4Gi. If a single container in the Pod specifies a resource limit of 3 vCPUs and 5 GiB of memory, the resource limit of that container takes effect as 2 vCPUs and 5 GiB. -
GPU normalization logic: If the number of GPUs requested by a Pod is not in the table, the Pod fails to be submitted.
GPU-HPN computing type
For resource normalization of the high-performance network GPU type, ACS uses the request as the basis and aligns the limit to be equal to the request. In addition, the resource specification of a Pod is constrained by the node capacity. When the specification exceeds the node capacity, the Pod remains pending due to insufficient resources. For specific node specifications, see the purchase specification description.
Limits for Kubernetes applications
ACS integrates seamlessly with Kubernetes through virtual nodes. Therefore, ACS Pod instances do not run on a centralized physical node, but are distributed across the resource pool of Alibaba Cloud. Based on the security of the public cloud and the limitations introduced by virtual nodes themselves, ACS imposes certain limits on Kubernetes features such as HostPath and DaemonSet, as described in the following table.
|
Limit |
Description |
Handling policy when validation fails |
Recommended alternative |
|
DaemonSet |
The use of DaemonSet workloads is limited |
The Pod runs but does not work properly |
Deploy multiple containers in a Pod as sidecars |
|
Service with type=NodePort |
Maps host ports to containers |
The submission is rejected |
Use load balancing with |
|
HostNetwork |
Uses the host network |
The effective value is |
Not required |
|
HostIPC |
Inter-process communication between container processes and host processes is limited |
The effective value is |
Not required |
|
HostPID |
Restricts container visibility of the host PID namespace |
The effective value is |
Not required |
|
HostUsers |
The use of user namespaces is limited |
No validation is performed |
Not required |
|
HostPort |
Mapping host ports to containers is limited |
The effective value is empty |
Not required |
|
Runtimeclass |
Specifies the container runtime configuration |
The submission is rejected |
Not required |
|
DNSPolicy |
The use of specific DNSPolicy values is limited Note
|
|
Use an allowed value |
|
Container environment variable format |
In addition to the default constraints that the Kubernetes APIServer places on environment variables, for the GPU and GPU-HPN computing types, ACS requires that environment variable names consist only of letters, digits, underscores, periods, or hyphens, and the first character cannot be a digit. |
The Pod fails to start. |
Use environment variable names that comply with the specification. |
|
Number of container environment variables |
Due to the constraint that the Linux system places on the length of the argument list for system calls, you must limit the number of environment variables in a single container (to approximately 2,000 or fewer). In addition, if enableServiceLinks is enabled for a Pod (the default value is true), information about all Services in the current namespace is injected into containers as environment variables, which may also cause the total number of environment variables to exceed the system limit. |
The Pod fails to start. |
Reduce the number of container environment variables. If there are many Services, disable the enableServiceLinks setting for the Pod. |
Container security validation
Kubernetes container security validation and configuration ensure the security of containerized applications at deployment and runtime, and prevent potential attacks and data leaks. By checking and configuring appropriate security contexts, enterprises can effectively reduce the risk of security vulnerabilities and protect applications and the data they process from malicious behavior or misconfiguration, thereby improving the overall security and compliance of the system.
If your business scenario requires opening up container security validation, you can Submit a ticket to relax the limits. However, your business must bear a certain degree of responsibility for the resulting security risks. For the related mechanism, see Shared responsibility model. The specific limits are described in the following table:
|
Limit |
Description |
Handling policy when validation fails |
Recommended alternative |
|
Privileged Container |
Restricts containers from having privileged permissions (securityContext.privileged) |
The startup fails |
Use Security Context to add allowed capabilities or sysctls to the Pod |
|
PrivilegeEscalation |
Restricts containers from performing elevation of privilege (securityContext.allowPrivilegeEscalation) |
The startup fails |
Use the default configurations |
|
Linux capabilities |
Restricts the use of Linux system privileges (securityContext.capabilities) Note
The following options can be configured:
|
The startup fails |
Use an allowed value |
|
HostPath |
Restricts mounting local host files into containers Note
The following options can be configured:
The GPU and GPU-HPN computing types do not support SubPath configurations. |
The startup fails |
Use emptyDir, a cloud disk, or a NAS file system |
|
Sysctl |
Restricts the use of kernel parameters (securityContext.sysctls) Note
The following options can be configured:
|
The startup fails |
Use an allowed value |
Port occupancy description
The following table lists the ports occupied by ACS. When you deploy services, avoid using the following ports.
|
Port |
Description |
|
111, 10250, 10255 |
Ports used by the ACS cluster for interfaces such as exec, logs, and metrics. |