すべてのプロダクト
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

エラーを避けるため、enable が 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

エラーを避けるため、enable が 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

エラーを避けるため、enable が 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 :

    サブスクリプションインスタンス。スクリプトで指定する場合は 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

任意

オペレーティングシステムイメージタイプ。有効な値:

  • 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。デフォルトではシステム提供のイメージが使用されます。エラーを避けるため、有効なイメージ 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

任意

Whether the provisioned ECS instances use non-root user login.

  • true: log in as a non-root user (ecs-user).

  • false: log in as root.

true

cis_enabled deprecated

boolean

任意

[Deprecated] Use the security_hardening_os parameter instead.

null

soc_enabled

boolean

任意

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

false

security_hardening_os

boolean

任意

Alibaba Cloud OS security hardening. Valid values:

  • true: enable Alibaba Cloud OS security hardening.

  • false: disable Alibaba Cloud OS security hardening.

Default value: false.

false

internet_charge_type

string

任意

パブリック IP の課金タイプ。有効な値:

  • PayByBandwidth: 固定帯域幅による課金。

  • PayByTraffic: トラフィック使用量による課金。

PayByTraffic

internet_max_bandwidth_out

integer

任意

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

5

tags

array<object>

任意

Add tags only to ECS instances.

Tag keys cannot be duplicated and have a maximum length of 128 characters. Tag keys and tag values cannot start with "aliyun" or "acs:", or contain "https://" or "http://".

object

任意

ノードラベル。

key

string

任意

タグキー。

node-k-1

value

string

任意

タグ値。

node-v-1

desired_size

integer

任意

ノードプールの期待ノード数。

ノードプールが維持すべきノードの合計数。クラスターコンポーネントが正常に動作するように、少なくとも 2。

0

multi_az_policy

string

任意

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

  • PRIORITY: scales based on the VSwitches (VSwitchIds.N) you define. 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 in order of vCPU unit price from lowest to highest. When the scaling configuration has multiple instance types with preemptible billing, preemptible instances are preferentially created. You can use the CompensateWithOnDemand parameter to specify whether to automatically try creating pay-as-you-go instances when preemptible instances cannot be created due to inventory or other reasons.

    説明

    COST_OPTIMIZED only takes effect when the scaling configuration has multiple instance types or uses preemptible instances.

  • BALANCE: evenly distributes ECS instances across multiple zones specified by the scaling group. If zones become unbalanced due to insufficient inventory or other reasons, you can use the RebalanceInstances API 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 during stop, only storage fees apply, 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 preferentially created.

0

on_demand_percentage_above_base_capacity

integer

任意

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

20

spot_instance_pools

integer

任意

Number of available instance types specified. The scaling group will evenly create preemptible instances using the lowest-cost instance types. Valid values: [1,10].

5

spot_instance_remedy

boolean

任意

Whether to enable preemptible instance supplementation. When enabled, the scaling group will attempt to create new instances to replace preemptible instances that are about to be reclaimed when the reclamation notification is received. Valid values:

  • true: enable preemptible instance supplementation.

  • false: disable preemptible instance supplementation.

false

compensate_with_on_demand

boolean

任意

When multi_az_policy is set to COST_OPTIMIZED, whether to allow automatically creating pay-as-you-go instances to meet the ECS instance count requirement when sufficient preemptible instances cannot be created due to price, inventory, or other reasons. Valid values:

  • true: allow automatically creating pay-as-you-go instances to meet the ECS instance count requirement.

  • false: do not allow automatically creating pay-as-you-go instances to meet the ECS instance count requirement.

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 business high availability and underlying disaster recovery capabilities. When creating ECS instances within a deployment set, the instances are distributed across the specified region based on the pre-configured deployment strategy.

重要 After selecting a deployment set, the maximum number of nodes in the node pool will be limited. The default node limit supported by a deployment set is 20 * number of zones (the number of zones is determined by the VSwitches). Choose carefully to ensure sufficient quota within the deployment set to avoid node provisioning failures.

ds-bp1d19mmbsv3jf6xxxxx

rds_instances

array

任意

List of RDS instances.

string

任意

RDS instance ID.

rds-****

private_pool_options

object

任意

Private pool configuration.

id

string

任意

プライベートプール ID。match_criteriaTarget に設定されている場合、プライベートプール ID を指定する必要があります。

eap-bp67acfmxazb4****

match_criteria

string

任意

プライベートプールタイプ。インスタンスの起動に使用するプライベートプールのキャパシティオプションを指定します。エラスティシティアシュアランスまたはキャパシティリザベーションが有効になると、インスタンスの起動用にプライベートプールが生成されます。有効な値:

  • Open: オープンモード。オープンタイプのプライベートプールキャパシティを自動的にマッチングします。一致するプライベートプールキャパシティが利用できない場合、パブリックプールのリソースを使用してインスタンスを起動します。

  • Target: ターゲットモード。指定されたプライベートプールキャパシティを使用してインスタンスを起動します。指定されたプライベートプールキャパシティが利用できない場合、インスタンスの起動に失敗します。

  • None: なしモード。プライベートプールキャパシティはインスタンスの起動に使用されません。

Target

security_group_id deprecated

string

任意

Node pool security group ID. Use either this or security_group_ids. We recommend using security_group_ids.

sg-wz9a8g2mt6x5llu0****

platform deprecated

string

任意

[Deprecated] Use the image_type parameter instead.

Operating system 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 empty, the default Worker RAM role created by the cluster is used.

  • When not empty, the specified RAM role must be a normal service role, and its trusted service must be configured as 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 only supported for ACK managed clusters of version 1.22 and later.

example-role

instance_metadata_options InstanceMetadataOptions

任意

ECS instance metadata access configuration.

resource_pool_options

object

任意

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

strategy

string

任意

インスタンスの作成時に使用するリソースプールポリシー。リソースプールには、エラスティシティアシュアランスまたはキャパシティリザベーションサービスによって生成されるプライベートプールとパブリックプールが含まれます。有効な値: PrivatePoolFirst: プライベートプール優先。このポリシーが選択され、resouce_pool_options.private_pool_ids が指定されている場合、指定されたプライベートプールが最初に使用されます。プライベートプールが指定されていないか、指定されたプライベートプールのキャパシティが不足している場合、オープンタイプのプライベートプールが自動的にマッチングされます。一致するプライベートプールがない場合、パブリックプールのリソースを使用してインスタンスが作成されます。 PrivatePoolOnly: プライベートプールのみ。このポリシーが選択されている場合、resouce_pool_options.private_pool_ids を指定する必要があります。指定されたプライベートプールのキャパシティが不足している場合、インスタンスの起動に失敗します。 None: リソースプールポリシーは使用されません。 デフォルト値: None。

PrivatePoolFirst

private_pool_ids

array

任意

プライベートプール ID のリスト。エラスティシティアシュアランス ID またはキャパシティリザベーション ID です。Target モードのプライベートプール ID のみを指定できます。N の有効な値: 1 から 20。

string

任意

プライベートプール ID。エラスティシティアシュアランス ID またはキャパシティリザベーション ID です。Target モードのプライベートプール ID のみを指定できます。

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

任意

Collection of taint configurations.

runtime

string

任意

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

  • containerd: recommended, supports all cluster versions.

  • Sandboxed-Container.runv: secure sandbox container, provides higher isolation, supports clusters of version 1.31 and earlier.

  • docker: discontinued maintenance, supports clusters of version 1.22 and 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 for cluster versions 1.12.6 and 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 the node joins the cluster, the specified instance custom data script will be executed. For more information, see User-Data scripts.

dGhpcyBpcyBhIGV4YW1wbGU=

unschedulable

boolean

任意

Whether nodes after scale-out are unschedulable.

  • true: unschedulable.

  • false: schedulable.

true

cms_enabled

boolean

任意

Whether to install CloudMonitor on ECS nodes. After installation, you can view monitoring information of the 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 customizing the node name, the node name, ECS instance name, and ECS instance hostname will all be changed.

説明

For Windows instances with custom node names enabled, the hostname is fixed to the IP address with - replacing . in the IP address, without prefix or suffix.

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

  • Total length is 2-64 characters. The node name must start and end with lowercase letters or digits.

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

  • Prefix is required (ECS restriction), suffix is optional.

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

For 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 the node joins the cluster, the specified instance pre-custom data script will be executed. For more information, see User-Data scripts.

dGhpcyBpcyBhIGV4YW1wbGU

tee_config

object

任意

Trusted execution environment (TEE) cluster configuration.

tee_enable

boolean

任意

Whether to enable TEE cluster.

  • true: enable TEE.

  • false: disable TEE.

true

interconnect_config deprecated

object

任意

[Deprecated]

Edge node pool configuration.

cen_id

string

任意

[Deprecated]

Cloud Enterprise Network (CEN) instance ID bound to the enhanced edge node pool (CENID).

null

ccn_id

string

任意

[Deprecated]

Cloud Connect Network (CCN) instance ID bound to the enhanced edge node pool (CCNID).

null

ccn_region_id

string

任意

[Deprecated]

Region of the Cloud Connect Network (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]

Purchase 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 only takes effect for edge-type node pools. Valid values:

  • basic: public network. Nodes in the node pool interact with cloud nodes through the public network, and 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 leased lines, 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 their own independent network stack and do not occupy host network ports.

true

intranet

boolean

任意

Whether nodes in the edge node pool are interconnected at Layer 3.

  • true: interconnected. All nodes in this node pool are interconnected at Layer 3.

  • false: not interconnected. All hosts in this node pool are not interconnected at Layer 3.

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>

任意

List of node components.

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

任意

ノードコンポーネントのカスタム設定。

{"cpuManagerPolicy":"static"}

string

任意

ノードコンポーネントのカスタム設定文字列

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-****"
}

エラーコード

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

変更履歴

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