すべてのプロダクト
Search
ドキュメントセンター

Container Service for Kubernetes:CreateClusterNodePool

最終更新日:Jun 25, 2026

ノードプールは、同じ属性を持つノードの論理的なコレクションであり、ノードのアップグレードや auto scaling などのノードの統合管理と運用保守を可能にします。ノードプールの自動化された運用保守機能をさらに活用して、OS の CVE 脆弱性の自動パッチ適用、障害ノードの自動復旧、kubelet および containerd バージョンの自動アップグレードなどの特徴を使用し、運用保守コストを削減できます。CreateClusterNodePool を呼び出して、クラスターのノードプールを作成できます。

今すぐお試しください

この API を OpenAPI Explorer でお試しください。手作業による署名は必要ありません。呼び出しに成功すると、入力したパラメーターに基づき、資格情報が組み込まれた SDK コードが自動的に生成されます。このコードをダウンロードしてローカルで使用できます。

テスト

RAM 認証

下表に、この API を呼び出すために必要な認証情報を示します。認証情報は、RAM (Resource Access Management) ポリシーを使用して定義できます。以下で各列名について説明します。

  • アクション:特定のリソースに対して実行可能な操作。ポリシー構文ではAction要素として指定します。

  • API:アクションを具体的に実行するための API。

  • アクセスレベル:各 API に対して事前定義されているアクセスの種類。有効な値:create、list、get、update、delete。

  • リソースタイプ:アクションが作用するリソースの種類。リソースレベルでの権限をサポートするかどうかを示すことができます。ポリシーの有効性を確保するため、アクションの対象として適切なリソースを指定してください。

    • リソースレベルの権限を持つ API の場合、必要なリソースタイプはアスタリスク (*) でマークされます。ポリシーのResource要素で対応する ARN を指定してください。

    • リソースレベルの権限を持たない API の場合、「すべてのリソース」と表示され、ポリシーのResource要素でアスタリスク (*) でマークされます。

  • 条件キー:サービスによって定義された条件のキー。このキーにより、きめ細やかなアクセス制御が可能になります。この制御は、アクション単体に適用することも、特定のリソースに対するアクションに適用することもできます。Alibaba Cloud は、サービス固有の条件キーに加えて、すべての RAM 統合サービスに適用可能な一連の共通条件キーを提供しています。

  • 依存アクション:ある特定のアクションを実行するために、前提として実行が必要となる他のアクション。依存アクションの権限も RAM ユーザーまたは RAM ロールに付与する必要があります。

アクション

アクセスレベル

リソースタイプ

条件キー

依存アクション

cs:CreateClusterNodePool

create

*Cluster

acs:cs:{#regionId}:{#accountId}:cluster/{#ClusterId}

なし なし

リクエスト構文

POST /clusters/{ClusterId}/nodepools HTTP/1.1

パスパラメータ

パラメーター

必須 / 任意

説明

ClusterId

string

必須

クラスター ID。

c61da77e8bfbc4c4c999af2b51b65****

リクエストパラメーター

パラメーター

必須 / 任意

説明

body

object

任意

リクエスト本文パラメーター。

nodepool_info

object

任意

ノードプールの構成。

name

string

必須

ノードプール名。

nodepool-test

type

string

任意

ノードプールタイプ。有効な値:

  • ess: 標準ノードプール(マネージドおよび auto scaling 特徴を含む)。

  • edge: エッジノードプール。

  • lingjun: Lingjun ノードプール。

  • hybrid: ハイブリッドクラウドノードプール。

列挙値:

  • lingjun :

    Lingjun ノードプール。

  • edge :

    エッジノードプール。

  • ess :

    標準ノードプール。

ess

resource_group_id

string

任意

ノードプールのリソースグループ ID。ノードプールによって作成されたインスタンスはこのリソースグループに属します。

リソースは 1 つのリソースグループにのみ属することができます。さまざまなビジネスシナリオに基づいて、リソースグループをプロジェクト、アプリケーション、組織などの概念にマッピングできます。

rg-acfmyvw3wjmb****

auto_scaling

object

任意

auto scaling の構成。

enable

boolean

任意

auto scaling を有効にするかどうかを指定します。有効な値:

  • true: ノードプールの auto scaling を有効にします。クラスター容量が Pod のスケジューリング要件を満たせない場合、ACK は構成された最小値および最大値のインスタンス数に基づいてノードリソースを自動的にスケーリングします。バージョン 1.24 以降のクラスターではデフォルトでインスタントノードスケーリングが有効になります。バージョン 1.24 より前のクラスターではデフォルトでノード auto scaling が有効になります。詳細については、ノードスケーリングを参照してください。

  • false: auto scaling を無効にします。ACK は構成された希望ノード数に基づいてノードプール内のノード数を調整し、常にノード数を希望数に維持します。

このパラメーターが false に設定されている場合、auto_scaling 内の他の構成パラメーターは効果がありません。

デフォルト値: false

false

type

string

任意

auto scaling のスケーリングインスタンスタイプ。enable=true の場合にのみ効果があります。有効な値:

  • cpu: スタンダードインスタンスタイプ。

  • gpu: GPU インスタンスタイプ。

  • gpushare: GPU 共有タイプ。

  • spot: プリエンプティブルインスタンスタイプ。

デフォルト値: cpu

重要 このフィールドはノードプール作成後に変更できません。

列挙値:

  • spot :

    プリエンプティブルインスタンスタイプ。

  • cpu :

    標準インスタンスタイプ

  • gpushare :

    GPU 共有タイプ。

  • gpu :

    GPU インスタンスタイプ。

cpu

max_instances

integer

任意

ノードプールでスケーリングできるインスタンスの最大数(既存のインスタンスを除く)。enable=true の場合にのみ効果があります。

有効値: [min_instances, 2000]。デフォルト値: 0。

10

min_instances

integer

任意

ノードプールでスケーリングできるインスタンスの最小値(既存のインスタンスを除く)。enable=true の場合にのみ効果があります。

有効値: [0, max_instances]。デフォルト値: 0。

説明
  • 最小値のインスタンス数が 0 でない場合、スケーリンググループが効果を発揮した後、対応する数の ECS インスタンスが自動的に作成されます。

  • 最大値のインスタンス数がノードプール内の現在のノード数より小さくないことを推奨します。そうでない場合、auto scaling が効果を発揮した後、ノードプール内のノードが直接スケールインされます。

1

is_bond_eip deprecated

boolean

任意

[非推奨] このフィールドは非推奨です。代わりに internet_charge_type と internet_max_bandwidth_out を使用してください。

EIP をバインドするかどうかを指定します。有効な値:

  • true: EIP をバインドします。

  • false: EIP をバインドしません。

デフォルト値: false

null

eip_internet_charge_type deprecated

string

任意

[非推奨] 代わりに internet_charge_type と internet_max_bandwidth_out を使用してください。

EIP の課金方法。有効な値:

  • PayByBandwidth: 帯域幅課金。

  • PayByTraffic: トラフィック課金。

デフォルト値: PayByBandwidth

null

eip_bandwidth deprecated

integer

任意

[非推奨] 代わりに internet_charge_type と internet_max_bandwidth_out を使用してください。

EIP の最大帯域幅。単位: Mbps。

null

management

object

任意

ノードプールのマネージド特徴の構成。

enable

boolean

任意

ノードプールのマネージド特徴を有効にするかどうかを指定します。有効な値:

  • true: マネージド特徴を有効にします。

  • false: マネージド特徴を無効にします。その他の関連構成は enable=true の場合にのみ効果があります。

デフォルト値: false。

false

auto_repair

boolean

任意

ノードを自動的に修復するかどうかを指定します。enable=true の場合にのみ効果があります。

  • true: 自動修復

  • false: 自動修復なし

デフォルト値: true

true

auto_repair_policy

object

任意

ノードの自動修復ポリシー。

restart_node

boolean

任意

ノードの再起動を許可するかどうかを指定します。このパラメーターは auto_repair=true の場合にのみ効果があります。有効な値:

  • true: ノードの再起動を許可します。

  • false: ノードの再起動を許可しません。

デフォルト値: true

true

approval_required

boolean

任意

ノード修復に手動承認が必須かどうかを指定します。

auto_vul_fix

boolean

任意

CVE 脆弱性を自動的に修正するかどうかを指定します。enable=true の場合にのみ効果があります。

  • true: CVE の自動修正を許可します。

  • false: CVE の自動修正を許可しません。

デフォルト値: true

true

auto_vul_fix_policy

object

任意

CVE 自動修正ポリシー。

restart_node

boolean

任意

ノードの再起動を許可するかどうかを指定します。このパラメーターは auto_vul_fix=true の場合にのみ効果があります。有効な値:

  • true: ノードの再起動を許可します。

  • false: ノードの再起動を許可しません。

デフォルト値: true

false

vul_level

string

任意

自動修正が許可される脆弱性レベル (カンマ区切り)。例: asap,later。サポートされる脆弱性レベル:

  • asap: 高

  • later: 中間

  • nntf: 低

デフォルト値: asap

asap,nntf

exclude_packages

string

任意

脆弱性修正時に除外するパッケージ。

デフォルト値: kernel

kernel

auto_upgrade

boolean

任意

ノードを自動的にアップグレードするかどうかを指定します。enable=true の場合にのみ効果があります。

  • true: 自動アップグレードを有効にします。

  • false: 自動アップグレードを無効にします。

デフォルト値: true

true

auto_upgrade_policy

object

任意

ノードの自動アップグレードポリシー。

auto_upgrade_kubelet

boolean

任意

kubelet の自動スペックアップを許可するかどうかを指定します。このパラメーターは auto_upgrade=true の場合にのみ効果があります。有効な値:

  • true: kubelet の自動スペックアップを許可します。

  • false: kubelet の自動スペックアップを許可しません。

デフォルト値: true

true

auto_upgrade_runtime

boolean

任意

ランタイムの自動スペックアップを許可するかどうかを指定します。このパラメーターは auto_upgrade=true の場合にのみ効果があります。有効な値:

  • true: ランタイムの自動スペックアップを許可します。

  • false: ランタイムの自動スペックアップを許可しません。

デフォルト値: true

false

auto_upgrade_os

boolean

任意

オペレーティングシステムの自動スペックアップを許可するかどうかを指定します。このパラメーターは auto_upgrade=true の場合にのみ効果があります。有効な値:

  • true: オペレーティングシステムの自動スペックアップを許可します。

  • false: オペレーティングシステムの自動スペックアップを許可しません。

デフォルト値: false

false

upgrade_config deprecated

object

任意

[非推奨] 代わりに親レベルの auto_upgrade パラメーターを使用してください。

自動アップグレードの構成。enable=true の場合にのみ効果があります。

auto_upgrade deprecated

boolean

任意

[非推奨] 代わりに上位レベルの auto_upgrade パラメーターを使用してください。

自動スペックアップを有効にするかどうかを指定します。有効な値:

  • true: 自動スペックアップを有効にします。

  • false: 自動スペックアップを無効にします。

null

surge

integer

任意

追加ノードの数。このパラメーターまたは surge_percentage のいずれかを指定できます。

スペックアップ中にノードが使用不可になります。追加ノードを作成して、クラスターのワークロードを補うことができます。

説明

追加ノードの数は、現在のノード数を超えないようにしてください。

0

surge_percentage

integer

任意

追加ノードの割合。このパラメーターまたは surge のいずれかを指定できます。

追加ノード数 = 追加ノード割合 × ノード数。例えば、追加ノード割合が 50% で既存ノードが 6 つの場合、追加ノード数 = 50% × 6 = 3。

0

max_unavailable

integer

任意

使用不可ノードの最大値。 有効値: [1,1000]。

デフォルト値: 1。

1

auto_fault_diagnosis

boolean

任意

scaling_group

object

任意

ノードプールのスケーリンググループ構成。

vswitch_ids

array

必須

vSwitch ID のリスト。有効値: [1,8]。

説明

高可用性を確保するため、異なるゾーンの vSwitch を選択することを推奨します。

string

任意

vSwitch ID。

vsw-wz9mfnhmssud6eicu****

instance_types

array

必須

ノードプールのノードインスタンスタイプのリスト。ノードプールがスケールアウトする際、指定されたリストから要件を満たすインスタンスタイプが選択されてインスタンスが作成されます。

サポートされるインスタンスタイプ数: [1,10]

説明

高可用性を確保するため、複数のインスタンスタイプを選択することを推奨します。

string

任意

インスタンスタイプ。詳細については、インスタンスファミリーを参照してください。

ecs.d1ne.2xlarge

instance_charge_type

string

必須

ノードプール内のノードの課金方法。有効な値:

  • PrePaid: サブスクリプションインスタンス。

  • PostPaid: 従量課金インスタンス。

デフォルト値: PostPaid

列挙値:

  • PostPaid :

    従量課金インスタンス。

  • PrePaid :

    サブスクリプションインスタンス

PostPaid

period

integer

任意

ノードプール内のノードのサブスクリプション期間。instance_charge_typePrePaid に設定されている場合にのみ効果があり、必須です。

  • period_unit=Week の場合、period の有効な値: {1, 2, 3, 4}。

  • period_unit=Month の場合、period の有効な値: {1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 48, 60}。

1

period_unit

string

任意

ノードプール内のノードの課金期間単位。instance_charge_typePrePaid に設定されている場合にのみ効果があり、必須です。

  • Month: 月単位で課金。

  • Week: 週単位で課金。

デフォルト値: Month

Month

auto_renew

boolean

任意

ノードプール内のノードの自動更新を有効にするかどうかを指定します。instance_charge_typePrePaid に設定されている場合にのみ効果があります。有効な値:

  • true: 自動更新を有効にします。

  • false: 自動更新を無効にします。

デフォルト値: false

true

auto_renew_period

integer

任意

各自動更新の持続時間。有効な値:

  • PeriodUnit=Week の場合: 1, 2, 3。

  • PeriodUnit=Month の場合: 1, 2, 3, 6, 12, 24, 36, 48, 60。

デフォルト値: 1。

1

spot_strategy

string

任意

プリエンプティブルインスタンスタイプ。有効な値:

  • NoSpot: 非プリエンプティブルインスタンス。

  • SpotWithPriceLimit: プリエンプティブルインスタンスの最大価格を設定します。

  • SpotAsPriceGo: システムが現在の市場価格で自動的に入札します。

詳細については、プリエンプティブルインスタンスを参照してください。

NoSpot

spot_price_limit

array<object>

任意

単一のプリエンプティブルインスタンスタイプの市場価格範囲の構成。

object

任意

プリエンプティブルインスタンスの市場価格範囲の構成。インスタンスタイプごとに異なる価格範囲を設定できます。

instance_type

string

任意

スポットインスタンスタイプ。

ecs.c6.large

price_limit

string

任意

インスタンスあたりの最大値価格。

単位: USD/時間。

0.39

image_type

string

任意

OS イメージタイプ。有効な値:

  • AliyunLinux: Alinux2 イメージ。

  • AliyunLinuxSecurity: Alinux2 イメージ UEFI バージョン。

  • AliyunLinux3: Alinux3 イメージ。

  • AliyunLinux3Arm64: Alinux3 イメージ ARM バージョン。

  • AliyunLinux3Security: Alinux3 イメージ UEFI バージョン。

  • CentOS: CentOS イメージ。

  • Windows: Windows イメージ。

  • WindowsCore: WindowsCore イメージ。

  • ContainerOS: コンテナ最適化イメージ。

  • AliyunLinux3ContainerOptimized: Alinux3 コンテナ最適化イメージ。

AliyunLinux3

image_id

string

任意

カスタムイメージ ID。デフォルトではシステム提供のイメージが使用されます。

aliyun_2_1903_x64_20G_alibase_20200529.vhd

system_disk_category

string

任意

ノードのシステムディスクタイプ。有効な値:

  • cloud_efficiency: Ultra ディスク。

  • cloud_ssd: 標準 SSD。

  • cloud_essd: ESSD。

  • cloud_auto: ESSD AutoPL ディスク。

  • cloud_essd_entry: ESSD Entry ディスク。

デフォルト値: cloud_efficiency

cloud_efficiency

system_disk_categories

array

任意

システムディスクの複数のディスクタイプ。優先度の高いディスクタイプが使用できない場合、次の優先度のディスクタイプが自動的に使用されてシステムディスクが作成されます。

string

任意

ノードの複数のシステムディスクタイプ。

有効な値:

  • cloud: 基本ディスク。

  • cloud_efficiency: Ultra ディスク。

  • cloud_ssd: 標準 SSD。

  • cloud_essd: ESSD。

  • cloud_auto: ESSD AutoPL ディスク。

  • cloud_essd_entry: ESSD Entry ディスク。

cloud_essd

system_disk_size

integer

任意

ノードのシステムディスクサイズ。単位: GiB。

有効値: [20,2048]。

120

system_disk_performance_level

string

任意

ノードのシステムディスクのパフォーマンスレベル。ESSD ディスクにのみ適用されます。パフォーマンスレベルはディスクサイズに関連します。詳細については、 ESSD を参照してください。

  • PL0: 比較的安定した読み取り/書き込みレイテンシを持つ中程度のピーク同時 I/O パフォーマンス。

  • PL1: 比較的安定した読み取り/書き込みレイテンシを持つ中程度のピーク同時 I/O パフォーマンス。

  • PL2: 安定した読み取り/書き込みレイテンシを持つ高いピーク同時 I/O パフォーマンス。

  • PL3: 極めて安定した読み取り/書き込みレイテンシを持つ超高ピーク同時 I/O パフォーマンス。

PL1

system_disk_encrypted

boolean

任意

システムディスクを暗号化するかどうかを指定します。有効な値:

  • true: 暗号化する。

  • false: 暗号化しない。

false

system_disk_kms_key_id

string

任意

システムディスクで使用される KMS キー ID。

0e478b7a-4262-4802-b8cb-00d3fb40****

system_disk_encrypt_algorithm

string

任意

システムディスクで使用される暗号化アルゴリズム。有効な値: aes-256。

aes-256

system_disk_bursting_enabled

boolean

任意

ノードのシステムディスクのバースト(パフォーマンスバースト)を有効にするかどうかを指定します。有効な値:

  • true: 有効にする。

  • false: 無効にする。

このパラメーターは system_disk_categorycloud_auto に設定されている場合にのみサポートされます。詳細については、ESSD AutoPL ディスクを参照してください。

true

system_disk_provisioned_iops

integer

任意

ノードのシステムディスクの事前構成された読み取り/書き込み IOPS。

有効値: 0 ~ min{50,000, 1000*容量 - ベースラインパフォーマンス}。ベースラインパフォーマンス = min{1,800+50*容量, 50000}。

このパラメーターは system_disk_categorycloud_auto に設定されている場合にのみサポートされます。詳細については、ESSD AutoPL ディスクを参照してください。

1000

data_disks

array

任意

ノードプール内のノードのデータディスク構成。

data_disk

任意

データディスクの構成。

disk_init

array

任意

ブロックデバイスの初期化構成。

DiskInit

任意

DiskInit の構成。

security_group_ids

array

任意

セキュリティグループ ID のリスト。security_group_id と相互排他です。security_group_ids の使用を推奨します。security_group_idsecurity_group_ids の両方が指定された場合、security_group_ids が優先されます。

string

任意

セキュリティグループ ID のリスト。security_group_id と相互排他です。security_group_ids の使用を推奨します。security_group_idsecurity_group_ids の両方が指定された場合、security_group_ids が優先されます。

sg-wz9a8g2mt6x5ll******

key_pair

string

任意

パスワードレスログイン用のキーペア名。login_password と相互排他です。

説明

ノードプールが ContainerOS オペレーティングシステムを使用する場合、key_pair のみがサポートされます。

np-key-name

login_password

string

任意

SSH ログインパスワード。key_pair と相互排他です。パスワードは 8 ~ 30 文字で、大文字、小文字、数字、特殊文字のうち少なくとも 3 種類を含む必要があります。

****

login_as_non_root

boolean

任意

作成された ECS インスタンスが非ルートユーザーでログインするかどうかを指定します。

  • true: 非ルートユーザー(ecs-user)としてログオンします。

  • false: ルートユーザーとしてログオンします。

true

cis_enabled deprecated

boolean

任意

[非推奨] 代わりに security_hardening_os パラメーターを使用してください。

null

soc_enabled

boolean

任意

等級保護セキュリティ強化を有効にするかどうかを指定します。等級保護強化は、システムイメージが Alibaba Cloud Linux 2 または Alibaba Cloud Linux 3 に設定されている場合にのみノードで有効にできます。Alibaba Cloud は、Alibaba Cloud Linux 2 および Alibaba Cloud Linux 3 イメージに対して等級保護 2.0 レベル III のベースラインチェック標準とスキャンプログラムを提供しています。

false

security_hardening_os

boolean

任意

Alibaba Cloud OS セキュリティ強化。有効な値:

  • true: Alibaba Cloud OS セキュリティ強化を有効にします。

  • false: Alibaba Cloud OS セキュリティ強化を無効にします。

デフォルト値: false

false

internet_charge_type

string

任意

パブリック IP の課金方法。有効な値:

  • PayByBandwidth: 帯域幅課金。

  • PayByTraffic: トラフィック課金。

PayByTraffic

internet_max_bandwidth_out

integer

任意

ノードの最大アウトバウンドパブリック帯域幅。単位: Mbps(メガビット/秒)。有効値: [1,100]。

5

tags

array<object>

任意

ECS インスタンスにのみ追加されるタグ。

タグキーは重複できず、最大 128 文字です。タグキーとタグ値は "aliyun" または "acs:" で始めることはできず、"https://" または "http://" を含めることはできません。

object

任意

ノードラベル。

key

string

任意

The tag key.

node-k-1

value

string

任意

The tag value.

node-v-1

desired_size

integer

任意

Desired number of nodes in the node pool.

The total number of nodes that the node pool should maintain. We recommend configuring at least 2 nodes to ensure proper running of cluster components. You can scale in or out the node pool by adjusting the desired node count.

If no nodes need to be created, set this to 0 and manually adjust the node count later.

0

multi_az_policy

string

任意

Multi-zone scaling group ECS instance scaling policy. Valid values:

  • PRIORITY: scales based on the vSwitches (VSwitchIds.N) you defined. When ECS instances cannot be created in the zone of a higher-priority vSwitch, the next-priority vSwitch is automatically used.

  • COST_OPTIMIZED: attempts to create instances from lowest to highest vCPU unit price. When multiple instance types with preemptible billing are configured, preemptible instances are created first. You can use the CompensateWithOnDemand parameter to specify whether to automatically attempt creating pay-as-you-go instances when preemptible instances cannot be created due to insufficient inventory.

    説明

    COST_OPTIMIZED takes effect only when multiple instance types or preemptible instances are configured.

  • BALANCE: evenly distributes ECS instances across the multiple zones specified in the scaling group. If zones become unbalanced due to insufficient inventory, you can use the API RebalanceInstances to rebalance resources.

Default value: PRIORITY.

COST_OPTIMIZED

scaling_policy

string

任意

Scaling group mode. Valid values:

  • release: standard mode. Scales by creating and releasing ECS instances based on resource usage.

  • recycle: rapid mode. Scales by creating, stopping, and starting ECS instances, improving the speed of subsequent scaling (compute resources are not charged when stopped, only storage fees are charged, except for local disk instance types).

Default value: release.

release

on_demand_base_capacity

integer

任意

Minimum number of pay-as-you-go instances required by the scaling group. Valid values: [0,1000]. When the number of pay-as-you-go instances is less than this value, pay-as-you-go instances are created first.

0

on_demand_percentage_above_base_capacity

integer

任意

Percentage of pay-as-you-go instances among the excess instances after the scaling group meets the minimum pay-as-you-go instance requirement (on_demand_base_capacity). Valid values: [0,100].

20

spot_instance_pools

integer

任意

Number of available instance types. The scaling group creates preemptible instances in a balanced manner among the lowest-cost instance types. Valid values: [1,10].

5

spot_instance_remedy

boolean

任意

Whether to enable supplementing preemptible instances. When enabled, the scaling group attempts to create new instances to replace preemptible instances that are about to be reclaimed. Valid values:

  • true: enable supplementing preemptible instances.

  • false: disable supplementing preemptible instances.

false

compensate_with_on_demand

boolean

任意

When multi_az_policy is set to COST_OPTIMIZED, whether to allow automatic creation of pay-as-you-go instances to meet the required number of ECS instances when preemptible instances cannot be created due to price or inventory constraints. Valid values:

  • true: allow automatic creation of pay-as-you-go instances.

  • false: do not allow automatic creation of pay-as-you-go instances.

true

deploymentset_id

string

任意

Deployment set ID. You can use a deployment set to distribute ECS instances created by the node pool across different physical servers to ensure high availability and disaster recovery capabilities. When creating ECS instances in a deployment set, instances are distributed across the specified region based on the pre-configured deployment policy.

重要 After a deployment set is selected, the maximum number of nodes in the node pool is limited. The default upper limit for nodes in a deployment set is 20 × number of zones (the number of zones is determined by vSwitches). Choose carefully and ensure sufficient quota in the deployment set to avoid node creation failures.

ds-bp1d19mmbsv3jf6xxxxx

rds_instances

array

任意

RDS instance list.

string

任意

RDS instance ID.

rds-****

private_pool_options

object

任意

Private pool configuration.

id

string

任意

The private pool ID. When match_criteria is set to Target, you must specify the private pool ID.

eap-bp67acfmxazb4****

match_criteria

string

任意

The type of the private pool. This parameter specifies the private pool capacity option for instance launch. After an elasticity assurance or capacity reservation takes effect, a private pool is generated for instances to use during launch. Valid values:

  • Open: open mode. Automatically matches open-type private pool capacity. If no matching private pool capacity is available, public pool resources are used to launch instances.

  • Target: targeted mode. Uses the specified private pool capacity to launch instances. If the specified private pool capacity is unavailable, the instance fails to launch.

  • None: none mode. Private pool capacity is not used for instance launch.

Target

security_group_id deprecated

string

任意

Security group ID for the node pool. Mutually exclusive with security_group_ids. We recommend using security_group_ids.

sg-wz9a8g2mt6x5llu0****

platform deprecated

string

任意

[Deprecated] Use the image_type parameter instead.

OS distribution. Valid values:

  • CentOS

  • AliyunLinux

  • Windows

  • WindowsCore

Default value: AliyunLinux.

null

instance_patterns

array

任意

Instance attribute configuration.

instance_patterns

任意

Instance attributes.

ram_role_name

string

任意

Worker RAM role name.

  • When left empty, the default Worker RAM role created by the cluster is used.

  • When specified, the RAM role must be a normal service role, and its trusted service must be set to Elastic Compute Service. For more information, see Create a normal service role. When the specified RAM role is not the default Worker RAM role created by the cluster, the role name cannot start with KubernetesMasterRole- or KubernetesWorkerRole-.

重要 This parameter is supported only for ACK managed clusters of version 1.22 or later.

example-role

instance_metadata_options InstanceMetadataOptions

任意

ECS instance metadata access configuration.

resource_pool_options

object

任意

Resource pool and resource pool policy used when creating instances. Note the following when you set this parameter: This parameter takes effect only when creating pay-as-you-go instances. This parameter cannot be set together with private_pool_options.match_criteria or private_pool_options.id.

strategy

string

任意

The resource pool policy used when creating instances. Resource pools include private pools generated by elasticity assurance or capacity reservation services and public pools, which are available for instance launch. Valid values: PrivatePoolFirst: private pool first. When this policy is selected and resouce_pool_options.private_pool_ids is specified, the specified private pools are used first. If no private pools are specified or the specified private pool capacity is insufficient, open-type private pools are automatically matched. If no matching private pools are available, public pool resources are used to create instances. PrivatePoolOnly: private pool only. When this policy is selected, resouce_pool_options.private_pool_ids must be specified. If the specified private pool capacity is insufficient, the instance fails to launch. None: no resource pool policy is used. Default value: None.

PrivatePoolFirst

private_pool_ids

array

任意

The list of private pool IDs, which are elasticity assurance IDs or capacity reservation IDs. Only Target mode private pool IDs can be specified. Valid values of N: 1 to 20.

string

任意

The private pool ID, which is an elasticity assurance ID or capacity reservation ID. Only Target mode private pool IDs can be specified.

eap-bp67acfmxazb4****

system_disk_snapshot_policy_id

string

任意

System disk snapshot policy.

sp-0jl6xnmme8v7o935****

node_config

object

任意

Node configuration.

kubelet_configuration kubelet_config

任意

Kubelet parameter configuration.

kubernetes_config

object

任意

Cluster-related configuration.

labels

array

任意

Node labels. Add labels to Kubernetes cluster nodes.

tag

任意

Label configuration.

taints

array

任意

Taint configuration.

taint

任意

Taint configuration collection.

runtime

string

任意

Container runtime name. ACK supports the following three container runtimes.

  • containerd: recommended, supported by all cluster versions.

  • Sandboxed-Container.runv: sandboxed container with higher isolation, supported by clusters of version 1.31 or earlier.

  • docker: no longer maintained, supported by clusters of version 1.22 or earlier.

Default value: containerd.

containerd

runtime_version

string

任意

Container runtime version.

1.6.38

cpu_policy

string

任意

Node CPU management policy. The following two policies are supported when the cluster version is 1.12.6 or later:

  • static: allows enhanced CPU affinity and exclusivity for Pods with certain resource characteristics on the node.

  • none: enables the existing default CPU affinity scheme.

Default value: none.

none

user_data

string

任意

Instance custom data. After a node joins the cluster, the specified instance custom data script is run. For more information, see User-Data scripts.

dGhpcyBpcyBhIGV4YW1wbGU=

unschedulable

boolean

任意

Whether scaled-out nodes are unschedulable.

  • true: unschedulable.

  • false: schedulable.

true

cms_enabled

boolean

任意

Whether to install CloudMonitor on ECS nodes. After installation, you can view monitoring information for created ECS instances in the CloudMonitor console. We recommend enabling this. Valid values:

  • true: install CloudMonitor on ECS nodes.

  • false: do not install CloudMonitor on ECS nodes.

Default value: false.

false

node_name_mode

string

任意

Custom node name. After setting a custom node name, the node name, ECS instance name, and ECS instance hostname are all changed accordingly.

説明

For Windows instances with custom node names enabled, the hostname is fixed to the IP address with "-" replacing "." in the IP address, and does not include the prefix or suffix.

A node name consists of three parts: prefix, node IP address, and suffix:

  • Total length: 2 to 64 characters. The node name must start and end with a lowercase letter or digit.

  • The prefix and suffix can contain uppercase and lowercase letters, digits, hyphens (-), and periods (.). They must start with a letter and cannot start or end with a hyphen (-) or period (.). Consecutive hyphens (-) or periods (.) are not allowed.

  • The prefix is required (ECS restriction) and the suffix is optional.

  • The node IP is the complete private IP address of the node.

Example: If the node IP address is 192.XX.YY.55, the prefix is aliyun.com, and the suffix is test:

  • For Linux nodes, the node name, ECS instance name, and ECS instance hostname are all aliyun.com192.XX.YY.55test.

  • For Windows nodes, the ECS instance hostname is 192-XX-YY-55, and the node name and ECS instance name are both aliyun.com192.XX.YY.55test.

aliyun.com192.XX.YY.55test

pre_user_data

string

任意

Instance pre-custom data. Before a node joins the cluster, the specified instance pre-custom data script is run. For more information, see User-Data scripts.

dGhpcyBpcyBhIGV4YW1wbGU

tee_config

object

任意

Confidential computing cluster configuration.

tee_enable

boolean

任意

Whether to enable confidential computing for the cluster.

  • true: enable confidential computing.

  • false: disable confidential computing.

true

interconnect_config deprecated

object

任意

[Deprecated]

Edge node pool configuration.

cen_id

string

任意

[Deprecated]

CEN instance ID (CEN ID) bound to the enhanced edge node pool.

null

ccn_id

string

任意

[Deprecated]

CCN instance ID (CCN ID) bound to the enhanced edge node pool.

null

ccn_region_id

string

任意

[Deprecated]

Region of the CCN instance bound to the enhanced edge node pool.

null

bandwidth

integer

任意

[Deprecated]

Network bandwidth of the enhanced edge node pool. Unit: Mbps.

null

improved_period

string

任意

[Deprecated]

Subscription duration of the enhanced edge node pool. Unit: months.

null

count deprecated

integer

任意

[Deprecated] Use desired_size instead.

Number of nodes in the node pool.

null

max_nodes deprecated

integer

任意

[Deprecated]

Maximum number of nodes allowed in the edge node pool.

null

interconnect_mode

string

任意

Network type of the edge node pool. This parameter takes effect only for node pools of edge type. Valid values:

  • basic: public network. Nodes in the node pool communicate with cloud nodes over the public network. Applications in the node pool cannot directly access the cloud VPC internal network.

  • private: private network. Nodes in the node pool connect cloud and on-premises networks through Express Connect, VPN, or CEN, providing higher cloud-edge communication quality and more effective security.

basic

host_network

boolean

任意

Whether the Pod network mode uses host network mode.

  • true: host network. Pods directly use the host network stack, sharing the IP address and ports with the host.

  • false: container network. Pods have an independent network stack and do not occupy host network ports.

true

intranet

boolean

任意

Whether nodes in the edge node pool have Layer 3 network connectivity.

  • true: connected. All nodes in this node pool have Layer 3 network connectivity.

  • false: not connected. All hosts in this node pool do not have Layer 3 network connectivity.

true

eflo_node_group

object

任意

Lingjun node pool configuration.

cluster_id

string

任意

Lingjun cluster ID to associate when creating a Lingjun node pool.

i1169130516633730****

group_id

string

任意

Lingjun group ID of the Lingjun cluster to associate when creating a Lingjun node pool.

ng-ec3c96ff0aa****

auto_mode

object

任意

Node pool intelligent managed configuration.

enable

boolean

任意

Whether to enable intelligent managed mode. Valid values:

  • true: enable intelligent managed mode. Can only be enabled when the cluster has intelligent managed mode enabled.

  • false: disable intelligent managed mode.

true

node_components

array<object>

任意

Node component list.

array<object>

任意

Node component.

name

string

任意

Node component name.

kubelet

version

string

任意

Node component version.

1.33.3-aliyun.1

config

object

任意

Node component configuration.

custom_config

object

任意

The custom configuration of the node component.

{"cpuManagerPolicy":"static"}

any

任意

The custom configuration string of the node component.

cpuManagerPolicy

レスポンスフィールド

フィールド

説明

object

Node pool configuration.

nodepool_id

string

Node pool ID.

np31da1b38983f4511b490fc62108a****

task_id

string

Task ID.

T-613b19bbd160ad492800****

request_id

string

Request ID.

0527ac9a-c899-4341-a21a-****

成功レスポンス

JSONJSON

{
  "nodepool_id": "np31da1b38983f4511b490fc62108a****",
  "task_id": "T-613b19bbd160ad492800****",
  "request_id": "0527ac9a-c899-4341-a21a-****"
}

エラーコード

完全なリストについては、「エラーコード」をご参照ください。

変更履歴

完全なリストについては、「変更履歴」をご参照ください。