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 YAML files of Deployments, StatefulSets, DaemonSets, CronJobs, and containers on the CCE console. YAML files of jobs can only be viewed, copied, and downloaded. NOTE:
If an existing CronJob is modified, the new configuration takes effect for the new pods, and the existing pod continues to run without any change. |
|
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 attached to workloads as key-value pairs to manage and select workloads. 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.
Before viewing logs, ensure that the time of the browser is the same as that on the backend server.
In the displayed View Log window, you can view logs.
The displayed logs are standard output logs of containers and do not have persistence and advanced O&M capabilities. To use more comprehensive log capabilities, see Logs. If the function of collecting standard output is enabled for the workload (enabled by default), you can go to AOM to view more workload logs. For details, see Collecting Container Logs Using ICAgent.
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 YAML files of Deployments, StatefulSets, DaemonSets, CronJobs, and containers on the CCE console. YAML files of 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. You can manage and select workloads by labels. You can add labels to multiple workloads or a specified workload.
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.