Kubernetes
Import
Kubernetes cluster can be imported using the id, e.g. Then complete the main.tf accords to the result of terraform plan
.
$ pulumi import alicloud:cs/kubernetes:Kubernetes main cluster-id
Properties
A list of API audiences for Service Account Token Volume Projection. Set this to ["https://kubernetes.default.svc"]
if you want to enable the Token Volume Projection feature (requires specifying service_account_issuer
as well. From cluster version 1.22+, Service Account Token Volume Projection will be enabled by default.
Enable to create advanced security group. default: false. See Advanced security group.
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.
The cluster api server load balance instance specification, default slb.s1.small
. For more information on how to select a LB instance specification, see SLB instance overview.
Master node system disk performance level. When master_disk_category
values cloud_essd
, the optional values are PL0
, PL1
, PL2
or PL3
, but the specific performance level is related to the disk capacity. For more information, see Enhanced SSDs. Default is PL1
.
Whether to create a new nat gateway while creating kubernetes cluster. Default to true. Then openapi in Alibaba Cloud are not all on intranet, So turn this option on is a good choice. Your cluster nodes and applications will have public network access. If there is a NAT gateway in the selected VPC, ACK will use this gateway by default; if there is no NAT gateway in the selected VPC, ACK will create a new NAT gateway for you and automatically configure SNAT rules.
Each node name consists of a prefix, an IP substring, and a suffix, the input format is customized,<prefix>,IPSubStringLen,<suffix>
. For example "customized,aliyun.com-,5,-test", if the node IP address is 192.168.59.176, the prefix is aliyun.com-, IP substring length is 5, and the suffix is -test, the node name will be aliyun.com-59176-test.
The runtime of containers. If you select another container runtime, see How do I select between Docker and Sandboxed-Container. Detailed below.
The issuer of the Service Account token for Service Account Token Volume Projection, corresponds to the iss
field in the token payload. Set this to "https://kubernetes.default.svc"
to enable the Token Volume Projection feature (requires specifying api_audiences
as well). From cluster version 1.22+, Service Account Token Volume Projection will be enabled by default.
(Optional, Available in 1.103.2+) Taints ensure pods are not scheduled onto inappropriate nodes. One or more taints are applied to a node; this marks that the node should not accept any pods that do not tolerate the taints. For more information, see Taints and Tolerations. Detailed below.
(Optional, Available in 1.81.0+) Custom data that can execute on nodes. For more information, see Prepare user data.
Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used and no upgrades will occur except you set a higher version number. The value must be configured and increased to upgrade the version when desired. Downgrades are not supported by ACK.
(Optional, Available in 1.120.0+) Worker node system disk performance level, when worker_disk_category
values cloud_essd
, the optional values are PL0
, PL1
, PL2
or PL3
, but the specific performance level is related to the disk capacity. For more information, see Enhanced SSDs. Default is PL1
.