Memperbarui komponen node.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:UpdateNodePoolComponent |
update |
*Cluster
|
None | None |
Sintaks permintaan
PUT /clusters/{clusterId}/nodepools/{nodepoolId}/component HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| clusterId |
string |
No |
ID kluster. |
c82e6987e2961451182edacd74faf**** |
| nodepoolId |
string |
No |
ID kelompok node. |
np7c4fa4a5f1ce412b84967089**** |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
Parameter badan permintaan. |
|
| name |
string |
No |
Nama komponen node. |
kubelet |
| version |
string |
No |
Versi komponen node. |
1.28.9-aliyun.1 |
| config |
object |
No |
Konfigurasi komponen node. |
|
| customConfig |
object |
No |
Konfigurasi kustom komponen. |
{"cpuManagerPolicy":"static"} |
|
any |
No |
Konfigurasi komponen. |
cpuCFSQuota |
|
| envs |
array<object> |
No |
Variabel lingkungan komponen node. |
|
|
object |
No |
|||
| name |
string |
No |
Nama variabel lingkungan. |
LOG_LEVEL |
| value |
string |
No |
Nilai variabel lingkungan. |
info |
| disableRolling |
boolean |
No |
Apakah akan menonaktifkan rotasi log. Nilai default: false. Memperbarui konfigurasi garis dasar memicu rotasi log pada node. |
|
| nodeNames |
array |
No |
Daftar node yang ditentukan untuk rolling update. Nilai default: semua node. |
|
|
string |
No |
Nama node. |
cn-hangzhou.10.91.xx.xx |
|
| rollingPolicy |
object |
No |
Konfigurasi kebijakan rolling. |
|
| maxParallelism |
integer |
No |
Jumlah maksimum operasi paralel per batch. Nilai default: 1. |
1 |
| pausePolicy |
string |
No |
Kebijakan jeda otomatis selama peningkatan node. |
NotPause |
| batchInterval |
integer |
No |
Interval peningkatan antarbatch. Unit: detik. |
0 |
| maxFailedNodes |
integer |
No |
Jumlah maksimum node yang dapat gagal selama rolling upgrade. Nilai default: 0, yang berarti tugas gagal jika ada node yang gagal. Jika nilai lebih besar dari 0, tugas gagal dan berhenti ketika jumlah kumulatif node yang gagal melebihi nilai ini. |
0 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema respons. |
||
| requestId |
string |
ID permintaan. |
49511F2D-D56A-5C24-B9AE-C8491E09B*** |
| taskId |
string |
ID tugas asinkron. |
T-67d7ec016ce37c0106000*** |
| clusterId |
string |
ID kluster. |
c82e6987e2961451182edacd74faf**** |
Contoh
Respons sukses
JSONformat
{
"requestId": "49511F2D-D56A-5C24-B9AE-C8491E09B***",
"taskId": "T-67d7ec016ce37c0106000***",
"clusterId": "c82e6987e2961451182edacd74faf****"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.