All Products
Search
Document Center

Container Service for Kubernetes:CreateCluster

Last Updated:Jul 16, 2026

Membuat kluster ACK, termasuk kluster khusus ACK, kluster Layanan Kontainer Serverless ACK, kluster Edge ACK, dan kluster terdaftar. Saat membuat kluster, Anda mengonfigurasi informasi kluster, komponen kluster, dan resource cloud terkait ACK.

Deskripsi operasi

Menghasilkan parameter permintaan OpenAPI dari konsol

Saat memanggil operasi CreateCluster untuk membuat kluster, jika panggilan API gagal karena kombinasi parameter permintaan yang salah, Anda dapat menghasilkan kombinasi parameter permintaan yang diperlukan dari konsol. Lakukan langkah-langkah berikut:

  1. Masuk ke Konsol Container Service dan pilih Daftar Kluster di panel navigasi sebelah kiri.

  2. Pada halaman Daftar Kluster, klik Templat Kluster.

  3. Di kotak dialog, pilih tipe kluster yang ingin dibuat, klik Buat, lalu konfigurasikan informasi kluster pada halaman konfigurasi kluster.

  4. Setelah konfigurasi selesai, pada halaman Konfirmasi Konfigurasi, klik Kode Setara di sudut kanan atas. Kotak dialog menampilkan kombinasi parameter yang diperlukan untuk membuat kluster, yang dapat Anda salin dan gunakan.

Penting Mulai 4 Juli 2026, beberapa parameter permintaan tidak akan berlaku lagi. Untuk detail perubahan dan deskripsi parameter pengganti, lihat Pemberitahuan tentang perubahan parameter OpenAPI dan penghentian OpenAPI untuk manajemen kluster ACK.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

cs:CreateCluster

create

*Cluster

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

  • cs:ClusterType
  • cs:ClusterSpec
  • cs:ClusterProfile
  • cs:EnableSecretEncryption
  • cs:EnableApiServerEip
  • cs:EnableAddonLogtailDs
  • cs:EnableCoreControlPlaneComponentsLog
  • cs:AddonNames
  • cs:EnableSNAT
  • cs:EnableNodePoolPublicIP
None

Sintaks permintaan

POST /clusters HTTP/1.1

Parameter permintaan

Parameter

Type

Required

Description

Example

body

object

No

Parameter badan permintaan.

cluster-demo

name

string

Yes

Nama kluster kustom. Panjang nama harus 1 hingga 63 karakter dan dapat berisi angka, karakter Mandarin, huruf, dan tanda hubung (-). Tidak boleh dimulai dengan tanda hubung (-).

cluster-demo

region_id

string

Yes

ID wilayah kluster. Untuk informasi lebih lanjut, lihat Wilayah yang didukung oleh Container Service.

cn-beijing

cluster_type

string

No

  • Kubernetes: kluster khusus ACK.

  • ManagedKubernetes: Tipe kluster terkelola ACK, termasuk kluster terkelola ACK (Pro dan Basic), kluster Layanan Kontainer Serverless ACK (Pro dan Basic), kluster Edge ACK (Pro dan Basic), dan kluster Lingjun ACK (Pro).

  • ExternalKubernetes: Kluster terdaftar.

Kubernetes

cluster_spec

string

No

Setelah Anda menetapkan cluster_type ke ManagedKubernetes dan mengonfigurasi profile, Anda dapat menentukan spesifikasi kluster lebih lanjut. Nilai valid:

  • ack.standard: Basic (dipilih secara default jika nilai kosong)

  • ack.pro.small: Pro

  • ack.pro.xlarge: Pro XL

  • ack.pro.2xlarge: Pro 2XL

  • ack.pro.4xlarge: Pro 4XL (memerlukan kontak layanan pelanggan untuk mengaktifkan daftar putih)

Pro XL, Pro 2XL, dan Pro 4XL adalah tiga tingkatan yang disediakan oleh ACK Pro Provisioned Control Plane. Dengan pra-alokasi dan penetapan resource lapisan kontrol, mereka memastikan bahwa konkurensi API dan kemampuan penjadwalan Pod tetap pada tingkat tinggi yang deterministik, cocok untuk pelatihan dan inferensi AI, kluster skala sangat besar, dan beban kerja kritis.

Untuk informasi tentang biaya manajemen untuk kluster Pro dan Provisioned Control Plane, lihat Biaya manajemen kluster.

ack.pro.small

profile

string

No

Saat Anda menetapkan cluster_type ke ManagedKubernetes (tipe kluster terkelola ACK), Anda dapat menentukan subtipe kluster lebih lanjut.

  • Default: Kluster terkelola ACK, termasuk kluster ACK (Pro dan Basic).

  • Edge: Kluster Edge ACK, termasuk kluster Edge ACK (Pro dan Basic).

  • Serverless: Kluster Layanan Kontainer Serverless ACK, termasuk kluster Layanan Kontainer Serverless ACK (Pro dan Basic).

  • Lingjun: Kluster Lingjun ACK, tersedia dalam versi Pro.

Default

kubernetes_version

string

No

Versi kluster, yang konsisten dengan versi garis dasar komunitas Kubernetes. Kami menyarankan Anda memilih versi terbaru. Jika Anda tidak menentukan parameter ini, versi terbaru digunakan secara default.

Anda dapat membuat kluster dengan tiga versi terbaru. Panggil operasi DescribeKubernetesVersionMetadata untuk mengkueri versi kluster yang didukung.

Untuk informasi lebih lanjut tentang versi Kubernetes yang didukung oleh ACK, lihat Ikhtisar rilis versi Kubernetes.

1.32.1-aliyun.1

auto_mode

object

No

Konfigurasi mode terkelola cerdas.

enable

boolean

No

Apakah akan mengaktifkan mode terkelola cerdas.

  • true: Aktifkan.

  • false: Jangan aktifkan.

true

tags

array

No

Tag node. Aturan definisi tag:

  • Tag terdiri dari pasangan kunci-nilai yang peka huruf besar/kecil. Anda dapat mengatur hingga 20 tag.

  • Kunci tag tidak boleh duplikat dan panjangnya maksimal 64 karakter. Nilai tag dapat kosong dan panjangnya maksimal 128 karakter. Kunci tag dan nilai tag tidak boleh dimulai dengan "aliyun", "acs:", "https://", atau "http://". Untuk informasi lebih lanjut, lihat Label dan Selector.

tag

No

Tag node. Aturan definisi tag:

  • Tag terdiri dari pasangan kunci-nilai yang peka huruf besar/kecil. Anda dapat mengatur hingga 20 tag.

  • Kunci tag tidak boleh duplikat dan panjangnya maksimal 64 karakter. Nilai tag dapat kosong dan panjangnya maksimal 128 karakter. Kunci tag dan nilai tag tidak boleh dimulai dengan "aliyun", "acs:", "https://", atau "http://". Untuk informasi lebih lanjut, lihat Label dan Selector.

resource_group_id

string

No

ID kelompok sumber daya kluster, digunakan untuk mengisolasi resource yang berbeda.

rg-acfm3mkrure****

deletion_protection

boolean

No

Apakah akan mengaktifkan perlindungan penghapusan kluster, yang mencegah kluster dihapus secara tidak sengaja melalui konsol atau API. Nilai valid:

  • true: Aktifkan perlindungan penghapusan kluster. Kluster tidak dapat dihapus melalui konsol atau API.

  • false: Jangan aktifkan perlindungan penghapusan kluster. Kluster dapat dihapus melalui konsol atau API.

Nilai default: false.

true

zone_ids

array

No

ID zona wilayah tempat kluster berada. Parameter ini khusus untuk tipe kluster terkelola ACK.

string

No

ID zona wilayah tempat kluster berada. vSwitch dibuat secara otomatis di zona ini melalui pembuatan otomatis.

Saat membuat tipe kluster terkelola ACK, jika vpc_id dan vswitch_ids tidak ditentukan, tentukan zone_ids agar kluster secara otomatis membuat VPC dan resource jaringan di beberapa zona aktif. Jika vpc_id dan vswitch_ids ditentukan, parameter ini tidak berlaku.

cn-beijing-h

vpcid

string

No

VPC yang digunakan oleh kluster. Anda harus menyediakan VPC saat membuat kluster.

vpc-2zeik9h3ahvv2zz95****

vswitch_ids

array

No

vSwitch untuk node kluster. Bidang ini wajib saat membuat kluster terkelola tanpa node.

string

No

vSwitch untuk node kluster. Bidang ini wajib saat membuat kluster terkelola tanpa node.

vsw-2ze3ds0mdip0hdz8i****

ip_stack

string

No

Tumpukan protokol IP kluster.

可选值: ipv4(单栈) dual(双栈),默认值为ipv4。

pod_vswitch_ids deprecated

array

No

Bidang ini sudah tidak digunakan. Saat Anda memilih Terway sebagai plugin jaringan, Anda harus menetapkan vSwitch untuk alokasi IP Pod. Setiap vSwitch Pod berkorespondensi dengan vSwitch node pekerja, dan vSwitch Pod serta vSwitch node pekerja harus berada di zona yang sama.

Catatan

Masker blok CIDR vSwitch Pod tidak boleh melebihi 19 dan tidak boleh melebihi 25. Jika tidak, jumlah alamat IP Pod yang tersedia di jaringan kluster sangat terbatas, yang memengaruhi penggunaan kluster normal.

string

No

Saat Anda memilih Terway sebagai plugin jaringan, Anda harus menetapkan vSwitch untuk alokasi IP Pod. Setiap vSwitch Pod berkorespondensi dengan vSwitch node pekerja, dan vSwitch Pod serta vSwitch node pekerja harus berada di zona yang sama.

Catatan

Masker blok CIDR vSwitch Pod tidak boleh melebihi 19 dan tidak boleh melebihi 25. Jika tidak, jumlah alamat IP Pod yang tersedia di jaringan kluster sangat terbatas, yang memengaruhi penggunaan kluster normal.

vsw-2ze97jwri7cei0mpw****

container_cidr

string

No

Blok CIDR jaringan Pod. Harus berupa blok CIDR pribadi yang valid, khususnya blok CIDR berikut dan subnetnya: 10.0.0.0/8, 172.16-31.0.0/12-16, 192.168.0.0/16. Tidak boleh tumpang tindih dengan blok CIDR VPC atau blok CIDR yang digunakan oleh kluster Kubernetes yang ada di VPC. Tidak dapat diubah setelah pembuatan.

Untuk informasi tentang perencanaan jaringan kluster, lihat Perencanaan jaringan kluster terkelola ACK.

Catatan

Bidang ini wajib untuk kluster Flannel.

172.20.0.0/16

service_cidr

string

No

Blok CIDR jaringan Service. Rentang valid: 10.0.0.0/16-24, 172.16-31.0.0/16-24, 192.168.0.0/16-24. Tidak boleh tumpang tindih dengan blok CIDR VPC 10.1.0.0/21 atau blok CIDR yang digunakan oleh kluster Kubernetes yang ada di VPC. Tidak dapat diubah setelah pembuatan.

Nilai default: 172.19.0.0/20.

172.21.0.0/20

security_group_id

string

No

ID grup keamanan. Tentukan parameter ini saat membuat kluster dengan grup keamanan yang ada. Saling eksklusif dengan is_enterprise_security_group. Node kluster secara otomatis ditambahkan ke grup keamanan ini.

sg-bp1bdue0qc1g7k****

is_enterprise_security_group

boolean

No

Apakah akan menggunakan pembuatan otomatis grup keamanan lanjutan. Berlaku ketika security_group_id kosong.

Catatan

Saat menggunakan grup keamanan dasar, jumlah total node dan Pod Terway di kluster tidak boleh melebihi 2000. Oleh karena itu, saat membuat kluster tipe jaringan Terway, kami menyarankan menggunakan grup keamanan lanjutan.

  • true: Buat dan gunakan grup keamanan lanjutan.

  • false: Gunakan grup keamanan dasar.

Nilai default: true.

true

snat_entry

boolean

No

Pengaturan untuk mengonfigurasi SNAT untuk VPC. Nilai valid:

  • true: Gunakan pembuatan otomatis gateway NAT dan konfigurasikan aturan SNAT. Tetapkan ini ke true jika node dan aplikasi di kluster perlu mengakses Internet.

  • false: Jangan buat gateway NAT atau aturan SNAT. Node dan aplikasi di kluster tidak dapat mengakses Internet.

Catatan

Jika ini tidak diaktifkan selama pembuatan kluster dan akses Internet diperlukan nanti, Anda dapat mengaktifkannya secara manual.

Nilai default: false.

false

control_plane_endpoints_config

object

No

Konfigurasi titik akhir kluster.

load_balancers_config

array<object>

No

Konfigurasi titik akhir kluster. Ketika bidang ini ditentukan, parameter endpoint_public_access dan load_balancer_id tidak berlaku. ACK hanya mendukung pembuatan otomatis instans NLB. Untuk menentukan CLB/NLB, gunakan load_balancers_config untuk menentukan ID instans.

object

No

Konfigurasi penyeimbangan beban akses kluster.

endpoint_type

string

No

Tipe titik akhir.

private

load_balancer_id

string

No

ID instans NLB.

nlb-0ogk9aaxxxxxxx

internal_dns_config

object

No

Konfigurasi DNS internal untuk kluster. Berlaku untuk kluster terkelola ACK. Nama domain internal digunakan oleh komponen sistem sisi node seperti kubelet dan kube-proxy untuk mengakses API Server. Ketika akses nama domain internal tidak diaktifkan, komponen sistem sisi node mengakses API Server melalui alamat IP CLB.

bind_vpcs

array

No

VPC tempat resolusi rekaman nama domain internal berlaku.

string

No

VPC tempat resolusi rekaman nama domain internal berlaku.

vpc-xxxx

endpoint_public_access

boolean

No

Apakah akan mengaktifkan akses jaringan publik. Mengekspos API Server melalui EIP untuk akses jaringan publik ke kluster.

  • true: Akses jaringan publik.

  • false: Jangan aktifkan akses jaringan publik. Jika tidak diaktifkan, API Server kluster tidak dapat diakses dari Internet.

Nilai default: false.

true

load_balancer_id

string

No

ID instans CLB untuk akses API Server. Ketika parameter ini ditentukan, pembuatan otomatis CLB API Server tidak dilakukan.

Catatan

Pastikan instans CLB tidak memiliki dependensi lain (seperti listener atau server backend). Instans CLB berbagi dan menghadap Internet tidak didukung.

lb-wz9t256gqa3vbouk****

ssh_flags

boolean

No

Apakah akan mengaktifkan logon SSH publik. Digunakan untuk logon ke node master kluster khusus ACK. Parameter ini tidak berlaku untuk kluster terkelola.

  • true: Aktifkan.

  • false: Jangan aktifkan.

Nilai default: false.

true

timezone

string

No

Zona waktu yang digunakan oleh kluster. Lihat Zona waktu yang didukung.

Asia/Shanghai

node_cidr_mask

string

No

Jumlah alamat IP per node, ditentukan dengan menentukan masker CIDR jaringan. Hanya berlaku untuk kluster tipe jaringan Flannel.

Nilai default: 26.

25

proxy_mode

string

No

Modus kube-proxy.

  • iptables: Modus kube-proxy yang matang dan stabil. Penemuan layanan dan penyeimbangan beban untuk Layanan Kubernetes dikonfigurasi menggunakan aturan iptables. Namun, kinerjanya rata-rata dan sangat dipengaruhi oleh skala. Cocok untuk kluster dengan jumlah Layanan yang kecil.

  • ipvs: Modus kube-proxy Tingkat Tinggi. Penemuan layanan dan penyeimbangan beban untuk Layanan Kubernetes dikonfigurasi menggunakan modul IPVS Linux. Cocok untuk kluster dengan jumlah Layanan yang besar yang memerlukan penyeimbangan beban Tingkat Tinggi.

  • nftables: Modus kube-proxy generasi berikutnya yang mengimplementasikan penemuan layanan dan penyeimbangan beban berdasarkan nftables Linux, berfungsi sebagai pengganti modern untuk iptables. Dibandingkan dengan iptables, nftables menawarkan kinerja jaringan yang lebih baik, pembaruan aturan yang lebih efisien, dan perilaku yang lebih baik dalam skenario Layanan skala besar.
    Hanya didukung untuk kluster yang menjalankan versi 1.35 atau lebih baru. Komunitas Kubernetes telah menghentikan dukungan IPVS mulai versi 1.35. Untuk kluster baru, gunakan nftables untuk dukungan komunitas jangka panjang.

Nilai default: ipvs.

ipvs

controlplane_log_ttl

string

No

Jumlah hari retensi log untuk log komponen lapisan kontrol.

30

controlplane_log_project

string

No

Proyek Simple Log Service untuk log komponen lapisan kontrol. Anda dapat menggunakan proyek yang ada untuk penyimpanan log atau membiarkan sistem membuat proyek secara otomatis. Jika Anda memilih pembuatan otomatis, proyek Simple Log Service bernama k8s-log-{ClusterID} akan dibuat.

k8s-log-xxx

controlplane_log_components

array

No

Daftar nama komponen yang menentukan komponen lapisan kontrol mana yang akan dikumpulkan lognya.

Secara default, log dikumpulkan dari kube-apiserver, kube-controller-manager, penjadwal, dan cloud-controller-manager.

string

No

Daftar nama komponen yang menentukan komponen lapisan kontrol mana yang akan dikumpulkan lognya.

Secara default, log dikumpulkan dari kube-apiserver, kube-controller-manager, penjadwal, dan cloud-controller-manager.

["apiserver","kcm","scheduler"]

audit_log_config

object

No

Konfigurasi log audit kluster.

enabled

boolean

No

Apakah akan mengaktifkan fitur log audit kluster.

  • true: Aktifkan.

  • false: Jangan aktifkan.

true

sls_project_name

string

No

Proyek SLS yang berisi penyimpanan log log audit kluster.

  • Nilai default: k8s-log-{clusterid}.

  • Setelah fitur log audit kluster diaktifkan, penyimpanan log untuk log audit kluster dibuat di Proyek SLS yang ditentukan.

k8s-log-c2345xxxxxxxxxxxx

rrsa_config

object

No

Konfigurasi RRSA.

enabled

boolean

No

Apakah akan mengaktifkan RRSA.

  • true: Aktifkan.

  • false: Jangan aktifkan.

true

cluster_domain

string

No

Domain lokal kluster.

Aturan penamaan: Domain terdiri dari satu atau lebih bagian yang dipisahkan oleh titik (.). Setiap bagian dapat memiliki panjang hingga 63 karakter dan dapat berisi huruf kecil, angka, dan tanda hubung (-). Setiap bagian harus dimulai dan diakhiri dengan huruf kecil atau angka.

cluster.local

encryption_provider_key

string

No

ID kunci KMS yang digunakan untuk mengenkripsi disk data. Untuk informasi lebih lanjut, lihat Key Management Service.

Catatan

Fitur ini hanya berlaku di kluster terkelola ACK Pro.

0fe64791-55eb-4fc7-84c5-c6c7cdca****

service_account_issuer

string

No

ServiceAccount adalah kredensial akses untuk komunikasi antara Pod dan API Server kluster. service-account-issuer adalah identitas penerbit dalam token serviceaccount, yang merupakan bidang iss dalam muatan token.

Untuk informasi lebih lanjut tentang ServiceAccount, lihat Menerapkan proyeksi volume token akun layanan.

kubernetes.default.svc

api_audiences

string

No

ServiceAccount adalah kredensial akses untuk komunikasi antara Pod dan API Server kluster. api-audiences adalah identitas token permintaan yang valid, digunakan oleh apiserver untuk mengautentikasi apakah token permintaan valid. Beberapa audiences didukung, dipisahkan oleh koma (,).

Untuk informasi lebih lanjut tentang ServiceAccount, lihat Menerapkan proyeksi volume token akun layanan.

kubernetes.default.svc

extra_sans

array

No

SAN (Subject Alternative Name) sertifikat API Server kustom.

string

No

SAN sertifikat. Mendukung alamat IP atau nama domain kustom.

192.168.xx.xx

maintenance_window maintenance_window

No

Jendela pemeliharaan kluster.

operation_policy

object

No

Kebijakan O&M otomatis kluster.

cluster_auto_upgrade

object

No

Konfigurasi peningkatan otomatis kluster.

enabled

boolean

No

Apakah akan mengaktifkan peningkatan otomatis kluster.

  • true: Aktifkan.

  • false: Jangan aktifkan.

true

channel

string

No

Frekuensi peningkatan otomatis kluster. Nilai valid:

  • patch: Secara otomatis meningkatkan ke versi patch yang tersedia dari versi minor saat ini. Versi Kubernetes baru tidak mengandung perubahan yang merusak.

  • stable: Secara otomatis meningkatkan ke versi patch terbaru dari versi minor kedua-terbaru. Versi Kubernetes baru mungkin melibatkan perubahan API dan fitur, tetapi stabilitasnya telah divalidasi secara luas.

  • rapid: Secara otomatis meningkatkan ke versi patch terbaru dari versi minor terbaru untuk mendapatkan fitur komunitas Kubernetes baru lebih cepat.

stable

addons

array

No

Daftar komponen kluster. Tentukan komponen yang akan diinstal saat membuat kluster menggunakan addons.

Komponen jaringan: Wajib. Pilih antara tipe jaringan Flannel dan Terway:

  • Jaringan Flannel: [{"name":"flannel","config":""}].

  • Jaringan Terway: [{"name": "terway-eniip","config": ""}].

Komponen penyimpanan: Opsional. Hanya tipe csi yang didukung:

csi: [{"name":"csi-plugin","config": ""},{"name": "csi-provisioner","config": ""}].

Komponen log: Opsional. Kami menyarankan Anda mengaktifkan komponen ini. Jika layanan log tidak diaktifkan, fitur audit kluster tidak tersedia.

  • Gunakan Proyek SLS yang ada: [{"name": "loongcollector","config": "{"IngressDashboardEnabled":"true","sls_project_name":"your_sls_project_name"}"}].

  • Buat Proyek SLS baru: [{"name": "loongcollector","config": "{"IngressDashboardEnabled":"true"}"}].

Komponen Ingress: Opsional. Kluster khusus ACK menginstal komponen Ingress nginx-ingress-controller secara default.

  • Instal Ingress dengan akses jaringan publik: [{"name":"nginx-ingress-controller","config":"{"IngressSlbNetworkType":"internet"}"}].

  • Nonaktifkan instalasi Ingress default: [{"name": "nginx-ingress-controller","config": "","disabled": true}].

Pusat Insiden: Opsional. Diaktifkan secara default.

Pusat Insiden menyediakan kemampuan penyimpanan, kueri, dan peringatan untuk event Kubernetes. penyimpanan log yang terkait dengan Pusat Insiden Kubernetes gratis selama 90 hari. Untuk informasi lebih lanjut tentang kebijakan gratis, lihat Membuat dan menggunakan pusat insiden Kubernetes.

Contoh mengaktifkan Pusat Insiden: [{"name":"ack-node-problem-detector","config":"{"sls_project_name":"your_sls_project_name"}"}].

addon

No

Daftar komponen kluster. Tentukan komponen yang akan diinstal saat membuat kluster menggunakan addons.

nodepools

array

No

Daftar kelompok node.

nodepool

No

Konfigurasi kelompok node.

user_ca

string

No

CA kluster kustom.

-----BEGIN CERTIFICATE-----****

control_plane_config

object

No

Konfigurasi lapisan kontrol kluster khusus ACK.

charge_type

string

No

Metode penagihan node lapisan kontrol.

  • PrePaid: Langganan.

  • PostPaid: Bayar sesuai pemakaian.

Nilai default: PostPaid.

PostPaid

period

integer

No

Durasi langganan node lapisan kontrol. Valid dan wajib ketika metode penagihan adalah PrePaid.

Nilai valid: {1, 2, 3, 6, 12, 24, 36, 48, 60}. Unit: bulan.

Nilai default: 1.

1

period_unit

string

No

Unit periode langganan node lapisan kontrol. Valid dan wajib ketika metode penagihan adalah PrePaid.

Nilai valid: Month. Saat ini, hanya periode bulanan yang didukung.

Month

auto_renew

boolean

No

Apakah akan mengaktifkan perpanjangan otomatis untuk node lapisan kontrol. Berlaku ketika metode penagihan adalah PrePaid.

  • true: Aktifkan perpanjangan otomatis.

  • false: Jangan aktifkan perpanjangan otomatis.

Nilai default: true.

true

auto_renew_period

integer

No

Periode perpanjangan otomatis node lapisan kontrol.

Nilai valid: {1, 2, 3, 6, 12}. Unit: bulan.

Nilai default: 1.

1

instance_types

array

No

Tipe instans node.

string

No

Tipe instans node.

ecs.g6.large

image_type

string

No

Tipe image sistem operasi.

AliyunLinux3

image_id

string

No

ID image.

aliyun_3_x64_20G_alibase_20240819.vhd

key_pair

string

No

Nama key pair. Saling eksklusif dengan login_password.

ack

login_password

string

No

Kata sandi logon SSH. Harus 8 hingga 30 karakter dan mengandung setidaknya tiga dari berikut: huruf besar, huruf kecil, angka, dan karakter khusus. Saling eksklusif dengan key_pair.

********

system_disk_category

string

No

Tipe disk sistem node.

  • cloud_efficiency: Disk ultra.

  • cloud_ssd: SSD standar.

  • cloud_essd: ESSD.

  • cloud_auto: ESSD AutoPL.

  • `cloud_essd

cloud_ssd

system_disk_size

integer

No

Ukuran cloud disk sistem node.

Nilai valid: [40,500]. Unit: GiB.

Nilai default: 120.

120

system_disk_snapshot_policy_id

string

No

Kebijakan cadangan snapshot otomatis untuk node.

sp-2zej1nogjvovnz4z****

system_disk_performance_level

string

No

Tingkat kinerja cloud disk sistem node. Parameter ini hanya berlaku untuk cloud disk ESSD.

Tingkat kinerja bervariasi berdasarkan ukuran cloud disk. Untuk informasi lebih lanjut, lihat Cloud disk ESSD.

PL1

system_disk_provisioned_iops

integer

No

IOPS baca/tulis yang disediakan untuk cloud disk sistem node.

Nilai valid: 0 hingga min{50.000, 1000 × kapasitas - kinerja dasar}. Kinerja dasar = min{1.800 + 50 × kapasitas, 50000}.

Parameter ini hanya didukung ketika system_disk_category diatur ke cloud_auto.

1000

system_disk_bursting_enabled

boolean

No

Apakah akan mengaktifkan burst (lonjakan performa) untuk cloud disk sistem node.

  • true: Diaktifkan.

  • false: Tidak diaktifkan.

Parameter ini hanya didukung ketika system_disk_category diatur ke cloud_auto.

true

deploymentset_id

string

No

ID set penyebaran.

ds-bp10b35imuam5amw****

cloud_monitor_flags

boolean

No

Apakah akan menginstal CloudMonitor pada node.

  • true: Menginstal Agen CloudMonitor.

  • false: Tidak menginstal Agen CloudMonitor.

Nilai default: false.

false

instance_metadata_options InstanceMetadataOptions

No

Konfigurasi akses metadata instans untuk Instance ECS.

soc_enabled

boolean

No

Apakah akan mengaktifkan penguatan keamanan MLPS 2.0.

  • true: Mengaktifkan penguatan keamanan MLPS 2.0.

  • false: Tidak mengaktifkan penguatan keamanan MLPS 2.0.

Nilai default: false.

false

security_hardening_os

boolean

No

Apakah akan mengaktifkan penguatan keamanan OS Alibaba Cloud.

  • true: Mengaktifkan penguatan keamanan OS Alibaba Cloud.

  • false: Tidak mengaktifkan penguatan keamanan OS Alibaba Cloud.

Nilai default: false.

false

cpu_policy

string

No

Kebijakan manajemen CPU node.

  • static: Memungkinkan pod dengan karakteristik resource tertentu pada node diberikan afinitas CPU dan eksklusivitas yang ditingkatkan.

  • none: Menggunakan skema afinitas CPU default yang ada.

Nilai default: none.

none

runtime

string

No

Bidang ini sudah tidak digunakan. Runtime kontainer untuk node lapisan kontrol. Nilai valid:

containerd: Runtime Containerd, yang mendukung semua versi kluster. [_single.params.body.props

containerd

node_port_range

string

No

Bidang ini sudah tidak digunakan. Range port layanan node.

30000-32767

size

integer

No

Jumlah node lapisan kontrol.

Nilai valid: 3 atau 5.

3

custom_san deprecated

string

No

Bidang ini sudah tidak digunakan. Gunakan parameter extra_sans sebagai gantinya.

Subject Alternative Name (SAN) sertifikat kustom. Pisahkan beberapa alamat IP atau nama domain dengan koma (,).

cs.aliyun.com

runtime deprecated runtime

No

The container runtime of the cluster. Supported runtimes include containerd, sandboxed containers, and Docker.

Catatan

Kubernetes 1.24 no longer supports Docker as a built-in container runtime.

For more information, see Comparison among Docker, containerd, and sandboxed container runtimes.

node_name_mode deprecated

string

No

Bidang ini sudah tidak digunakan. Untuk konfigurasi kelompok node, gunakan parameter node_name_mode di bawah kubernetes_config dalam nodepool.

null

user_data deprecated

string

No

This field is deprecated. The custom node data.

IyEvdXNyL2Jpbi9iYXNoCmVjaG8gIkhlbGxvIEFD****

image_id deprecated

string

No

This field is deprecated. For control plane configurations, use the image_id parameter under control_plane_config instead. For node pool configurations, use the image_id parameter under scaling_group in nodepool instead.

The custom node image. 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

No

This field is deprecated. For node pool configurations, use the rds_instances parameter under scaling_group in nodepool instead.

The list of RDS instances. Select the RDS instances that you want to add to the whitelist. Go to the RDS console to add the container pod CIDR block and node CIDR block. Configuring RDS instances may fail if the instances are not in the running state.

string

No

The list of RDS instances. Select the RDS instances that you want to add to the whitelist. Go to the RDS console to add the container pod CIDR block and node CIDR block. Configuring RDS instances may fail if the instances are not in the running state.

rm-2zev748xi27xc****

taints deprecated

array

No

This field is deprecated. For node pool configurations, use the taints parameter under kubernetes_config in nodepool instead.

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

No

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.

cloud_monitor_flags deprecated

boolean

No

This field is deprecated. For control plane node configurations, use the cloud_monitor_flags parameter under control_plane_config instead. For node pool configurations, use the cms_enabled parameter under kubernetes_config in nodepool instead.

Specifies whether to install the CloudMonitor agent on the cluster. Valid values:

  • true: Installs the CloudMonitor agent.

  • false: Does not install the CloudMonitor agent.

Default value: false.

false

platform deprecated

string

No

This field is deprecated. For node pool configurations, use the platform parameter under scaling_group in nodepool instead.

The operating system distribution. Valid values:

  • CentOS

  • AliyunLinux

  • QbootAliyunLinux

  • Qboot

  • Windows

  • WindowsCore

Default value: CentOS.

CentOS

os_type deprecated

string

No

This field is deprecated. For control plane node configurations, use the image_type parameter under control_plane_config instead. For node pool configurations, use the image_type parameter under scaling_group in nodepool instead.

The operating system platform type. Valid values:

  • Windows

  • Linux

Default value: Linux.

Linux

soc_enabled deprecated

boolean

No

This field is deprecated. For control plane node configurations, use the soc_enabled parameter under control_plane_config instead. For node pool configurations, use the soc_enabled parameter under scaling_group in nodepool instead.

MLPS 2.0 security hardening. For more information, see ACK MLPS 2.0 security hardening usage instructions.

Valid values:

  • true: Enables MLPS 2.0 security hardening.

  • false: Does not enable MLPS 2.0 security hardening.

Default value: false.

false

security_hardening_os deprecated

boolean

No

This field is deprecated. For control plane configurations, use the security_hardening_os parameter under control_plane_config instead. For node pool configurations, use the security_hardening_os parameter under scaling_group in nodepool instead.

Alibaba Cloud OS security hardening. Valid values:

  • true: Enables Alibaba Cloud OS security hardening.

  • false: Does not enable Alibaba Cloud OS security hardening.

Default value: false.

false

cis_enabled deprecated

boolean

No

This field is deprecated. For control plane configurations, use the security_hardening_os parameter under control_plane_config instead. For node pool configurations, use the security_hardening_os parameter under scaling_group in nodepool instead.

false

cpu_policy deprecated

string

No

This field is deprecated. For control plane configurations, use the cpu_policy parameter under control_plane_config instead. For node pool configurations, use the cpu_policy parameter under kubernetes_config in nodepool instead.

The node CPU management policy. The following policies are supported for cluster versions 1.12.6 and later:

  • static: Allows pods with certain resource characteristics on the node to be granted enhanced CPU affinity and exclusivity.

  • none: Uses the existing default CPU affinity scheme.

Default value: none.

none

node_port_range deprecated

string

No

The node service port range. Valid values: [30000,65535].

Default value: 30000-32767.

30000~32767

master_vswitch_ids deprecated

array

No

This field is deprecated. Use the vswitch_ids parameter instead.

The list of vSwitch IDs for master nodes. The number of vSwitches ranges from [1,3]. To ensure high availability, select three vSwitches distributed across different zones.

The number of specified instance types must match the value of master_count and correspond one-to-one with the elements in master_vswitch_ids.

string

No

The list of vSwitch IDs for master nodes. The number of vSwitches ranges from [1,3]. To ensure high availability, select three vSwitches distributed across different zones.

The number of specified instance types must match the value of master_count and correspond one-to-one with the elements in master_vswitch_ids.

vsw-2ze3ds0mdip0hdz8i****

key_pair deprecated

string

No

This field is deprecated. For control plane configurations, use the key_pair parameter under control_plane_config instead. For node pool configurations, use the key_pair parameter under scaling_group in nodepool instead.

The key pair name. Mutually exclusive with login_password.

security-key

login_password deprecated

string

No

This field is deprecated. For control plane configurations, use the login_password parameter under control_plane_config instead. For node pool configurations, use the login_password parameter under scaling_group in nodepool instead.

The SSH logon password. Mutually exclusive with key_pair. The password must be 8 to 30 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters.

null

master_count deprecated

integer

No

This field is deprecated. For control plane configurations, use the size parameter under control_plane_config instead.

The number of master nodes. Valid values: 3 or 5.

Default value: 3.

3

master_instance_types deprecated

array

No

This field is deprecated. For control plane configurations, use the instance_types parameter under control_plane_config instead.

The instance types for master nodes. For more information, see Instance families.

string

No

The instance types for master nodes. The number of specified instance types must match the value of master_count and correspond one-to-one with the elements in master_instance_types. For more information, see Instance families.

ecs.n4.xlarge

master_system_disk_category deprecated

string

No

This field is deprecated. For control plane configurations, use the system_disk_category parameter under control_plane_config instead.

The system cloud disk type for master nodes. Valid values:

  • cloud_efficiency: ultra cloud disk.

  • cloud_ssd: standard SSD.

  • cloud_essd: ESSD.

Default value: cloud_ssd. The default value may vary by zone.

cloud_ssd

master_system_disk_size deprecated

integer

No

This field is deprecated. For control plane configurations, use the system_disk_size parameter under control_plane_config instead.

The system cloud disk size for master nodes. Valid values: [40,500]. Unit: GiB.

Default value: 120.

120

master_system_disk_performance_level deprecated

string

No

This field is deprecated. For control plane configurations, use the system_disk_performance_level parameter under control_plane_config instead.

The performance level of the system cloud disk for cluster master nodes. This parameter takes effect only for ESSD cloud disks. The performance level varies based on the cloud disk size. For more information, see ESSD cloud disks.

PL1

master_system_disk_snapshot_policy_id deprecated

string

No

This field is deprecated. For control plane configurations, use the system_disk_snapshot_policy_id parameter under control_plane_config instead.

The automatic snapshot policy ID for the master node system cloud disk.

sp-2zej1nogjvovnz4z****

master_instance_charge_type deprecated

string

No

This field is deprecated. For control plane configurations, use the instance_charge_type parameter under control_plane_config instead.

The billing method for master nodes. Valid values:

  • PrePaid: subscription.

  • PostPaid: pay-as-you-go.

Default value: PostPaid.

PrePaid

master_period_unit deprecated

string

No

This field is deprecated. For control plane configurations, use the period_unit parameter under control_plane_config instead.

The billing period unit for master nodes. This parameter is required when the billing method is PrePaid.

Valid values: Month. Only monthly billing is supported.

Month

master_period deprecated

integer

No

This field is deprecated. For control plane configurations, use the unit parameter under control_plane_config instead.

The subscription duration for master nodes. This parameter takes effect and is required only when master_instance_charge_type is set to PrePaid.

Valid values: {1, 2, 3, 6, 12, 24, 36, 48, 60}.

Default value: 1.

1

master_auto_renew deprecated

boolean

No

This field is deprecated. For control plane configurations, use the auto_renew parameter under control_plane_config instead.

Specifies whether to enable auto-renewal for master nodes. This parameter takes effect only when master_instance_charge_type is set to PrePaid. Valid values:

  • true: Enables auto-renewal.

  • false: Disables auto-renewal.

Default value: true.

true

master_auto_renew_period deprecated

integer

No

This field is deprecated. For control plane configurations, use the auto_renew_period parameter under control_plane_config instead.

The auto-renewal period 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

No

This field is deprecated. For node pool configurations, use the desired_size parameter under scaling_group in nodepool instead.

The number of worker nodes. Valid values: [0, 100].

3

worker_vswitch_ids deprecated

array

No

This field is deprecated. For node pool configurations, use the vswitch_ids parameter under scaling_group in nodepool instead.

The list of vSwitches used by cluster nodes. Each node corresponds to one value.

When creating a zero-node managed cluster, the worker_vswitch_ids field is not required, but you must provide vswitch_ids.

string

No

The list of vSwitches for worker nodes. Valid values: [1,20]. To ensure high availability, select vSwitches in different zones.

When creating a zero-node managed cluster, the worker_vswitch_ids field is not required, but you must provide vswitch_ids.

vsw-2ze3ds0mdip0hdz8i****

worker_instance_types deprecated

array

No

This field is deprecated. For node pool configurations, use the instance_types parameter under scaling_group in nodepool instead.

The instance configuration for worker nodes.

string

No

The instance types for worker nodes. Specify at least one instance type. For more information, see Instance families.

Catatan

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 instance type in the list.

ecs.n4.large

worker_system_disk_category deprecated

string

No

This field is deprecated. For node pool configurations, use the system_disk_category parameter under scaling_group in nodepool instead.

The system cloud disk type for worker nodes. For more information, see Block storage overview.

Valid values:

  • cloud_efficiency: ultra cloud disk.

  • cloud_ssd: standard SSD.

Default value: cloud_ssd.

cloud_efficiency

worker_system_disk_size deprecated

integer

No

This field is deprecated. For node pool configurations, use the system_disk_size parameter under scaling_group in nodepool instead.

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.

120

worker_system_disk_snapshot_policy_id deprecated

string

No

This field is deprecated. For node pool configurations, use the system_disk_snapshot_policy_id parameter under scaling_group in nodepool instead.

The automatic snapshot policy ID for the worker node system cloud disk.

sp-2zej1nogjvovnz4z****

worker_system_disk_performance_level deprecated

string

No

This field is deprecated. For node pool configurations, use the system_disk_performance_level parameter under scaling_group in nodepool instead.

When the system cloud disk is an ESSD, you can set the performance level (PL) of the ESSD. For more information, see ESSD cloud disks.

Valid values:

  • PL0

  • PL1

  • PL2

  • PL3

PL1

worker_data_disks deprecated

array<object>

No

This field is deprecated. For node pool configurations, use the data_disks parameter under scaling_group in nodepool instead.

The data cloud disk type, size, and other configurations for worker nodes.

object

No

The data cloud disk configuration.

category

string

Yes

The data cloud disk type.

cloud_essd

encrypted

string

No

Specifies whether to encrypt the data cloud disk. Valid values:

  • true: Encrypts the data cloud disk.

  • false: Does not encrypt the data cloud disk.

Default value: false.

true

size

string

Yes

The data cloud disk size. Valid values: 40 to 32767. Unit: GiB.

120

performance_level

string

No

The performance level of the node data cloud disk. This parameter takes effect only for ESSD cloud disks.

PL1

worker_instance_charge_type deprecated

string

No

This field is deprecated. For node pool configurations, use the instance_charge_type parameter under scaling_group in nodepool instead.

The billing method for worker nodes. Valid values:

  • PrePaid: subscription.

  • PostPaid: pay-as-you-go.

Default value: pay-as-you-go.

PrePaid

worker_period_unit deprecated

string

No

This field is deprecated. For node pool configurations, use the period_unit parameter under scaling_group in nodepool instead.

The billing period unit for worker nodes. This parameter is required when the billing method is PrePaid.

Valid values: Month. Only monthly billing is supported.

Month

worker_period deprecated

integer

No

This field is deprecated. For node pool configurations, use the period parameter under scaling_group in nodepool instead.

The subscription duration for worker nodes. This parameter takes effect and is required only when `worker_

1

worker_auto_renew deprecated

boolean

No

This field is deprecated. Use the auto_renew parameter under scaling_group in nodepool for node pool configuration instead.

Specifies whether to enable auto-renewal for worker nodes. This parameter takes effect only when worker_instance_charge_type is set to PrePaid. Valid values:

  • true: Auto-renewal is enabled.

  • false: Auto-renewal is disabled.

Default value: true.

true

worker_auto_renew_period deprecated

integer

No

This field is deprecated. Use the auto_renew_period parameter under scaling_group in nodepool for node pool configuration instead.

The auto-renewal epoch for 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

No

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.

When creating a cluster with existing nodes, specify a list of ECS instances. These instances are added to the cluster as worker nodes.

Catatan

This field is required when creating a cluster with existing instances.

string

No

When creating a cluster with existing nodes, specify a list of ECS instances. These instances are added to the cluster as worker nodes.

Catatan

This field is required when creating a cluster with existing instances.

i-2ze4zxnm36vq00xn****

format_disk deprecated

boolean

No

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 when creating a cluster with existing instances. Valid values:

  • true: Stores containers and images on data cloud disks. Existing data on the data cloud disks is lost. Back up your data in advance.

  • false: Does not store containers and images on data cloud disks.

Default value: false.

Data cloud disk mounting rules:

  • If the ECS instance has data cloud disks attached and the file system of the last data cloud disk is not initialized, the system automatically formats the data cloud disk as ext4 to store /var/lib/docker and /var/lib/kubelet.

  • If the ECS instance has no data cloud disks attached, no new data cloud disks are mounted.

false

keep_instance_name deprecated

boolean

No

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.

  • true: Retained.

  • false: Not retained. Instance names are replaced by system-generated names.

Default value: true.

true

service_discovery_types deprecated

array

No

This field is deprecated. The in-cluster service discovery type, used to specify the service discovery method in ACK Serverless clusters.

  • CoreDNS: Uses the Kubernetes-native standard service discovery component CoreDNS. A set of containers must be deployed in the cluster for DNS resolution. By default, two ECI instances with 0.25 Core and 512 MiB specifications are used.

  • PrivateZone: Uses Alibaba Cloud PrivateZone to provide service discovery capabilities. The PrivateZone service must be activated.

Default value: disabled.

string

No

The in-cluster service discovery type, used to specify the service discovery method in ACK Serverless clusters.

  • CoreDNS: Uses the Kubernetes-native standard service discovery component CoreDNS. A set of containers must be deployed in the cluster for DNS resolution. By default, two ECI instances with 0.25 Core and 512 MiB specifications are used.

  • PrivateZone: Uses Alibaba Cloud PrivateZone to provide service discovery capabilities. The PrivateZone service must be activated.

Default value: disabled.

PrivateZone

nat_gateway deprecated

boolean

No

This field is deprecated. Use the snat_entry parameter instead.

true

zone_id deprecated

string

No

This field is deprecated. Use the zone_ids parameter instead.

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 vpc_id and vswitch_ids are not specified, you must specify zone_id for the cluster to automatically create a VPC and network resources in the specified zone. This parameter does not take effect when vpc_id and vswitch_ids are specified.

cn-beiji****

logging_type deprecated

string

No

This field is deprecated. Enables the log service for the cluster. This parameter takes effect only for ACK Serverless clusters, and the value must be SLS.

SLS

disable_rollback deprecated

boolean

No

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:

  • true: Performs rollback when cluster creation fails.

  • false: Does not perform rollback when cluster creation fails.

Default value: true.

true

timeout_mins deprecated

integer

No

This field is deprecated. By default, rollback is not performed when cluster creation fails. You must manually clean up the failed cluster.

The cluster creation timeout period, in minutes.

Default value: 60.

60

image_type deprecated

string

No

This field is deprecated. For cluster control plane configuration, use the image_type parameter under control_plane_config instead. For node pool configuration, use the image_type parameter under scaling_group in nodepool instead.

The operating system distribution type. We recommend that you use this field to specify the node operating system. Valid values:

  • CentOS

  • AliyunLinux

  • AliyunLinux Qboot

  • AliyunLinuxUEFI

  • AliyunLinux3

  • Windows

  • WindowsCore

  • AliyunLinux3Arm64

  • ContainerOS

Default value: CentOS.

AliyunLinux

load_balancer_spec deprecated

string

No

This parameter is deprecated. CLB uses pay-by-usage billing. This parameter does not take effect.

The load balancing specification. Valid values:

  • slb.s1.small

  • slb.s2.small

  • slb.s2.medium

  • slb.s3.small

  • slb.s3.medium

  • slb.s3.large

Default value: slb.s2.small.

slb.s2.small

enable_rrsa deprecated

boolean

No

This field is deprecated. Use the rrsa_config parameter instead.

Specifies whether to enable the RRSA feature.

  • true: Enabled.

  • false: Disabled.

false

charge_type deprecated

string

No

This field is deprecated.

The billing method of the CLB instance used by the API server. Default value: PostPaid. Valid values:

  • PostPaid: pay-as-you-go.

  • PrePaid: subscription. The subscription billing method is no longer supported for newly created CLB instances. Existing instances are not affected.

Penting

For more information, see Notice on Classic Load Balancer (CLB) billing item adjustments.

PostPaid

period_unit deprecated

string

No

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

No

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

No

This field is deprecated.

Specifies whether to enable auto-renewal. This parameter takes effect only when charge_type is set to PrePaid. Valid values:

  • true: Auto-renewal is enabled.

  • false: Auto-renewal is disabled.

Default value: false.

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

No

This field is deprecated.

The auto-renewal epoch. This parameter takes effect only when the subscription billing method and auto-renewal are selected. When PeriodUnit=Month, valid values: {1, 2, 3, 6, 12}.

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

No

This field is deprecated. The access control list for the API server SLB of the registered cluster.

string

No

The access control list for the API server SLB of the registered cluster.

192.168.XX.XX/24

Elemen respons

Element

Type

Description

Example

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

Contoh

Respons sukses

JSONformat

{
  "cluster_id": "cb95aa626a47740afbf6aa099b650****",
  "request_id": "687C5BAA-D103-4993-884B-C35E4314****",
  "task_id": "T-5a54309c80282e39ea****"
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.