Pods are the smallest deployable units in Kubernetes. A pod runs one instance of an application and contains one or more tightly coupled containers. This topic describes how to view pod details and modify CPU and memory resource limits for pods in the Alibaba Cloud Container Compute Service (ACS) console.
Prerequisites
Before you begin, ensure that you have:
A running ACS cluster with at least one pod deployed
Access to the ACS console
View pods
Log on to the ACS console. In the left-side navigation pane, click Clusters.
On the Clusters page, click the name of a cluster. In the left-side pane, choose Workloads > Pods.
On the Pods page, find the pod you want to inspect and click View Details in the Actions column.
For pods created by a Deployment, manage them through the Deployment rather than editing pods directly. Direct pod edits are overwritten when the Deployment reconciles.
Pod status reference
Pod conditions provide a granular view of the pod's readiness:
| Condition | Description |
|---|---|
| Initialized | All init containers have started successfully. |
| Ready | The pod can serve requests and has been added to the load balancing pools of all matching Services. |
| ContainersReady | All containers in the pod are ready. |
| PodScheduled | The pod has been scheduled to a node. |
For more information, see Pod lifecycle.
Modify CPU and memory resource limits
In Kubernetes, resource requests tell the scheduler how much CPU or memory a pod needs to be placed on a node. Resource limits cap how much the pod can actually consume at runtime. In ACS, by default, the resource request is set equal to the resource limit — if you use a YAML template to specify a different request value, ACS automatically overrides it to match the limit.
Resources are billed on a pay-as-you-go basis based on the limit value.
The following steps use a Deployment as an example.
Log on to the ACS console. In the left-side navigation pane, click Clusters.
On the Clusters page, click the name of a cluster. In the left-side pane, choose Workloads > Pods.
On the Pods page, select a namespace from the Namespace drop-down list, then click Edit in the Actions column for the pod you want to modify.
On the editing page, set the CPU and memory limits based on your requirements.
For valid CPU and memory combinations and range constraints, see Resource specifications.