Operation |
Description |
---|---|
You can view the CPU and memory usage of workloads and pods on the CCE console. |
|
You can view the logs of workloads. |
|
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. |
|
Only Deployments can be rolled back. |
|
You can redeploy a workload. After the workload is redeployed, all pods in the workload will be restarted. |
|
Only Deployments support this operation. |
|
Labels are key-value pairs and can be attached to workloads for affinity and anti-affinity scheduling. Jobs and Cron Jobs do not support this operation. |
|
You can delete a workload or job that is no longer needed. Deleted workloads or jobs cannot be recovered. |
|
You can view event names, event types, number of occurrences, Kubernetes events, first occurrence time, and last occurrence time. |
|
Stop/Start |
You can only start or stop a cron job. |
You can view the CPU and memory usage of Deployments 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.
You can view logs of Deployments, StatefulSets, DaemonSets, and jobs. This section uses a Deployment as an example to describe how to view logs.
On the displayed View Log window, you can view logs by time.
You quickly upgrade Deployments, StatefulSets, and DaemonSets on the CCE console.
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.
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.
CCE records the release history of all Deployments. You can roll back a Deployment to a specified version.
After you redeploy a workload, all pods in the workload will be restarted. This section uses Deployments as an example to illustrate how to redeploy a workload.
Only Deployments support this operation.
If you are performing a rolling upgrade, the rolling upgrade stops after the disabling upgrade command is delivered. In this case, the new and old pods co-exist.
Deployments in the disable upgrade state cannot be rolled back.
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.
This section uses Deployments as an example to illustrate how to view events of a workload. To view the event of a job or cron jon, click View Event in the Operation column of the target workload.
Event data will be retained for one hour and then automatically deleted.