All Products
Search
Document Center

Container Service for Kubernetes:DiskInit

Last Updated:Nov 12, 2026

Parameter

Type

Description

Example

object

The block device initialization configuration.

disk_name

string

The unique identifier of a disk in the node pool.

  • When local_disk is false, it must match a disk_name in scaling_group.data_disks.

  • When local_disk is true, it must differ from any disk_name in scaling_group.data_disks.

disk0

local_disk

boolean

The configuration for local disks. When set to true:

  • Matches a local disk when no match is found through the ECS DiskName and symbolic links.

  • Reinitializes the disk on boot if it is detected as uninitialized.

  • Requires mount_target and mkfs_type to be both set or both unset.

  • When used in combination with mount_for_runtime, if the local disk is reinitialized, the node must be removed from and then re-imported into the node pool.

mkfs_type

string

The file system type for automatic formatting. Leave this field empty to skip formatting.

ext4

mount_for_runtime

boolean

The disk used to store container runtime data.

mount_target

string

The mount directory. Leave this field empty to skip mounting.

/mnt/disk0