Patches node vulnerabilities in a node pool to enhance node security. Cloud Security provided by Alibaba Cloud periodically scans Elastic Compute Service (ECS) instances for vulnerabilities and provides suggestions on how to patch the detected vulnerabilities. Vulnerability patching may require node restarts. Make sure that your cluster has sufficient idle nodes for node draining.
Operation description
The Common Vulnerabilities and Exposures (CVE) patching feature is developed based on Security Center. To use this feature, you must purchase the Security Center Ultimate Edition that supports Container Service for Kubernetes (ACK).
ACK may need to restart nodes to patch certain vulnerabilities. ACK drains a node before the node restarts. Make sure that the ACK cluster has sufficient idle nodes to host the pods evicted from the trained nodes. For example, you can scale out a node pool before you patch vulnerabilities for the nodes in the node pool.
Security Center ensures the compatibility of CVE patches. We recommend that you check the compatibility of a CVE patch with your application before you install the patch. You can pause or cancel a CVE patching task anytime.
CVE patching is a progressive task that consists of multiple batches. After you pause or cancel a CVE patching task, ACK continues to process the dispatched batches. Only the batches that have not been dispatched are paused or canceled.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:FixNodePoolVuls |
update |
*Cluster
|
None | None |
Request syntax
POST /clusters/{cluster_id}/nodepools/{nodepool_id}/vuls/fix HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| cluster_id |
string |
Yes |
The cluster ID. |
cf62854ac2130470897be7a27ed1f**** |
| nodepool_id |
string |
Yes |
The node pool ID. |
np31da1b38983f4511b490fc62108a**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| vuls |
array |
No |
The list of vulnerabilities. |
|
|
string |
No |
The name of the vulnerability. |
oval:com.redhat.rhsa:def:20170574 |
|
| nodes |
array |
No |
The names of the nodes to be patched. |
|
|
string |
No |
The node name. |
cn-beijing.10.0.xx.xx |
|
| rollout_policy |
object |
No |
The batch patching policy. |
|
| max_parallelism |
integer |
No |
The maximum concurrency for batch patching. Minimum value: 1. The maximum value equals the number of nodes in the node pool. |
1 |
| auto_restart |
boolean |
No |
Specifies whether to allow the nodes to restart. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| task_id |
string |
The ID of the CVE patching task. |
T-60fea8ad2e277f087900**** |
Examples
Success response
JSON format
{
"task_id": "T-60fea8ad2e277f087900****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.