Operation |
Description |
---|---|
You can view logs of Deployments, StatefulSets, DaemonSets, and jobs. |
|
You can replace images or image tags to quickly upgrade Deployments, StatefulSets, and DaemonSets without interrupting services. |
|
You can modify and download the YAML files of Deployments, StatefulSets, DaemonSets, and pods on the CCE console. YAML files of jobs and cron jobs can only be viewed, copied, and downloaded. |
|
A workload can be automatically resized according to scaling policies, freeing you from the efforts to manually adjust resources for fluctuating service traffic. This saves you big on both resources and labors. |
|
You can view the CPU and memory usage of Deployments, DaemonSets, and pods on the CCE console to determine the resource specifications you may need. |
|
Only Deployments can be rolled back. |
|
Only Deployments can be paused. |
|
Only Deployments can be resumed. |
|
Labels are key-value pairs and can be attached to workloads for affinity and anti-affinity scheduling. |
|
You can delete a workload or job that is no longer needed. Deleted workloads or jobs cannot be recovered. |
|
You can determine how your workloads can be accessed. For details, see Overview. |
|
CCE supports custom and simple scheduling policies. Custom scheduling policies allow you to customize node affinity, workload affinity, and workload anti-affinity. Simple scheduling policies allow easy and convenient scheduling. |
|
CCE provides event names, event types, number of occurrences, Kubernetes events, first occurrence time, and last occurrence time by workload or pod. |
You can view logs of Deployments, StatefulSets, DaemonSets, and jobs. This section uses a Deployment as an example to describe how to view logs.
In the displayed Logs window, view the logs generated in the last 5 minutes, 30 minutes, or 1 hour.
You can replace images or image tags to quickly upgrade Deployments, StatefulSets, and DaemonSets without interrupting services.
This section uses a Deployment as an example to describe how to upgrade a workload.
Before replacing an image or image version, upload the new image to the SWR service.
To edit an environment variable that has been set, click Edit. To delete an environment variable that has been set, click Delete.
You can add data storage volumes only when creating a StatefulSet.
Enter the user ID to set container permissions and prevent systems and other containers from being affected.
You can modify and download the YAML files of Deployments, StatefulSets, DaemonSets, and pods on the CCE console. YAML files of jobs and cron jobs can only be viewed, copied, and downloaded. This section uses a Deployment as an example to describe how to edit the YAML file.
A workload can be automatically resized according to custom scaling policies, freeing you from the efforts to manually adjust the amount of resources for fluctuating service traffic. This saves you big on both resources and labors. This section uses a Deployment as an example to describe how to scale a workload.
For details, see Scaling a Workload.
You can view the CPU and memory usage of Deployments, DaemonSets, and pods on the CCE console to determine the resource specifications you may need. This section uses a Deployment as an example to describe how to monitor a workload.
The horizontal axis indicates time while the vertical axis indicates the CPU usage. The green line indicates the CPU usage while the red line indicates the CPU usage limit.
It takes some time to calculate CPU usage. Therefore, when CPU and memory usage are displayed for the first time, CPU usage is displayed about one minute later than memory usage.
CPU and memory usage are displayed only for pods in the running state.
The horizontal axis indicates time while the vertical axis indicates the memory usage. The green line indicates the memory usage while the red line indicates the memory usage limit.
Memory usage is displayed only for a running pod.
CCE records the release history of all Deployments. You can roll back a Deployment to a specified version.
You can pause Deployments. After a Deployment is paused, the upgrade command can be successfully issued but will not be applied to the pods.
If you are performing a rolling upgrade, the rolling upgrade stops after the pause command is issued. In this case, the new and old pods coexist.
Deployments in the paused state cannot be rolled back.
You can resume paused Deployments. After a Deployment is resumed, it can be upgraded or rolled back. Its pods will inherit the latest updates of the Deployment. If they are inconsistent, the pods are upgraded automatically according to the latest information of the Deployment.
Labels are key-value pairs and can be attached to workloads. Workload labels are often used for affinity and anti-affinity scheduling. You can add labels to multiple workloads or a specified workload.
You can manage the labels of Deployments, StatefulSets, and DaemonSets based on service requirements. This section uses Deployments as an example to describe how to manage labels.
In the following figure, three labels (release, env, and role) are defined for workload APP 1, APP 2, and APP 3. The values of these labels vary with workload.
If you set key to role and value to frontend when using workload scheduling or another function, APP 1 and APP 2 will be selected.
A key-value pair must contain 1 to 63 characters starting and ending with a letter or digit. Only letters, digits, hyphens (-), underscores (_), and periods (.) are allowed.
You can delete a workload or job that is no longer needed. Deleted workloads or jobs cannot be recovered. Exercise caution when you perform this operation. This section uses a Deployment as an example to describe how to delete a workload.
Read the system prompts carefully. A workload cannot be recovered after it is deleted. Exercise caution when performing this operation.