All Products
Search
Document Center

Container Service for Kubernetes:data_disk

Last Updated:Nov 07, 2024
ParameterTypeDescriptionExample
object

The configurations of the node data disk.

categorystring

The type of data disk. Valid values:

  • cloud: basic disk.
  • cloud_efficiency: ultra disk.
  • cloud_ssd: standard SSD.
  • cloud_essd: Enterprise SSD (ESSD).
  • cloud_auto: ESSD AutoPL disk.
  • cloud_essd_entry: ESSD Entry disk.
  • elastic_ephemeral_disk_premium: premium elastic ephemeral disk.
  • elastic_ephemeral_disk_standard: standard elastic ephemeral disk.

Default value: cloud_efficiency.

cloud_ssd
sizelong

The data disk size. Unit: GiB.

Valid values: 40 to 32768.

Default value: 120

40
encryptedstring

Specifies whether to encrypt the data disk. Valid values:

  • true: encrypts the data disk.
  • false: does not encrypt the data disk.

Default value: false.

true
kms_key_idstring

The ID of the Key Management Service (KMS) key that is used to encrypt the data disk.

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

The ID of the automatic snapshot policy. The system performs automatic backup for a cloud disk based on the specified automatic snapshot policy.

By default, this parameter is empty, which indicates that automatic backup is disabled.

sp-2zej1nogjvovnz4z****
performance_levelstring

The performance level (PL) of the data disk. This parameter takes effect only for an ESSD. You can specify a higher PL if you increase the size of a data disk. For more information, see ESSDs .

PL1
provisioned_iopslong

The preset IOPS of the data disk. Valid values: 0 to min{50,000, 1,000 × Capacity - Baseline IOPS} Baseline IOPS = min{1,800 + 50 × Capacity, 50,000}.

This parameter is available only if DiskCategory is set to cloud_auto. For more information, see ESSD AutoPL disks.

1000
bursting_enabledboolean

Specifies whether to enable the burst feature for the data disk. Valid values:

  • true: enables the burst feature.
  • false: disables the burst feature.

This parameter is available only if you set DiskCategory to cloud_auto. For more information, see ESSD AutoPL disks.

true
auto_formatboolean

Specifies whether to automatically mount the data disk.

true
file_systemstring

The file system that is mounted. This parameter takes effect only if auto_format is set to true. Valid values: ext4 and xfs.

ext4
mount_targetstring

The path to which the data disk is mounted. This parameter takes effect only if auto_format is set to true.

/mnt/path1
disk_namestring

The data disk name. The name must be 2 to 128 characters in length It must start with a letter and cannot start with http:// or https://. The description can contain letters, digits, colons (:), underscores (_), and hyphens (-).

DataDiskName
devicestring

The mount point of data disk N. If you do not specify this parameter, the system automatically assigns a mount target when you create an Elastic Compute Service (ECS) instance. Valid values: /dev/xvdb to /dev/xvdz.

/dev/xvdb
snapshot_idstring

The ID of the snapshot that you want to use to create the data disk. If this parameter is specified, the specified size of the data disk is ignored. The size of the disk equals the size of the specified snapshot. If the snapshot was created on or before July 15, 2013, the API request is rejected and the InvalidSnapshot.TooOld message is returned.

s-280s7****