Node Pool
Import
Cluster nodepool can be imported using the id, e.g. Then complete the nodepool.tf accords to the result of pulumi preview
.
$ pulumi import alicloud:cs/nodePool:NodePool custom_nodepool cluster_id:nodepool_id
Properties
Whether enable worker node to support cis security reinforcement, its valid value true
or false
. Default to false
and apply to AliyunLinux series. See CIS Reinforcement.
After you select this check box, if data disks have been attached to the specified ECS instances and the file system of the last data disk is uninitialized, the system automatically formats the last data disk to ext4 and mounts the data disk to /var/lib/docker and /var/lib/kubelet. The original data on the disk will be cleared. Make sure that you back up data in advance. If no data disk is mounted on the ECS instance, no new data disk will be purchased. Default is false
.
An KMS encryption context used to decrypt kms_encrypted_password
before creating or updating a cs kubernetes with kms_encrypted_password
. See Encryption Context. It is valid when kms_encrypted_password
is set.
Kubelet configuration parameters for worker nodes. See kubelet_configuration
below. More information in Kubelet Configuration.
A List of Kubernetes labels to assign to the nodes . Only labels that are applied with the ACK API are managed by this argument. Detailed below. More information in Labels. See labels
below.
Each node name consists of a prefix, its private network IP, and a suffix, the input format is customized,<prefix>,ip,<suffix>
. For example "customized,aliyun.com-,ip,-test", if the node private network IP address is 192.168.59.176, the prefix is aliyun.com-,and the suffix is -test, the node name will be aliyun.com-192.168.59.176-test.
The runtime name of containers. If not set, the cluster runtime will be used as the node pool runtime. If you select another container runtime, see Comparison of Docker, containerd, and Sandboxed-Container.
Auto scaling node pool configuration. See scaling_config
below. With auto-scaling is enabled, the nodes in the node pool will be labeled with k8s.aliyun.com=true
to prevent system pods such as coredns, metrics-servers from being scheduled to elastic nodes, and to prevent node shrinkage from causing business abnormalities.
The scaling mode. Valid values: release
, recycle
, default is release
. Standard mode(release): Create and release ECS instances based on requests.Swift mode(recycle): Create, stop, and restart ECS instances based on needs. New ECS instances are only created when no stopped ECS instance is avalible. This mode further accelerates the scaling process. Apart from ECS instances that use local storage, when an ECS instance is stopped, you are only chatged for storage space.
Whether enable worker node to support soc security reinforcement, its valid value true
or false
. Default to false
and apply to AliyunLinux series. See SOC Reinforcement.
A List of Kubernetes taints to assign to the nodes. Detailed below. More information in Taints and Toleration. See taints
below.