Pods are the smallest deployable units in Kubernetes. A pod runs an instance of an independent application in Kubernetes. Each pod contains one or more containers that are tightly coupled. This topic describes how to view and modify pod configurations, and scale the number of pods in the Container Service for Kubernetes (ACK) console.

View pods

View pod details

  1. Log on to the ACK console.
  2. In the left-side navigation pane of the ACK console, click Clusters.
  3. On the Clusters page, find the cluster that you want to manage and click the name of the cluster or click Details in the Actions column. The details page of the cluster appears.
  4. In the left-side navigation pane of the details page, choose Workloads > Pods.
  5. Find the pod that you want to manage and click View Details in the Actions column.
    You can view details of pods by using one of the following methods:
    • Method 1: In the left-side navigation pane of the cluster details page, choose Workloads > Deployments. Find the application that you want to manage and click the name of the application. On the Pods tab, click the name of the pod to view details.
    • Method 2: In the left-side navigation pane of the cluster details page, choose Network > Services. Click the name of the Service that you want to manage. On the page that appears, find and click the name of the application that you want to manage. On the Pods tab, click the name of the pod to view details.
    Note On the Pods page, you can modify and delete pods. For pods that are created by using a Deployment, we recommend that you use the Deployment to manage the pods.
    The following table describes the status of pods.
    Status Description
    Initialized All init containers are started.
    Ready The pod is able to serve requests and 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.

View pod log

You can view a pod log by using the following methods:

Navigate to the Pods tab, find the pod that you want to manage, and then click Logs in the Actions column to view the log data.

Filter pods

On the Pods page, you can filter pods by name, node, host IP, pod IP, and label. Pod

Modify pod configurations

  1. Log on to the ACK console.
  2. In the left-side navigation pane of the ACK console, click Clusters.
  3. On the Clusters page, find the cluster that you want to manage and click the name of the cluster or click Details in the Actions column. The details page of the cluster appears.
  4. In the left-side navigation pane of the details page, choose Workloads > Pods.
  5. On the Pods page, find the pod that you want to manage and click Edit in the Actions column.
  6. In the dialog box that appears, modify the configuration of the pod and click Update.
    Update the configuration of the pod

Scale the number of pods for an application

After an application is created, you can scale the number of pods provisioned for the application based on your business requirements.

  1. Log on to the ACK console.
  2. In the left-side navigation pane of the ACK console, click Clusters.
  3. On the Clusters page, find the cluster that you want to manage and click the name of the cluster or click Details in the Actions column. The details page of the cluster appears.
  4. In the left-side navigation pane of the details page, choose Workloads > Deployments.
  5. Select the namespace where the Deployment is deployed, find the Deployment, and then click Scale in the Actions column.
  6. In the dialog box that appears, set Desired Number of Pods to 4 and click OK.
    Note By default, the resources created for a Deployment are updated based on the rollingUpdate strategy. This ensures that a minimum number of pods are running during the update. You can specify the minimum number of pods that must run in Pod Template of the YAML file.