ACK マネージドクラスター、サーバーレス Kubernetes クラスター、ACK エッジクラスター、登録済みクラスターを含む ACK クラスターを作成します。クラスター作成時に、クラスター情報、クラスターコンポーネント、および ACK 関連のクラウドリソースを設定します。
操作説明
コンソールを使用した OpenAPI リクエストパラメーターの生成
CreateCluster 操作を呼び出してクラスターを作成する際、リクエストパラメーターの組み合わせが正しくないために API 呼び出しが失敗した場合、コンソールを使用して必須のリクエストパラメーターの組み合わせを生成できます。以下の手順を実行してください。
-
Container Service コンソール にログインし、左側のナビゲーションウィンドウで [クラスターリスト] を選択します。
-
[クラスターリスト] ページで、[クラステンプレート] をクリックします。
-
ダイアログボックスで、作成するクラスタータイプを選択し、[作成] をクリックして、クラスター設定ページでクラスター情報を設定します。
-
設定完了後、[設定の確認] ページの右上隅にある [同等のコード] をクリックします。ダイアログボックスにクラスター作成に必要なパラメーターの組み合わせが表示されます。これをコピーして使用できます。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
cs:CreateCluster |
create |
*Cluster
|
|
なし |
リクエスト構文
POST /clusters HTTP/1.1
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| body |
object |
任意 |
リクエストボディのパラメーターです。 |
cluster-demo |
| name |
string |
必須 |
カスタムクラスター名です。名前は 1~63 文字で、数字、漢字、英字、ハイフン (-) を含めることができます。名前の先頭をハイフン (-) にすることはできません。 |
cluster-demo |
| region_id |
string |
必須 |
クラスターのリージョン ID です。詳細については、「Container Service でサポートされるリージョン」をご参照ください。 |
cn-beijing |
| cluster_type |
string |
任意 |
|
Kubernetes |
| cluster_spec |
string |
任意 |
Pro XL、Pro 2XL、Pro 4XL は、コンテナサービス ACK Pro プロビジョニング済みコントロールプレーン が提供する 3 つのティアです。これらのティアは、コントロールプレーンのリソースを事前に割り当てて固定することで、API の同時実行数と Pod のスケジューリング機能を確定的に高いレベルに維持します。AI トレーニングや推論、超大規模クラスター、ミッションクリティカルな作業負荷に適しています。 プロ版 およびプロビジョニング済みコントロールプレーンクラスターの管理料金の詳細については、クラスター管理料金をご参照ください。 |
ack.pro.small |
| profile |
string |
任意 |
ACK マネージドクラスタータイプとして
|
Default |
| kubernetes_version |
string |
任意 |
クラスターバージョンです。Kubernetes コミュニティのベースラインバージョンと一致します。最新バージョンを選択することを推奨します。このパラメーターを指定しない場合、デフォルトで最新バージョンが使用されます。 最新の 3 つのバージョンのクラスターを作成できます。サポートされているクラスターバージョンをクエリするには、 DescribeKubernetesVersionMetadata 操作を呼び出してください。 ACK でサポートされている Kubernetes バージョンの詳細については、「Kubernetes バージョンリリース概要」をご参照ください。 |
1.32.1-aliyun.1 |
| auto_mode |
object |
任意 |
インテリジェントマネージドモードの構成です。 |
|
| enable |
boolean |
任意 |
インテリジェントマネージドモードを有効にするかどうかを指定します。
|
true |
| tags |
array |
任意 |
ノードタグです。タグ定義ルール:
|
|
| tag |
任意 |
ノードタグです。タグ定義ルール:
|
||
| resource_group_id |
string |
任意 |
クラスターのリソースグループ ID です。異なるリソースを分離するために使用されます。 |
rg-acfm3mkrure**** |
| deletion_protection |
boolean |
任意 |
クラスター削除保護を有効にするかどうかを指定します。有効にすると、コンソールまたは API を通じた偶発的なクラスターの削除を防ぎます。有効な値:
デフォルト値: |
true |
| zone_ids |
array |
任意 |
クラスターが属するリージョンのゾーン ID です。このパラメーターは ACK マネージドクラスタータイプに固有です。 |
|
|
string |
任意 |
クラスターが属するリージョンのゾーン ID です。このアクティブな ゾーンに vSwitch が自動的に作成されます。 ACK マネージドクラスタータイプを作成する際、 |
cn-beijing-h |
|
| vpcid |
string |
任意 |
クラスターで使用される VPC です。クラスター作成時に VPC を提供する必要があります。 |
vpc-2zeik9h3ahvv2zz95**** |
| vswitch_ids |
array |
任意 |
クラスターノード用の vSwitch です。ゼロノードのマネージドクラスターを作成する場合、このフィールドは必須です。 |
|
|
string |
任意 |
クラスターノード用の vSwitch です。ゼロノードのマネージドクラスターを作成する場合、このフィールドは必須です。 |
vsw-2ze3ds0mdip0hdz8i**** |
|
| ip_stack |
string |
任意 |
クラスターの IP プロトコルスタックです。 |
可选值: ipv4(单栈) dual(双栈),默认值为ipv4。 |
pod_vswitch_ids
deprecated
|
array |
任意 |
このフィールドは非推奨です。 ネットワークプラグインとして Terway を選択する場合、Pod IP アドレス割り当て用に vSwitch を指定する必要があります。各 Pod vSwitch はワーカーノード vSwitch に対応し、Pod vSwitch とワーカーノード vSwitch は同じゾーンにある必要があります。 説明
Pod vSwitch の CIDR ブロックマスクは 19 を超えないことが推奨され、25 を超えてはなりません。そうでない場合、クラスターネットワークで使用可能な Pod IP アドレスの数が非常に制限され、通常のクラスター使用に影響を与えます。 |
|
|
string |
任意 |
ネットワークプラグインとして Terway を選択する場合、Pod IP アドレス割り当て用に vSwitch を指定する必要があります。各 Pod vSwitch はワーカーノード vSwitch に対応し、Pod vSwitch とワーカーノード vSwitch は同じゾーンにある必要があります。 説明
Pod vSwitch の CIDR ブロックマスクは 19 を超えないことが推奨され、25 を超えてはなりません。そうでない場合、クラスターネットワークで使用可能な Pod IP アドレスの数が非常に制限され、通常のクラスター使用に影響を与えます。 |
vsw-2ze97jwri7cei0mpw**** |
|
| container_cidr |
string |
任意 |
Pod CIDR ブロックです。有効な非公開 CIDR ブロックである必要があり、具体的には以下の CIDR ブロックとそのサブネットです: 10.0.0.0/8、172.16-31.0.0/12-16、192.168.0.0/16。CIDR ブロックは VPC CIDR ブロックや VPC 内の既存の Kubernetes クラスターで使用されている CIDR ブロックと重複できません。クラスター作成後はこの CIDR ブロックを変更できません。 クラスターネットワーク計画の詳細については、「ACK マネージドクラスターのネットワーク計画」をご参照ください。 説明
このフィールドは Flannel クラスターに必須です。 |
172.20.0.0/16 |
| service_cidr |
string |
任意 |
サービス CIDR ブロックです。有効値: 10.0.0.0/16-24、172.16-31.0.0/16-24、192.168.0.0/16-24。CIDR ブロックは VPC CIDR ブロック 10.1.0.0/21 や VPC 内の既存の Kubernetes クラスターで使用されている CIDR ブロックと重複できません。クラスター作成後はこの CIDR ブロックを変更できません。 デフォルト値: 172.19.0.0/20。 |
172.21.0.0/20 |
| security_group_id |
string |
任意 |
セキュリティグループ ID です。既存のセキュリティグループを使用してクラスターを作成する場合にこのパラメーターを指定します。このパラメーターは |
sg-bp1bdue0qc1g7k**** |
| is_enterprise_security_group |
boolean |
任意 |
高度セキュリティグループの自動作成を有効にするかどうかを指定します。このパラメーターは 説明
基本セキュリティグループを使用する場合、クラスター内のノードと Terway Pod の合計数は 2,000 を超えることはできません。Terway ネットワークタイプのクラスターを作成する場合は、高度セキュリティグループを使用することを推奨します。
デフォルト値: |
true |
| snat_entry |
boolean |
任意 |
VPC の SNAT 設定項目です。有効な値:
説明
クラスター作成時にこのオプションを有効にせず、後でインターネットアクセスが必要になった場合は、手動で有効にすることができます。 デフォルト値: |
false |
| control_plane_endpoints_config |
object |
任意 |
クラスターエンドポイントの構成です。 |
|
| load_balancers_config |
array<object> |
任意 |
クラスターエンドポイントの構成です。このフィールドを指定すると、endpoint_public_access および load_balancer_id パラメーターは有効ではありません。ACK は NLB インスタンスの自動作成のみをサポートしています。CLB/NLB を指定するには、load_balancers_config を使用してインスタンス ID を指定してください。 |
|
|
object |
任意 |
クラスターアクセス用の負荷分散構成です。 |
||
| endpoint_type |
string |
任意 |
エンドポイントタイプです。 |
private |
| load_balancer_id |
string |
任意 |
NLB インスタンス ID です。 |
nlb-0ogk9aaxxxxxxx |
| internal_dns_config |
object |
任意 |
クラスターの内部 DNS 構成です。ACK マネージドクラスターに適用されます。内部ドメイン名は、kubelet や kube-proxy などのノード側システムコンポーネントが API サーバーにアクセスするために使用されます。内部ドメイン名アクセスが有効になっていない場合、ノード側システムコンポーネントは CLB IP アドレスを通じて API サーバーにアクセスします。 |
|
| bind_vpcs |
array |
任意 |
内部ドメイン名解決が効果を発揮する VPC です。 |
|
|
string |
任意 |
内部ドメイン名解決が効果を発揮する VPC です。 |
vpc-xxxx |
|
| endpoint_public_access |
boolean |
任意 |
パブリックネットワークアクセスを許可するかどうかを指定します。EIP を通じて API サーバーを公開し、クラスターへのパブリックネットワークアクセスを可能にします。
デフォルト値: |
true |
| load_balancer_id |
string |
任意 |
API サーバーアクセス用の CLB インスタンス ID です。このパラメーターを指定すると、API サーバー用 CLB の自動作成は実行されません。 説明
CLB インスタンスに他の依存関係 (リスナーやバックエンドサーバーなど) がないことを確認してください。共有およびインターネット接続の CLB インスタンスはサポートされていません。 |
lb-wz9t256gqa3vbouk**** |
| ssh_flags |
boolean |
任意 |
パブリック SSH ログインを有効にするかどうかを指定します。これは ACK 専用クラスターのマスターノードにログインするために使用されます。このパラメーターはマネージドクラスターでは効果がありません。
デフォルト値: |
true |
| timezone |
string |
任意 |
クラスターで使用されるタイムゾーンです。詳細については、「サポートされるタイムゾーン」をご参照ください。 |
Asia/Shanghai |
| node_cidr_mask |
string |
任意 |
ノードごとの IP アドレス数です。ネットワークの CIDR マスクを指定することで決定されます。このパラメーターは Flannel ネットワークタイプのクラスターでのみ効果があります。 デフォルト値: |
25 |
| proxy_mode |
string |
任意 |
kube-proxy モードです。
デフォルト値: |
ipvs |
| controlplane_log_ttl |
string |
任意 |
コントロールプレーンコンポーネントログのログ保持日数です。 |
30 |
| controlplane_log_project |
string |
任意 |
コントロールプレーンコンポーネントログ用の Simple Log Service プロジェクトです。ロギングに既存のプロジェクトを使用するか、システムによるプロジェクトの自動作成を選択できます。自動作成を選択した場合、 |
k8s-log-xxx |
| controlplane_log_components |
array |
任意 |
ログを収集するコントロールプレーンコンポーネントを指定するコンポーネント名のリストです。 デフォルトでは、kube-apiserver、kube-controller-manager、kube-scheduler、cloud-controller-manager からログが収集されます。 |
|
|
string |
任意 |
ログを収集するコントロールプレーンコンポーネントを指定するコンポーネント名のリストです。 デフォルトでは、kube-apiserver、kube-controller-manager、kube-scheduler、cloud-controller-manager からログが収集されます。 |
["apiserver","kcm","scheduler"] |
|
| audit_log_config |
object |
任意 |
クラスター監査ログの構成です。 |
|
| enabled |
boolean |
任意 |
クラスター監査ログ特徴を有効にするかどうかを指定します。
|
true |
| sls_project_name |
string |
任意 |
クラスター監査ログ Logstore を含む SLS Project です。
|
k8s-log-c2345xxxxxxxxxxxx |
| rrsa_config |
object |
任意 |
RRSA の構成です。 |
|
| enabled |
boolean |
任意 |
RRSA 特徴を有効にするかどうかを指定します。
|
true |
| cluster_domain |
string |
任意 |
クラスターのローカルドメイン名です。 命名規則: ドメイン名はピリオド (.) で区切られた 1 つ以上の部分で構成されます。各部分は最大 63 文字で、小文字、数字、ハイフン (-) を含めることができます。各部分は小文字または数字で始まり、終わる必要があります。 |
cluster.local |
| encryption_provider_key |
string |
任意 |
データクラウドディスクを暗号化するに使用される KMS キー ID です。詳細については、「Key Management Service」をご参照ください。 説明
この特徴はコンテナサービス ACK Pro マネージドクラスターでのみ効果があります。 |
0fe64791-55eb-4fc7-84c5-c6c7cdca**** |
| service_account_issuer |
string |
任意 |
ServiceAccount は、Pod とクラスター API サーバー間の通信のためのアクセス認証情報です。
|
kubernetes.default.svc |
| api_audiences |
string |
任意 |
ServiceAccount は、Pod とクラスター API サーバー間の通信のためのアクセス認証情報です。
|
kubernetes.default.svc |
| extra_sans |
array |
任意 |
カスタム API サーバー証明書 SAN (Subject Alternative Name) です。 |
|
|
string |
任意 |
証明書の SAN です。カスタム IP アドレスまたはドメイン名をサポートします。 |
192.168.xx.xx |
|
| maintenance_window | maintenance_window |
任意 |
クラスターの O&M ウィンドウです。 |
|
| operation_policy |
object |
任意 |
クラスターの自動 O&M ポリシーです。 |
|
| cluster_auto_upgrade |
object |
任意 |
クラスター自動スペックアップの構成です。 |
|
| enabled |
boolean |
任意 |
クラスターの自動スペックアップを有効にするかどうかを指定します。
|
true |
| channel |
string |
任意 |
クラスターの自動スペックアップ周波数です。有効な値:
|
stable |
| addons |
array |
任意 |
クラスターコンポーネントリストです。 ネットワークコンポーネント: 必須です。Flannel または Terway ネットワークタイプのいずれかを選択してください。
ストレージコンポーネント: 任意です。
ログコンポーネント: 任意です。このコンポーネントを有効にすることを推奨します。ログサービスを有効にしない場合、クラスター監査機能を使用できません。
Ingress コンポーネント: 任意です。ACK 専用クラスターには Ingress コンポーネント
イベントセンター: 任意です。デフォルトで有効になっています。 イベントセンターは Kubernetes イベントのストレージ、クエリ、アラート機能を提供します。Kubernetes イベントセンターに関連付けられた Logstore は 90 日間無料です。無料ポリシーの詳細については、「Kubernetes イベントセンターの作成と使用」をご参照ください。 イベントセンターの有効化例: [{"name":"ack-node-problem-detector","config":"{"sls_project_name":"your_sls_project_name"}"}]。 |
|
| addon |
任意 |
クラスターコンポーネントリストです。 |
||
| nodepools |
array |
任意 |
ノードプールリストです。 |
|
| nodepool |
任意 |
ノードプールの構成です。 |
||
| user_ca |
string |
任意 |
カスタムクラスター CA です。 |
-----BEGIN CERTIFICATE-----**** |
| control_plane_config |
object |
任意 |
ACK 専用クラスターのコントロールプレーン構成です。 |
|
| charge_type |
string |
任意 |
コントロールプレーンノードの課金方法です。
デフォルト値: |
PostPaid |
| period |
integer |
任意 |
コントロールプレーンノードのサブスクリプション期間です。このパラメーターは課金方法が 有効な値: {1, 2, 3, 6, 12, 24, 36, 48, 60}。単位: 月。 デフォルト値: 1。 |
1 |
| period_unit |
string |
任意 |
コントロールプレーンノードのサブスクリプション期間単位です。このパラメーターは課金方法が 有効な値: |
Month |
| auto_renew |
boolean |
任意 |
コントロールプレーンノードの自動更新を有効にするかどうかを指定します。このパラメーターは課金方法が
デフォルト値: true。 |
true |
| auto_renew_period |
integer |
任意 |
コントロールプレーンノードの自動更新期間です。 有効な値: {1, 2, 3, 6, 12}。単位: 月。 デフォルト値: 1。 |
1 |
| instance_types |
array |
任意 |
ノードのインスタンスタイプです。 |
|
|
string |
任意 |
ノードのインスタンスタイプです。 |
ecs.g6.large |
|
| image_type |
string |
任意 |
オペレーティングシステムのイメージタイプです。 |
AliyunLinux3 |
| image_id |
string |
任意 |
イメージ ID です。 |
aliyun_3_x64_20G_alibase_20240819.vhd |
| key_pair |
string |
任意 |
キーペア名です。login_password と相互排他です。 |
ack |
| login_password |
string |
任意 |
SSH ログインパスワードです。パスワードは 8~30 文字で、大文字、小文字、数字、特殊文字のうち少なくとも 3 種類を含む必要があります。 |
******** |
| system_disk_category |
string |
任意 |
ノードシステムクラウドディスクのタイプです。
デフォルト値: |
cloud_ssd |
| system_disk_size |
integer |
任意 |
ノードシステムクラウドディスクのサイズです。 有効な値: [40,500]。単位: GiB。 デフォルト値: |
120 |
| system_disk_snapshot_policy_id |
string |
任意 |
ノードの自動スナップショットバックアップポリシーです。 |
sp-2zej1nogjvovnz4z**** |
| system_disk_performance_level |
string |
任意 |
ノードシステムクラウドディスクのパフォーマンスレベルです。このパラメーターは ESSD クラウドディスクに対してのみ有効です。 パフォーマンスレベルはクラウドディスクのサイズに関連しています。詳細については、「ESSD クラウドディスク (標準 SSD)」をご参照ください。 |
PL1 |
| system_disk_provisioned_iops |
integer |
任意 |
ノードシステムクラウドディスクのプロビジョニング済み読み取り/書き込み IOPS です。 有効な値: 0~min{50,000, 1000*capacity-baseline performance}。ベースラインパフォーマンス=min{1,800+50*capacity, 50000}。 このパラメーターは |
1000 |
| system_disk_bursting_enabled |
boolean |
任意 |
ノードシステムクラウドディスクのバースト (パフォーマンスバースト) を有効にするかどうかを指定します。
このパラメーターは |
true |
| deploymentset_id |
string |
任意 |
デプロイメントセット ID です。 |
ds-bp10b35imuam5amw**** |
| cloud_monitor_flags |
boolean |
任意 |
ノードに CloudMonitor をインストールするかどうかを指定します。
デフォルト値: false。 |
false |
| instance_metadata_options | InstanceMetadataOptions |
任意 |
ECS インスタンスのインスタンスメタデータアクセス構成です。 |
|
| soc_enabled |
boolean |
任意 |
MLPS セキュリティ強化を有効にするかどうかを指定します。
デフォルト値: false。 |
false |
| security_hardening_os |
boolean |
任意 |
Alibaba Cloud OS セキュリティ強化を有効にするかどうかを指定します。
デフォルト値: false。 |
false |
| cpu_policy |
string |
任意 |
The CPU management policy for nodes.
Default value: none. |
none |
| runtime |
string |
任意 |
This field is deprecated. The container runtime for control plane nodes. Valid values: containerd: Containerd runtime, supported by all cluster versions. |
containerd |
| node_port_range |
string |
任意 |
This field is deprecated. The node service port range. |
30000-32767 |
| size |
integer |
任意 |
The number of control plane nodes. Valid values: |
3 |
custom_san
deprecated
|
string |
任意 |
This field is deprecated. Use the Custom certificate SAN. Multiple IP addresses or domain names are separated by commas (,). |
cs.aliyun.com |
runtime
deprecated
|
runtime |
任意 |
The container runtime for the cluster. Supports containerd, sandboxed containers, and Docker. 説明
Kubernetes 1.24 no longer supports Docker as a built-in container runtime. For more information, see Comparison among Docker, containerd, and sandboxed containers. |
|
node_name_mode
deprecated
|
string |
任意 |
This field is deprecated. For node pool configurations, use the |
null |
user_data
deprecated
|
string |
任意 |
This field is deprecated. Custom node data. |
IyEvdXNyL2Jpbi9iYXNoCmVjaG8gIkhlbGxvIEFD**** |
image_id
deprecated
|
string |
任意 |
This field is deprecated. For cluster control plane configurations, use the The custom image for nodes. The system image is used by default. When a custom image is selected, it replaces the default system image. For more information, see Custom images. |
m-bp16z7xko3vvv8gt**** |
rds_instances
deprecated
|
array |
任意 |
This field is deprecated. For node pool configurations, use the The list of RDS instances to which you want to add the whitelist. We recommend that you add the container pod CIDR block and node CIDR block to the RDS whitelist directly. Setting RDS instances may fail because the instances are not in a running state. |
|
|
string |
任意 |
The list of RDS instances to which you want to add the whitelist. We recommend that you add the container pod CIDR block and node CIDR block to the RDS whitelist directly. Setting RDS instances may fail because the instances are not in a running state. |
rm-2zev748xi27xc**** |
|
taints
deprecated
|
array |
任意 |
This field is deprecated. For node pool configurations, use the Node taint information. Taints and tolerations work together to prevent pods from being scheduled to inappropriate nodes. For more information, see taint-and-toleration. |
|
| taint |
任意 |
Node taint information. Taints and tolerations work together to prevent pods from being scheduled to inappropriate nodes. For more information, see taint-and-toleration. |
||
cloud_monitor_flags
deprecated
|
boolean |
任意 |
This field is deprecated. For cluster control plane node configurations, use the Specifies whether to install the CloudMonitor agent on the cluster. Valid values:
Default value: |
false |
platform
deprecated
|
string |
任意 |
This field is deprecated. For node pool configurations, use the The operating system distribution. Valid values:
Default value: |
CentOS |
os_type
deprecated
|
string |
任意 |
This field is deprecated. For cluster control plane node configurations, use the The operating system platform type. Valid values:
Default value: |
Linux |
soc_enabled
deprecated
|
boolean |
任意 |
This field is deprecated. For cluster control plane node configurations, use the MLPS 2.0 security hardening. For more information, see ACK MLPS 2.0 security hardening. Valid values:
Default value: |
false |
security_hardening_os
deprecated
|
boolean |
任意 |
This field is deprecated. For cluster control plane configurations, use the Alibaba Cloud OS security hardening. Valid values:
Default value: |
false |
cis_enabled
deprecated
|
boolean |
任意 |
This field is deprecated. For cluster control plane configurations, use the |
false |
cpu_policy
deprecated
|
string |
任意 |
This field is deprecated. For cluster control plane configurations, use the The CPU management policy for nodes. The following policies are supported for cluster versions 1.12.6 and later:
Default value: |
none |
node_port_range
deprecated
|
string |
任意 |
The node service port range. Valid values: [30000,65535]. Default value: |
30000~32767 |
master_vswitch_ids
deprecated
|
array |
任意 |
This field is deprecated. Use the The list of vSwitch IDs for master nodes. The number of vSwitches ranges from [1,3]. To ensure high availability, we recommend that you select 3 vSwitches in different zones. The number of specified instance types must match |
|
|
string |
任意 |
The list of vSwitch IDs for master nodes. The number of vSwitches ranges from [1,3]. To ensure high availability, we recommend that you select 3 vSwitches in different zones. The number of specified instance types must match |
vsw-2ze3ds0mdip0hdz8i**** |
|
key_pair
deprecated
|
string |
任意 |
This field is deprecated. For cluster control plane configurations, use the The key pair name. Mutually exclusive with |
security-key |
login_password
deprecated
|
string |
任意 |
This field is deprecated. For cluster control plane configurations, use the The SSH logon password. Mutually exclusive with |
null |
master_count
deprecated
|
integer |
任意 |
This field is deprecated. For cluster control plane configurations, use the The number of master nodes. Valid values: Default value: |
3 |
master_instance_types
deprecated
|
array |
任意 |
This field is deprecated. For cluster control plane configurations, use the The instance types for master nodes. For more information, see Instance families. |
|
|
string |
任意 |
The instance types for master nodes. The number of specified instance types must match |
ecs.n4.xlarge |
|
master_system_disk_category
deprecated
|
string |
任意 |
This field is deprecated. For cluster control plane configurations, use the The system cloud disk type for master nodes. Valid values:
Default value: |
cloud_ssd |
master_system_disk_size
deprecated
|
integer |
任意 |
This field is deprecated. For cluster control plane configurations, use the The system cloud disk size for master nodes. Valid values: [40,500]. Unit: GiB. Default value: |
120 |
master_system_disk_performance_level
deprecated
|
string |
任意 |
This field is deprecated. For cluster control plane configurations, use the The performance level of the system cloud disk for cluster master nodes. This parameter takes effect only for ESSD cloud disks. The performance level is related to the cloud disk size. For more information, see ESSD cloud disks (standard SSDs). |
PL1 |
master_system_disk_snapshot_policy_id
deprecated
|
string |
任意 |
This field is deprecated. For cluster control plane configurations, use the The automatic snapshot policy ID for the master node system cloud disk. |
sp-2zej1nogjvovnz4z**** |
master_instance_charge_type
deprecated
|
string |
任意 |
This field is deprecated. For cluster control plane configurations, use the The billing method for master nodes. Valid values:
Default value: |
PrePaid |
master_period_unit
deprecated
|
string |
任意 |
This field is deprecated. For cluster control plane configurations, use the The billing cycle for master nodes. This parameter is required when the billing method is Valid values: |
Month |
master_period
deprecated
|
integer |
任意 |
This field is deprecated. For cluster control plane configurations, use the The subscription duration for master nodes. This parameter takes effect and is required only when Valid values: {1, 2, 3, 6, 12, 24, 36, 48, 60}. Default value: 1. |
1 |
master_auto_renew
deprecated
|
boolean |
任意 |
This field is deprecated. For cluster control plane configurations, use the Specifies whether to enable auto-renewal for master nodes. This parameter takes effect only when
Default value: |
true |
master_auto_renew_period
deprecated
|
integer |
任意 |
This field is deprecated. For cluster control plane configurations, use the The auto-renewal epoch for master nodes. This parameter takes effect and is required when the subscription billing method is selected. Valid values: {1, 2, 3, 6, 12}. Default value: 1. |
1 |
num_of_nodes
deprecated
|
integer |
任意 |
This field is deprecated. For node pool configurations, use the The number of worker nodes. Valid values: [0, 100]. |
3 |
worker_vswitch_ids
deprecated
|
array |
任意 |
This field is deprecated. For node pool configurations, use the The list of vSwitches used by cluster nodes. Each node corresponds to one value. When creating a managed cluster with zero nodes, the |
|
|
string |
任意 |
The list of vSwitches for worker nodes. Valid values: [1,20]. To ensure high availability, we recommend that you select vSwitches in different zones. When creating a managed cluster with zero nodes, the |
vsw-2ze3ds0mdip0hdz8i**** |
|
worker_instance_types
deprecated
|
array |
任意 |
This field is deprecated. For node pool configurations, use the The instance configurations for worker nodes. |
|
|
string |
任意 |
The instance types for worker nodes. At least one instance type must be specified. For more information, see Instance families. 説明
The priority of instance types decreases as their position in the array increases. When an instance cannot be created with a higher-priority instance type, the system automatically selects the next-priority instance type. |
ecs.n4.large |
|
worker_system_disk_category
deprecated
|
string |
任意 |
This field is deprecated. For node pool configurations, use the The system cloud disk type for worker nodes. For more information, see Block storage overview. Valid values:
Default value: |
cloud_efficiency |
worker_system_disk_size
deprecated
|
integer |
任意 |
This field is deprecated. For node pool configurations, use the The system cloud disk size for worker nodes. Unit: GiB. Valid values: [40,500]. The value must be greater than or equal to max{40, ImageSize}. Default value: |
120 |
worker_system_disk_snapshot_policy_id
deprecated
|
string |
任意 |
This field is deprecated. For node pool configurations, use the The automatic snapshot policy ID for the worker node system cloud disk. |
sp-2zej1nogjvovnz4z**** |
worker_system_disk_performance_level
deprecated
|
string |
任意 |
This field is deprecated. For node pool configurations, use the The performance level (PL) of the ESSD used as the system cloud disk can be configured when the system cloud disk is an ESSD cloud disk. For more information, see ESSD cloud disks. Valid values:
|
PL1 |
worker_data_disks
deprecated
|
array<object> |
任意 |
This field is deprecated. For node pool configurations, use the The data cloud disk type, size, and other configurations for worker nodes. |
|
|
object |
任意 |
The data cloud disk configuration set. |
||
| category |
string |
必須 |
The data cloud disk type. |
cloud_essd |
| encrypted |
string |
任意 |
Specifies whether to encrypt the data cloud disk. Valid values:
Default value: |
true |
| size |
string |
必須 |
The data cloud disk size. Valid values: 40 to 32767. Unit: GiB. |
120 |
| performance_level |
string |
任意 |
The performance level of the node data cloud disk. This parameter takes effect only for ESSD cloud disks (standard SSDs). |
PL1 |
worker_instance_charge_type
deprecated
|
string |
任意 |
This field is deprecated. For node pool configurations, use the The billing method for worker nodes. Valid values:
Default value: pay-as-you-go. |
PrePaid |
worker_period_unit
deprecated
|
string |
任意 |
This field is deprecated. For node pool configurations, use the The billing cycle. |
Month |
worker_period
deprecated
|
integer |
任意 |
This field is deprecated. Use the The subscription duration of worker nodes. This parameter takes effect and is required only when Valid values: {1, 2, 3, 6, 12, 24, 36, 48, 60}. Default value: 1. |
1 |
worker_auto_renew
deprecated
|
boolean |
任意 |
This field is deprecated. Use the Specifies whether to enable auto-renewal for worker nodes. This parameter takes effect only when
Default value: |
true |
worker_auto_renew_period
deprecated
|
integer |
任意 |
This field is deprecated. Use the The auto-renewal epoch of worker nodes. This parameter takes effect and is required only when the subscription billing method is selected. Valid values: {1, 2, 3, 6, 12}. |
1 |
instances
deprecated
|
array |
任意 |
This field is deprecated. Selecting existing nodes during cluster creation is not supported. To add existing nodes to a cluster, create a node pool first and call the AttachInstancesToNodePool operation. The list of ECS instances to use when creating a cluster with existing nodes. These instances are added to the cluster as worker nodes. 説明
This field is required when you create a cluster with existing instances. |
|
|
string |
任意 |
The list of ECS instances to use when creating a cluster with existing nodes. These instances are added to the cluster as worker nodes. 説明
This field is required when you create a cluster with existing instances. |
i-2ze4zxnm36vq00xn**** |
|
format_disk
deprecated
|
boolean |
任意 |
This field is deprecated. Selecting existing nodes during cluster creation is not supported. To add existing nodes to a cluster, create a node pool first and call the AttachInstancesToNodePool operation. Specifies whether to mount data cloud disks to existing instances when creating a cluster with existing instances. Valid values:
Default value: Data cloud disk mounting rules:
|
false |
keep_instance_name
deprecated
|
boolean |
任意 |
This field is deprecated. Selecting existing nodes during cluster creation is not supported. To add existing nodes to a cluster, create a node pool first and call the AttachInstancesToNodePool operation. Specifies whether to retain instance names when creating a cluster with existing instances.
Default value: |
true |
service_discovery_types
deprecated
|
array |
任意 |
This field is deprecated. The in-cluster service discovery type, used to specify the service discovery method in
Default value: disabled. |
|
|
string |
任意 |
The in-cluster service discovery type, used to specify the service discovery method in
Default value: disabled. |
PrivateZone |
|
nat_gateway
deprecated
|
boolean |
任意 |
This field is deprecated. Use the |
true |
zone_id
deprecated
|
string |
任意 |
This field is deprecated. Use the The active zone ID of the region where the cluster resides. This parameter is specific to ACK managed clusters. When creating an ACK managed cluster, if |
cn-beiji**** |
logging_type
deprecated
|
string |
任意 |
This field is deprecated. Enables Simple Log Service for the cluster. This parameter takes effect only for ACK Serverless clusters, and the value must be |
SLS |
disable_rollback
deprecated
|
boolean |
任意 |
This field is deprecated. By default, rollback is not performed when cluster creation fails. You must manually clean up the failed cluster. Specifies whether to roll back when cluster creation fails. Valid values:
Default value: |
true |
timeout_mins
deprecated
|
integer |
任意 |
This field is deprecated. By default, rollback is not performed when cluster creation fails. You must manually clean up the failed cluster. The timeout period for cluster creation, in minutes. Default value: |
60 |
image_type
deprecated
|
string |
任意 |
This field is deprecated. Use the The operating system distribution type. We recommend that you use this field to specify the node operating system. Valid values:
Default value: |
AliyunLinux |
load_balancer_spec
deprecated
|
string |
任意 |
This parameter is deprecated. CLB uses pay-by-usage billing, and this parameter does not take effect. The load balancing specification. Valid values:
Default value: |
slb.s2.small |
enable_rrsa
deprecated
|
boolean |
任意 |
This field is deprecated. Use the Specifies whether to enable the RRSA feature.
|
false |
charge_type
deprecated
|
string |
任意 |
This field is deprecated. The billing method of the CLB instance used by the API server. Default value: PostPaid. Valid values:
重要
For more information, see Notice on CLB billing item adjustments. |
PostPaid |
period_unit
deprecated
|
string |
任意 |
This field is deprecated. The billing cycle. This parameter is required when the billing method is PrePaid. Valid values: Month. Currently, only monthly billing cycles are supported. This field was changed on October 15, 2024. For more information, see Notice on behavior changes of the CreateCluster parameter. |
Month |
period
deprecated
|
integer |
任意 |
This field is deprecated. The subscription duration. This parameter takes effect and is required only when charge_type is set to PrePaid. Valid values: {1, 2, 3, 6, 12, 24, 36, 48, 60}. Default value: 1. This field was changed on October 15, 2024. For more information, see Notice on behavior changes of the CreateCluster parameter. |
1 |
auto_renew
deprecated
|
boolean |
任意 |
This field is deprecated. Specifies whether to enable auto-renewal. This parameter takes effect only when
Default value: This field was changed on October 15, 2024. For more information, see Notice on behavior changes of the CreateCluster parameter. |
true |
auto_renew_period
deprecated
|
integer |
任意 |
This field is deprecated. The auto-renewal epoch. This parameter takes effect only when the upfront billing method and auto-renewal are selected. When Default value: 1. This field was changed on October 15, 2024. For more information, see Notice on behavior changes of the CreateCluster parameter. |
1 |
access_control_list
deprecated
|
array |
任意 |
This field is deprecated. The access control list for the API server SLB of a registered cluster. |
|
|
string |
任意 |
The access control list for the API server SLB of a registered cluster. |
192.168.XX.XX/24 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
The response body. |
||
| cluster_id |
string |
The cluster ID. |
cb95aa626a47740afbf6aa099b650**** |
| request_id |
string |
The request ID. |
687C5BAA-D103-4993-884B-C35E4314**** |
| task_id |
string |
The task ID. |
T-5a54309c80282e39ea**** |
例
成功レスポンス
JSONJSON
{
"cluster_id": "cb95aa626a47740afbf6aa099b650****",
"request_id": "687C5BAA-D103-4993-884B-C35E4314****",
"task_id": "T-5a54309c80282e39ea****"
}
エラーコード
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。