pulumi-alicloud 3.62.0a1724909097__py3-none-any.whl → 3.62.0a1725600316__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-alicloud might be problematic. Click here for more details.
- pulumi_alicloud/brain/get_industrial_pid_loops.py +18 -2
- pulumi_alicloud/brain/get_industrial_pid_organizations.py +12 -2
- pulumi_alicloud/brain/get_industrial_pid_projects.py +18 -2
- pulumi_alicloud/brain/get_industrial_serice.py +6 -2
- pulumi_alicloud/brain/industrial_pid_loop.py +6 -2
- pulumi_alicloud/brain/industrial_pid_organization.py +4 -4
- pulumi_alicloud/brain/industrial_pid_project.py +4 -4
- pulumi_alicloud/cas/certificate.py +155 -13
- pulumi_alicloud/cas/service_certificate.py +9 -30
- pulumi_alicloud/cdn/real_time_log_delivery.py +2 -2
- pulumi_alicloud/cen/get_transit_router_route_tables.py +81 -14
- pulumi_alicloud/cen/outputs.py +6 -2
- pulumi_alicloud/cfg/remediation.py +6 -2
- pulumi_alicloud/clickhouse/account.py +2 -2
- pulumi_alicloud/clickhouse/backup_policy.py +2 -2
- pulumi_alicloud/cloudfirewall/instance.py +2 -0
- pulumi_alicloud/cs/_inputs.py +141 -21
- pulumi_alicloud/cs/kubernetes.py +7 -7
- pulumi_alicloud/cs/managed_kubernetes.py +506 -45
- pulumi_alicloud/cs/outputs.py +148 -21
- pulumi_alicloud/cs/registry_enterprise_namespace.py +92 -72
- pulumi_alicloud/cs/registry_enterprise_repo.py +96 -74
- pulumi_alicloud/cs/registry_enterprise_sync_rule.py +105 -101
- pulumi_alicloud/cs/serverless_kubernetes.py +174 -206
- pulumi_alicloud/databasefilesystem/instance.py +2 -2
- pulumi_alicloud/dts/consumer_channel.py +2 -2
- pulumi_alicloud/dts/subscription_job.py +2 -2
- pulumi_alicloud/ecs/auto_provisioning_group.py +2 -2
- pulumi_alicloud/ehpc/get_clusters.py +11 -2
- pulumi_alicloud/ehpc/get_job_templates.py +5 -2
- pulumi_alicloud/ehpc/job_template.py +2 -2
- pulumi_alicloud/ehpc/outputs.py +34 -2
- pulumi_alicloud/fc/function.py +6 -6
- pulumi_alicloud/fc/function_async_invoke_config.py +2 -2
- pulumi_alicloud/fc/trigger.py +2 -2
- pulumi_alicloud/gpdb/account.py +0 -4
- pulumi_alicloud/gpdb/connection.py +0 -4
- pulumi_alicloud/log/alert.py +30 -28
- pulumi_alicloud/log/audit.py +2 -0
- pulumi_alicloud/log/dashboard.py +8 -8
- pulumi_alicloud/log/etl.py +26 -26
- pulumi_alicloud/log/ingestion.py +10 -10
- pulumi_alicloud/log/log_tail_attachment.py +14 -14
- pulumi_alicloud/log/log_tail_config.py +10 -10
- pulumi_alicloud/log/machine_group.py +4 -4
- pulumi_alicloud/log/oss_export.py +10 -10
- pulumi_alicloud/log/project.py +4 -4
- pulumi_alicloud/log/store_index.py +10 -10
- pulumi_alicloud/nlb/server_group.py +2 -2
- pulumi_alicloud/oos/service_setting.py +10 -8
- pulumi_alicloud/oss/bucket.py +18 -10
- pulumi_alicloud/oss/bucket_object.py +12 -8
- pulumi_alicloud/oss/bucket_replication.py +2 -2
- pulumi_alicloud/polardb/cluster.py +75 -21
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/pvtz/zone_record.py +2 -2
- pulumi_alicloud/ram/access_key.py +4 -0
- pulumi_alicloud/rds/account_privilege.py +2 -2
- pulumi_alicloud/rds/backup_policy.py +270 -12
- pulumi_alicloud/rds/database.py +49 -7
- pulumi_alicloud/rds/instance.py +4 -2
- pulumi_alicloud/rocketmq/group.py +2 -2
- pulumi_alicloud/rocketmq/topic.py +2 -2
- pulumi_alicloud/sls/alert.py +6 -6
- pulumi_alicloud/sls/scheduled_sql.py +10 -10
- pulumi_alicloud/vpc/ha_vip_attachment.py +2 -2
- pulumi_alicloud/vpc/ipv6_internet_bandwidth.py +4 -4
- pulumi_alicloud/vpc/route_table_attachment.py +4 -4
- pulumi_alicloud/vpc/traffic_mirror_filter_ingress_rule.py +2 -2
- {pulumi_alicloud-3.62.0a1724909097.dist-info → pulumi_alicloud-3.62.0a1725600316.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.62.0a1724909097.dist-info → pulumi_alicloud-3.62.0a1725600316.dist-info}/RECORD +73 -73
- {pulumi_alicloud-3.62.0a1724909097.dist-info → pulumi_alicloud-3.62.0a1725600316.dist-info}/WHEEL +1 -1
- {pulumi_alicloud-3.62.0a1724909097.dist-info → pulumi_alicloud-3.62.0a1725600316.dist-info}/top_level.txt +0 -0
|
@@ -54,11 +54,52 @@ class ManagedKubernetesArgs:
|
|
|
54
54
|
version: Optional[pulumi.Input[str]] = None):
|
|
55
55
|
"""
|
|
56
56
|
The set of arguments for constructing a ManagedKubernetes resource.
|
|
57
|
-
:param pulumi.Input[str]
|
|
58
|
-
:param pulumi.Input[
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
:param pulumi.Input[str]
|
|
57
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] worker_vswitch_ids: The vswitches used by control plane. See `worker_vswitch_ids` below.
|
|
58
|
+
:param pulumi.Input[Sequence[pulumi.Input['ManagedKubernetesAddonArgs']]] addons: The addon you want to install in cluster. See `addons` to manage addons if cluster is created.
|
|
59
|
+
|
|
60
|
+
*Network params*
|
|
61
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] api_audiences: A list of API audiences for [Service Account Token Volume Projection](https://www.alibabacloud.com/help/doc-detail/160384.htm). 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.
|
|
62
|
+
:param pulumi.Input[str] client_cert: The path of client certificate, like `~/.kube/client-cert.pem`.
|
|
63
|
+
:param pulumi.Input[str] client_key: The path of client key, like `~/.kube/client-key.pem`.
|
|
64
|
+
:param pulumi.Input[str] cluster_ca_cert: The path of cluster ca certificate, like `~/.kube/cluster-ca-cert.pem`
|
|
65
|
+
|
|
66
|
+
*Removed params*
|
|
67
|
+
:param pulumi.Input[str] cluster_domain: Cluster local domain name, Default to `cluster.local`. A domain name consists of one or more sections separated by a decimal point (.), each of which is up to 63 characters long, and can be lowercase, numerals, and underscores (-), and must be lowercase or numerals at the beginning and end.
|
|
68
|
+
:param pulumi.Input[str] cluster_spec: The cluster specifications of kubernetes cluster,which can be empty. Valid values:
|
|
69
|
+
* ack.standard : Standard managed clusters.
|
|
70
|
+
* ack.pro.small : Professional managed clusters.
|
|
71
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] control_plane_log_components: List of target components for which logs need to be collected. Supports `apiserver`, `kcm`, `scheduler`, `ccm` and `controlplane-events`.
|
|
72
|
+
:param pulumi.Input[str] control_plane_log_project: Control plane log project. If this field is not set, a log service project named k8s-log-{ClusterID} will be automatically created.
|
|
73
|
+
:param pulumi.Input[str] control_plane_log_ttl: Control plane log retention duration (unit: day). Default `30`. If control plane logs are to be collected, `control_plane_log_ttl` and `control_plane_log_components` must be specified.
|
|
74
|
+
:param pulumi.Input[str] custom_san: Customize the certificate SAN, multiple IP or domain names are separated by English commas (,).
|
|
75
|
+
> **NOTE:** Make sure you have specified all certificate SANs before updating. Updating this field will lead APIServer to restart.
|
|
76
|
+
:param pulumi.Input[Sequence[pulumi.Input['ManagedKubernetesDeleteOptionArgs']]] delete_options: Delete options, only work for deleting resource. Make sure you have run `pulumi up` to make the configuration applied. See `delete_options` below.
|
|
77
|
+
:param pulumi.Input[bool] deletion_protection: Whether to enable cluster deletion protection.
|
|
78
|
+
:param pulumi.Input[bool] enable_rrsa: Whether to enable cluster to support RRSA for kubernetes version 1.22.3+. Default to `false`. Once the RRSA function is turned on, it is not allowed to turn off. If your cluster has enabled this function, please manually modify your tf file and add the rrsa configuration to the file, learn more [RAM Roles for Service Accounts](https://www.alibabacloud.com/help/zh/container-service-for-kubernetes/latest/use-rrsa-to-enforce-access-control).
|
|
79
|
+
:param pulumi.Input[str] encryption_provider_key: The disk encryption key.
|
|
80
|
+
:param pulumi.Input[bool] is_enterprise_security_group: Enable to create advanced security group. default: false. See [Advanced security group](https://www.alibabacloud.com/help/doc-detail/120621.htm).
|
|
81
|
+
:param pulumi.Input[str] load_balancer_spec: 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](https://help.aliyun.com/document_detail/85931.html).
|
|
82
|
+
:param pulumi.Input['ManagedKubernetesMaintenanceWindowArgs'] maintenance_window: The cluster maintenance window,effective only in the professional managed cluster. Managed node pool will use it. See `maintenance_window` below.
|
|
83
|
+
:param pulumi.Input[str] name: The kubernetes cluster's name. It is unique in one Alicloud account.
|
|
84
|
+
:param pulumi.Input[bool] new_nat_gateway: 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.
|
|
85
|
+
:param pulumi.Input[int] node_cidr_mask: The node cidr block to specific how many pods can run on single node. 24-28 is allowed. 24 means 2^(32-24)-1=255 and the node can run at most 255 pods. default: 24
|
|
86
|
+
:param pulumi.Input[str] pod_cidr: [Flannel Specific] The CIDR block for the pod network when using Flannel.
|
|
87
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] pod_vswitch_ids: [Terway Specific] The vswitches for the pod network when using Terway. It is recommended that `pod_vswitch_ids` is not belong to `worker_vswitch_ids` but must be in same availability zones.
|
|
88
|
+
:param pulumi.Input[str] proxy_mode: Proxy mode is option of kube-proxy. options: iptables|ipvs. default: ipvs.
|
|
89
|
+
:param pulumi.Input[str] resource_group_id: The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
|
|
90
|
+
:param pulumi.Input[str] security_group_id: The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
|
|
91
|
+
:param pulumi.Input[str] service_account_issuer: The issuer of the Service Account token for [Service Account Token Volume Projection](https://www.alibabacloud.com/help/doc-detail/160384.htm), 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.
|
|
92
|
+
:param pulumi.Input[str] service_cidr: The CIDR block for the service network. It cannot be duplicated with the VPC CIDR and CIDR used by Kubernetes cluster in VPC, cannot be modified after creation.
|
|
93
|
+
:param pulumi.Input[bool] slb_internet_enabled: Whether to create internet load balancer for API Server. Default to true.
|
|
94
|
+
|
|
95
|
+
> **NOTE:** If you want to use `Terway` as CNI network plugin, You need to specify the `pod_vswitch_ids` field and addons with `terway-eniip`.
|
|
96
|
+
If you want to use `Flannel` as CNI network plugin, You need to specify the `pod_cidr` field and addons with `flannel`.
|
|
97
|
+
|
|
98
|
+
*Computed params*
|
|
99
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Default nil, A map of tags assigned to the kubernetes cluster and work nodes. See `tags` below.
|
|
100
|
+
:param pulumi.Input[str] timezone: When you create a cluster, set the time zones for the Master and Worker nodes. You can only change the managed node time zone if you create a cluster. Once the cluster is created, you can only change the time zone of the Worker node.
|
|
101
|
+
:param pulumi.Input[str] user_ca: The path of customized CA cert, you can use this CA to sign client certs to connect your cluster.
|
|
102
|
+
:param pulumi.Input[str] version: 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.
|
|
62
103
|
"""
|
|
63
104
|
pulumi.set(__self__, "worker_vswitch_ids", worker_vswitch_ids)
|
|
64
105
|
if addons is not None:
|
|
@@ -135,6 +176,9 @@ class ManagedKubernetesArgs:
|
|
|
135
176
|
@property
|
|
136
177
|
@pulumi.getter(name="workerVswitchIds")
|
|
137
178
|
def worker_vswitch_ids(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
|
|
179
|
+
"""
|
|
180
|
+
The vswitches used by control plane. See `worker_vswitch_ids` below.
|
|
181
|
+
"""
|
|
138
182
|
return pulumi.get(self, "worker_vswitch_ids")
|
|
139
183
|
|
|
140
184
|
@worker_vswitch_ids.setter
|
|
@@ -144,6 +188,11 @@ class ManagedKubernetesArgs:
|
|
|
144
188
|
@property
|
|
145
189
|
@pulumi.getter
|
|
146
190
|
def addons(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ManagedKubernetesAddonArgs']]]]:
|
|
191
|
+
"""
|
|
192
|
+
The addon you want to install in cluster. See `addons` to manage addons if cluster is created.
|
|
193
|
+
|
|
194
|
+
*Network params*
|
|
195
|
+
"""
|
|
147
196
|
return pulumi.get(self, "addons")
|
|
148
197
|
|
|
149
198
|
@addons.setter
|
|
@@ -153,6 +202,9 @@ class ManagedKubernetesArgs:
|
|
|
153
202
|
@property
|
|
154
203
|
@pulumi.getter(name="apiAudiences")
|
|
155
204
|
def api_audiences(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
205
|
+
"""
|
|
206
|
+
A list of API audiences for [Service Account Token Volume Projection](https://www.alibabacloud.com/help/doc-detail/160384.htm). 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.
|
|
207
|
+
"""
|
|
156
208
|
return pulumi.get(self, "api_audiences")
|
|
157
209
|
|
|
158
210
|
@api_audiences.setter
|
|
@@ -163,7 +215,7 @@ class ManagedKubernetesArgs:
|
|
|
163
215
|
@pulumi.getter(name="clientCert")
|
|
164
216
|
def client_cert(self) -> Optional[pulumi.Input[str]]:
|
|
165
217
|
"""
|
|
166
|
-
The
|
|
218
|
+
The path of client certificate, like `~/.kube/client-cert.pem`.
|
|
167
219
|
"""
|
|
168
220
|
return pulumi.get(self, "client_cert")
|
|
169
221
|
|
|
@@ -175,7 +227,7 @@ class ManagedKubernetesArgs:
|
|
|
175
227
|
@pulumi.getter(name="clientKey")
|
|
176
228
|
def client_key(self) -> Optional[pulumi.Input[str]]:
|
|
177
229
|
"""
|
|
178
|
-
The
|
|
230
|
+
The path of client key, like `~/.kube/client-key.pem`.
|
|
179
231
|
"""
|
|
180
232
|
return pulumi.get(self, "client_key")
|
|
181
233
|
|
|
@@ -186,6 +238,11 @@ class ManagedKubernetesArgs:
|
|
|
186
238
|
@property
|
|
187
239
|
@pulumi.getter(name="clusterCaCert")
|
|
188
240
|
def cluster_ca_cert(self) -> Optional[pulumi.Input[str]]:
|
|
241
|
+
"""
|
|
242
|
+
The path of cluster ca certificate, like `~/.kube/cluster-ca-cert.pem`
|
|
243
|
+
|
|
244
|
+
*Removed params*
|
|
245
|
+
"""
|
|
189
246
|
return pulumi.get(self, "cluster_ca_cert")
|
|
190
247
|
|
|
191
248
|
@cluster_ca_cert.setter
|
|
@@ -196,7 +253,7 @@ class ManagedKubernetesArgs:
|
|
|
196
253
|
@pulumi.getter(name="clusterDomain")
|
|
197
254
|
def cluster_domain(self) -> Optional[pulumi.Input[str]]:
|
|
198
255
|
"""
|
|
199
|
-
|
|
256
|
+
Cluster local domain name, Default to `cluster.local`. A domain name consists of one or more sections separated by a decimal point (.), each of which is up to 63 characters long, and can be lowercase, numerals, and underscores (-), and must be lowercase or numerals at the beginning and end.
|
|
200
257
|
"""
|
|
201
258
|
return pulumi.get(self, "cluster_domain")
|
|
202
259
|
|
|
@@ -207,6 +264,11 @@ class ManagedKubernetesArgs:
|
|
|
207
264
|
@property
|
|
208
265
|
@pulumi.getter(name="clusterSpec")
|
|
209
266
|
def cluster_spec(self) -> Optional[pulumi.Input[str]]:
|
|
267
|
+
"""
|
|
268
|
+
The cluster specifications of kubernetes cluster,which can be empty. Valid values:
|
|
269
|
+
* ack.standard : Standard managed clusters.
|
|
270
|
+
* ack.pro.small : Professional managed clusters.
|
|
271
|
+
"""
|
|
210
272
|
return pulumi.get(self, "cluster_spec")
|
|
211
273
|
|
|
212
274
|
@cluster_spec.setter
|
|
@@ -216,6 +278,9 @@ class ManagedKubernetesArgs:
|
|
|
216
278
|
@property
|
|
217
279
|
@pulumi.getter(name="controlPlaneLogComponents")
|
|
218
280
|
def control_plane_log_components(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
281
|
+
"""
|
|
282
|
+
List of target components for which logs need to be collected. Supports `apiserver`, `kcm`, `scheduler`, `ccm` and `controlplane-events`.
|
|
283
|
+
"""
|
|
219
284
|
return pulumi.get(self, "control_plane_log_components")
|
|
220
285
|
|
|
221
286
|
@control_plane_log_components.setter
|
|
@@ -225,6 +290,9 @@ class ManagedKubernetesArgs:
|
|
|
225
290
|
@property
|
|
226
291
|
@pulumi.getter(name="controlPlaneLogProject")
|
|
227
292
|
def control_plane_log_project(self) -> Optional[pulumi.Input[str]]:
|
|
293
|
+
"""
|
|
294
|
+
Control plane log project. If this field is not set, a log service project named k8s-log-{ClusterID} will be automatically created.
|
|
295
|
+
"""
|
|
228
296
|
return pulumi.get(self, "control_plane_log_project")
|
|
229
297
|
|
|
230
298
|
@control_plane_log_project.setter
|
|
@@ -234,6 +302,9 @@ class ManagedKubernetesArgs:
|
|
|
234
302
|
@property
|
|
235
303
|
@pulumi.getter(name="controlPlaneLogTtl")
|
|
236
304
|
def control_plane_log_ttl(self) -> Optional[pulumi.Input[str]]:
|
|
305
|
+
"""
|
|
306
|
+
Control plane log retention duration (unit: day). Default `30`. If control plane logs are to be collected, `control_plane_log_ttl` and `control_plane_log_components` must be specified.
|
|
307
|
+
"""
|
|
237
308
|
return pulumi.get(self, "control_plane_log_ttl")
|
|
238
309
|
|
|
239
310
|
@control_plane_log_ttl.setter
|
|
@@ -243,6 +314,10 @@ class ManagedKubernetesArgs:
|
|
|
243
314
|
@property
|
|
244
315
|
@pulumi.getter(name="customSan")
|
|
245
316
|
def custom_san(self) -> Optional[pulumi.Input[str]]:
|
|
317
|
+
"""
|
|
318
|
+
Customize the certificate SAN, multiple IP or domain names are separated by English commas (,).
|
|
319
|
+
> **NOTE:** Make sure you have specified all certificate SANs before updating. Updating this field will lead APIServer to restart.
|
|
320
|
+
"""
|
|
246
321
|
return pulumi.get(self, "custom_san")
|
|
247
322
|
|
|
248
323
|
@custom_san.setter
|
|
@@ -252,6 +327,9 @@ class ManagedKubernetesArgs:
|
|
|
252
327
|
@property
|
|
253
328
|
@pulumi.getter(name="deleteOptions")
|
|
254
329
|
def delete_options(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ManagedKubernetesDeleteOptionArgs']]]]:
|
|
330
|
+
"""
|
|
331
|
+
Delete options, only work for deleting resource. Make sure you have run `pulumi up` to make the configuration applied. See `delete_options` below.
|
|
332
|
+
"""
|
|
255
333
|
return pulumi.get(self, "delete_options")
|
|
256
334
|
|
|
257
335
|
@delete_options.setter
|
|
@@ -261,6 +339,9 @@ class ManagedKubernetesArgs:
|
|
|
261
339
|
@property
|
|
262
340
|
@pulumi.getter(name="deletionProtection")
|
|
263
341
|
def deletion_protection(self) -> Optional[pulumi.Input[bool]]:
|
|
342
|
+
"""
|
|
343
|
+
Whether to enable cluster deletion protection.
|
|
344
|
+
"""
|
|
264
345
|
return pulumi.get(self, "deletion_protection")
|
|
265
346
|
|
|
266
347
|
@deletion_protection.setter
|
|
@@ -270,6 +351,9 @@ class ManagedKubernetesArgs:
|
|
|
270
351
|
@property
|
|
271
352
|
@pulumi.getter(name="enableRrsa")
|
|
272
353
|
def enable_rrsa(self) -> Optional[pulumi.Input[bool]]:
|
|
354
|
+
"""
|
|
355
|
+
Whether to enable cluster to support RRSA for kubernetes version 1.22.3+. Default to `false`. Once the RRSA function is turned on, it is not allowed to turn off. If your cluster has enabled this function, please manually modify your tf file and add the rrsa configuration to the file, learn more [RAM Roles for Service Accounts](https://www.alibabacloud.com/help/zh/container-service-for-kubernetes/latest/use-rrsa-to-enforce-access-control).
|
|
356
|
+
"""
|
|
273
357
|
return pulumi.get(self, "enable_rrsa")
|
|
274
358
|
|
|
275
359
|
@enable_rrsa.setter
|
|
@@ -280,7 +364,7 @@ class ManagedKubernetesArgs:
|
|
|
280
364
|
@pulumi.getter(name="encryptionProviderKey")
|
|
281
365
|
def encryption_provider_key(self) -> Optional[pulumi.Input[str]]:
|
|
282
366
|
"""
|
|
283
|
-
disk encryption key
|
|
367
|
+
The disk encryption key.
|
|
284
368
|
"""
|
|
285
369
|
return pulumi.get(self, "encryption_provider_key")
|
|
286
370
|
|
|
@@ -291,6 +375,9 @@ class ManagedKubernetesArgs:
|
|
|
291
375
|
@property
|
|
292
376
|
@pulumi.getter(name="isEnterpriseSecurityGroup")
|
|
293
377
|
def is_enterprise_security_group(self) -> Optional[pulumi.Input[bool]]:
|
|
378
|
+
"""
|
|
379
|
+
Enable to create advanced security group. default: false. See [Advanced security group](https://www.alibabacloud.com/help/doc-detail/120621.htm).
|
|
380
|
+
"""
|
|
294
381
|
return pulumi.get(self, "is_enterprise_security_group")
|
|
295
382
|
|
|
296
383
|
@is_enterprise_security_group.setter
|
|
@@ -300,6 +387,9 @@ class ManagedKubernetesArgs:
|
|
|
300
387
|
@property
|
|
301
388
|
@pulumi.getter(name="loadBalancerSpec")
|
|
302
389
|
def load_balancer_spec(self) -> Optional[pulumi.Input[str]]:
|
|
390
|
+
"""
|
|
391
|
+
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](https://help.aliyun.com/document_detail/85931.html).
|
|
392
|
+
"""
|
|
303
393
|
return pulumi.get(self, "load_balancer_spec")
|
|
304
394
|
|
|
305
395
|
@load_balancer_spec.setter
|
|
@@ -309,6 +399,9 @@ class ManagedKubernetesArgs:
|
|
|
309
399
|
@property
|
|
310
400
|
@pulumi.getter(name="maintenanceWindow")
|
|
311
401
|
def maintenance_window(self) -> Optional[pulumi.Input['ManagedKubernetesMaintenanceWindowArgs']]:
|
|
402
|
+
"""
|
|
403
|
+
The cluster maintenance window,effective only in the professional managed cluster. Managed node pool will use it. See `maintenance_window` below.
|
|
404
|
+
"""
|
|
312
405
|
return pulumi.get(self, "maintenance_window")
|
|
313
406
|
|
|
314
407
|
@maintenance_window.setter
|
|
@@ -319,7 +412,7 @@ class ManagedKubernetesArgs:
|
|
|
319
412
|
@pulumi.getter
|
|
320
413
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
321
414
|
"""
|
|
322
|
-
|
|
415
|
+
The kubernetes cluster's name. It is unique in one Alicloud account.
|
|
323
416
|
"""
|
|
324
417
|
return pulumi.get(self, "name")
|
|
325
418
|
|
|
@@ -339,6 +432,9 @@ class ManagedKubernetesArgs:
|
|
|
339
432
|
@property
|
|
340
433
|
@pulumi.getter(name="newNatGateway")
|
|
341
434
|
def new_nat_gateway(self) -> Optional[pulumi.Input[bool]]:
|
|
435
|
+
"""
|
|
436
|
+
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.
|
|
437
|
+
"""
|
|
342
438
|
return pulumi.get(self, "new_nat_gateway")
|
|
343
439
|
|
|
344
440
|
@new_nat_gateway.setter
|
|
@@ -348,6 +444,9 @@ class ManagedKubernetesArgs:
|
|
|
348
444
|
@property
|
|
349
445
|
@pulumi.getter(name="nodeCidrMask")
|
|
350
446
|
def node_cidr_mask(self) -> Optional[pulumi.Input[int]]:
|
|
447
|
+
"""
|
|
448
|
+
The node cidr block to specific how many pods can run on single node. 24-28 is allowed. 24 means 2^(32-24)-1=255 and the node can run at most 255 pods. default: 24
|
|
449
|
+
"""
|
|
351
450
|
return pulumi.get(self, "node_cidr_mask")
|
|
352
451
|
|
|
353
452
|
@node_cidr_mask.setter
|
|
@@ -357,6 +456,9 @@ class ManagedKubernetesArgs:
|
|
|
357
456
|
@property
|
|
358
457
|
@pulumi.getter(name="podCidr")
|
|
359
458
|
def pod_cidr(self) -> Optional[pulumi.Input[str]]:
|
|
459
|
+
"""
|
|
460
|
+
[Flannel Specific] The CIDR block for the pod network when using Flannel.
|
|
461
|
+
"""
|
|
360
462
|
return pulumi.get(self, "pod_cidr")
|
|
361
463
|
|
|
362
464
|
@pod_cidr.setter
|
|
@@ -366,6 +468,9 @@ class ManagedKubernetesArgs:
|
|
|
366
468
|
@property
|
|
367
469
|
@pulumi.getter(name="podVswitchIds")
|
|
368
470
|
def pod_vswitch_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
471
|
+
"""
|
|
472
|
+
[Terway Specific] The vswitches for the pod network when using Terway. It is recommended that `pod_vswitch_ids` is not belong to `worker_vswitch_ids` but must be in same availability zones.
|
|
473
|
+
"""
|
|
369
474
|
return pulumi.get(self, "pod_vswitch_ids")
|
|
370
475
|
|
|
371
476
|
@pod_vswitch_ids.setter
|
|
@@ -375,6 +480,9 @@ class ManagedKubernetesArgs:
|
|
|
375
480
|
@property
|
|
376
481
|
@pulumi.getter(name="proxyMode")
|
|
377
482
|
def proxy_mode(self) -> Optional[pulumi.Input[str]]:
|
|
483
|
+
"""
|
|
484
|
+
Proxy mode is option of kube-proxy. options: iptables|ipvs. default: ipvs.
|
|
485
|
+
"""
|
|
378
486
|
return pulumi.get(self, "proxy_mode")
|
|
379
487
|
|
|
380
488
|
@proxy_mode.setter
|
|
@@ -384,6 +492,9 @@ class ManagedKubernetesArgs:
|
|
|
384
492
|
@property
|
|
385
493
|
@pulumi.getter(name="resourceGroupId")
|
|
386
494
|
def resource_group_id(self) -> Optional[pulumi.Input[str]]:
|
|
495
|
+
"""
|
|
496
|
+
The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
|
|
497
|
+
"""
|
|
387
498
|
return pulumi.get(self, "resource_group_id")
|
|
388
499
|
|
|
389
500
|
@resource_group_id.setter
|
|
@@ -402,6 +513,9 @@ class ManagedKubernetesArgs:
|
|
|
402
513
|
@property
|
|
403
514
|
@pulumi.getter(name="securityGroupId")
|
|
404
515
|
def security_group_id(self) -> Optional[pulumi.Input[str]]:
|
|
516
|
+
"""
|
|
517
|
+
The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
|
|
518
|
+
"""
|
|
405
519
|
return pulumi.get(self, "security_group_id")
|
|
406
520
|
|
|
407
521
|
@security_group_id.setter
|
|
@@ -411,6 +525,9 @@ class ManagedKubernetesArgs:
|
|
|
411
525
|
@property
|
|
412
526
|
@pulumi.getter(name="serviceAccountIssuer")
|
|
413
527
|
def service_account_issuer(self) -> Optional[pulumi.Input[str]]:
|
|
528
|
+
"""
|
|
529
|
+
The issuer of the Service Account token for [Service Account Token Volume Projection](https://www.alibabacloud.com/help/doc-detail/160384.htm), 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.
|
|
530
|
+
"""
|
|
414
531
|
return pulumi.get(self, "service_account_issuer")
|
|
415
532
|
|
|
416
533
|
@service_account_issuer.setter
|
|
@@ -420,6 +537,9 @@ class ManagedKubernetesArgs:
|
|
|
420
537
|
@property
|
|
421
538
|
@pulumi.getter(name="serviceCidr")
|
|
422
539
|
def service_cidr(self) -> Optional[pulumi.Input[str]]:
|
|
540
|
+
"""
|
|
541
|
+
The CIDR block for the service network. It cannot be duplicated with the VPC CIDR and CIDR used by Kubernetes cluster in VPC, cannot be modified after creation.
|
|
542
|
+
"""
|
|
423
543
|
return pulumi.get(self, "service_cidr")
|
|
424
544
|
|
|
425
545
|
@service_cidr.setter
|
|
@@ -429,6 +549,14 @@ class ManagedKubernetesArgs:
|
|
|
429
549
|
@property
|
|
430
550
|
@pulumi.getter(name="slbInternetEnabled")
|
|
431
551
|
def slb_internet_enabled(self) -> Optional[pulumi.Input[bool]]:
|
|
552
|
+
"""
|
|
553
|
+
Whether to create internet load balancer for API Server. Default to true.
|
|
554
|
+
|
|
555
|
+
> **NOTE:** If you want to use `Terway` as CNI network plugin, You need to specify the `pod_vswitch_ids` field and addons with `terway-eniip`.
|
|
556
|
+
If you want to use `Flannel` as CNI network plugin, You need to specify the `pod_cidr` field and addons with `flannel`.
|
|
557
|
+
|
|
558
|
+
*Computed params*
|
|
559
|
+
"""
|
|
432
560
|
return pulumi.get(self, "slb_internet_enabled")
|
|
433
561
|
|
|
434
562
|
@slb_internet_enabled.setter
|
|
@@ -438,6 +566,9 @@ class ManagedKubernetesArgs:
|
|
|
438
566
|
@property
|
|
439
567
|
@pulumi.getter
|
|
440
568
|
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
569
|
+
"""
|
|
570
|
+
Default nil, A map of tags assigned to the kubernetes cluster and work nodes. See `tags` below.
|
|
571
|
+
"""
|
|
441
572
|
return pulumi.get(self, "tags")
|
|
442
573
|
|
|
443
574
|
@tags.setter
|
|
@@ -447,6 +578,9 @@ class ManagedKubernetesArgs:
|
|
|
447
578
|
@property
|
|
448
579
|
@pulumi.getter
|
|
449
580
|
def timezone(self) -> Optional[pulumi.Input[str]]:
|
|
581
|
+
"""
|
|
582
|
+
When you create a cluster, set the time zones for the Master and Worker nodes. You can only change the managed node time zone if you create a cluster. Once the cluster is created, you can only change the time zone of the Worker node.
|
|
583
|
+
"""
|
|
450
584
|
return pulumi.get(self, "timezone")
|
|
451
585
|
|
|
452
586
|
@timezone.setter
|
|
@@ -456,6 +590,9 @@ class ManagedKubernetesArgs:
|
|
|
456
590
|
@property
|
|
457
591
|
@pulumi.getter(name="userCa")
|
|
458
592
|
def user_ca(self) -> Optional[pulumi.Input[str]]:
|
|
593
|
+
"""
|
|
594
|
+
The path of customized CA cert, you can use this CA to sign client certs to connect your cluster.
|
|
595
|
+
"""
|
|
459
596
|
return pulumi.get(self, "user_ca")
|
|
460
597
|
|
|
461
598
|
@user_ca.setter
|
|
@@ -465,6 +602,9 @@ class ManagedKubernetesArgs:
|
|
|
465
602
|
@property
|
|
466
603
|
@pulumi.getter
|
|
467
604
|
def version(self) -> Optional[pulumi.Input[str]]:
|
|
605
|
+
"""
|
|
606
|
+
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.
|
|
607
|
+
"""
|
|
468
608
|
return pulumi.get(self, "version")
|
|
469
609
|
|
|
470
610
|
@version.setter
|
|
@@ -522,20 +662,61 @@ class _ManagedKubernetesState:
|
|
|
522
662
|
worker_vswitch_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
523
663
|
"""
|
|
524
664
|
Input properties used for looking up and filtering ManagedKubernetes resources.
|
|
525
|
-
:param pulumi.Input['
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
:param pulumi.Input[str]
|
|
665
|
+
:param pulumi.Input[Sequence[pulumi.Input['ManagedKubernetesAddonArgs']]] addons: The addon you want to install in cluster. See `addons` to manage addons if cluster is created.
|
|
666
|
+
|
|
667
|
+
*Network params*
|
|
668
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] api_audiences: A list of API audiences for [Service Account Token Volume Projection](https://www.alibabacloud.com/help/doc-detail/160384.htm). 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.
|
|
669
|
+
:param pulumi.Input['ManagedKubernetesCertificateAuthorityArgs'] certificate_authority: (Available since v1.105.0) Nested attribute containing certificate authority data for your cluster.
|
|
670
|
+
:param pulumi.Input[str] client_cert: The path of client certificate, like `~/.kube/client-cert.pem`.
|
|
671
|
+
:param pulumi.Input[str] client_key: The path of client key, like `~/.kube/client-key.pem`.
|
|
672
|
+
:param pulumi.Input[str] cluster_ca_cert: The path of cluster ca certificate, like `~/.kube/cluster-ca-cert.pem`
|
|
673
|
+
|
|
674
|
+
*Removed params*
|
|
675
|
+
:param pulumi.Input[str] cluster_domain: Cluster local domain name, Default to `cluster.local`. A domain name consists of one or more sections separated by a decimal point (.), each of which is up to 63 characters long, and can be lowercase, numerals, and underscores (-), and must be lowercase or numerals at the beginning and end.
|
|
676
|
+
:param pulumi.Input[str] cluster_spec: The cluster specifications of kubernetes cluster,which can be empty. Valid values:
|
|
677
|
+
* ack.standard : Standard managed clusters.
|
|
678
|
+
* ack.pro.small : Professional managed clusters.
|
|
529
679
|
:param pulumi.Input['ManagedKubernetesConnectionsArgs'] connections: Map of kubernetes cluster connection information.
|
|
530
|
-
:param pulumi.Input[str]
|
|
531
|
-
:param pulumi.Input[str]
|
|
680
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] control_plane_log_components: List of target components for which logs need to be collected. Supports `apiserver`, `kcm`, `scheduler`, `ccm` and `controlplane-events`.
|
|
681
|
+
:param pulumi.Input[str] control_plane_log_project: Control plane log project. If this field is not set, a log service project named k8s-log-{ClusterID} will be automatically created.
|
|
682
|
+
:param pulumi.Input[str] control_plane_log_ttl: Control plane log retention duration (unit: day). Default `30`. If control plane logs are to be collected, `control_plane_log_ttl` and `control_plane_log_components` must be specified.
|
|
683
|
+
:param pulumi.Input[str] custom_san: Customize the certificate SAN, multiple IP or domain names are separated by English commas (,).
|
|
684
|
+
> **NOTE:** Make sure you have specified all certificate SANs before updating. Updating this field will lead APIServer to restart.
|
|
685
|
+
:param pulumi.Input[Sequence[pulumi.Input['ManagedKubernetesDeleteOptionArgs']]] delete_options: Delete options, only work for deleting resource. Make sure you have run `pulumi up` to make the configuration applied. See `delete_options` below.
|
|
686
|
+
:param pulumi.Input[bool] deletion_protection: Whether to enable cluster deletion protection.
|
|
687
|
+
:param pulumi.Input[bool] enable_rrsa: Whether to enable cluster to support RRSA for kubernetes version 1.22.3+. Default to `false`. Once the RRSA function is turned on, it is not allowed to turn off. If your cluster has enabled this function, please manually modify your tf file and add the rrsa configuration to the file, learn more [RAM Roles for Service Accounts](https://www.alibabacloud.com/help/zh/container-service-for-kubernetes/latest/use-rrsa-to-enforce-access-control).
|
|
688
|
+
:param pulumi.Input[str] encryption_provider_key: The disk encryption key.
|
|
689
|
+
:param pulumi.Input[bool] is_enterprise_security_group: Enable to create advanced security group. default: false. See [Advanced security group](https://www.alibabacloud.com/help/doc-detail/120621.htm).
|
|
690
|
+
:param pulumi.Input[str] load_balancer_spec: 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](https://help.aliyun.com/document_detail/85931.html).
|
|
691
|
+
:param pulumi.Input['ManagedKubernetesMaintenanceWindowArgs'] maintenance_window: The cluster maintenance window,effective only in the professional managed cluster. Managed node pool will use it. See `maintenance_window` below.
|
|
692
|
+
:param pulumi.Input[str] name: The kubernetes cluster's name. It is unique in one Alicloud account.
|
|
532
693
|
:param pulumi.Input[str] nat_gateway_id: The ID of nat gateway used to launch kubernetes cluster.
|
|
533
|
-
:param pulumi.Input[
|
|
694
|
+
:param pulumi.Input[bool] new_nat_gateway: 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.
|
|
695
|
+
:param pulumi.Input[int] node_cidr_mask: The node cidr block to specific how many pods can run on single node. 24-28 is allowed. 24 means 2^(32-24)-1=255 and the node can run at most 255 pods. default: 24
|
|
696
|
+
:param pulumi.Input[str] pod_cidr: [Flannel Specific] The CIDR block for the pod network when using Flannel.
|
|
697
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] pod_vswitch_ids: [Terway Specific] The vswitches for the pod network when using Terway. It is recommended that `pod_vswitch_ids` is not belong to `worker_vswitch_ids` but must be in same availability zones.
|
|
698
|
+
:param pulumi.Input[str] proxy_mode: Proxy mode is option of kube-proxy. options: iptables|ipvs. default: ipvs.
|
|
699
|
+
:param pulumi.Input[str] resource_group_id: The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
|
|
700
|
+
:param pulumi.Input['ManagedKubernetesRrsaMetadataArgs'] rrsa_metadata: (Optional, Available since v1.185.0) Nested attribute containing RRSA related data for your cluster.
|
|
701
|
+
:param pulumi.Input[str] security_group_id: The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
|
|
702
|
+
:param pulumi.Input[str] service_account_issuer: The issuer of the Service Account token for [Service Account Token Volume Projection](https://www.alibabacloud.com/help/doc-detail/160384.htm), 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.
|
|
703
|
+
:param pulumi.Input[str] service_cidr: The CIDR block for the service network. It cannot be duplicated with the VPC CIDR and CIDR used by Kubernetes cluster in VPC, cannot be modified after creation.
|
|
534
704
|
:param pulumi.Input[str] slb_id: The ID of APIServer load balancer.
|
|
535
705
|
:param pulumi.Input[str] slb_internet: The public ip of load balancer.
|
|
706
|
+
:param pulumi.Input[bool] slb_internet_enabled: Whether to create internet load balancer for API Server. Default to true.
|
|
707
|
+
|
|
708
|
+
> **NOTE:** If you want to use `Terway` as CNI network plugin, You need to specify the `pod_vswitch_ids` field and addons with `terway-eniip`.
|
|
709
|
+
If you want to use `Flannel` as CNI network plugin, You need to specify the `pod_cidr` field and addons with `flannel`.
|
|
710
|
+
|
|
711
|
+
*Computed params*
|
|
536
712
|
:param pulumi.Input[str] slb_intranet: The ID of private load balancer where the current cluster master node is located.
|
|
713
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Default nil, A map of tags assigned to the kubernetes cluster and work nodes. See `tags` below.
|
|
714
|
+
:param pulumi.Input[str] timezone: When you create a cluster, set the time zones for the Master and Worker nodes. You can only change the managed node time zone if you create a cluster. Once the cluster is created, you can only change the time zone of the Worker node.
|
|
715
|
+
:param pulumi.Input[str] user_ca: The path of customized CA cert, you can use this CA to sign client certs to connect your cluster.
|
|
716
|
+
:param pulumi.Input[str] version: 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.
|
|
537
717
|
:param pulumi.Input[str] vpc_id: The ID of VPC where the current cluster is located.
|
|
538
718
|
:param pulumi.Input[str] worker_ram_role_name: The RamRole Name attached to worker node.
|
|
719
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] worker_vswitch_ids: The vswitches used by control plane. See `worker_vswitch_ids` below.
|
|
539
720
|
"""
|
|
540
721
|
if addons is not None:
|
|
541
722
|
pulumi.set(__self__, "addons", addons)
|
|
@@ -631,6 +812,11 @@ class _ManagedKubernetesState:
|
|
|
631
812
|
@property
|
|
632
813
|
@pulumi.getter
|
|
633
814
|
def addons(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ManagedKubernetesAddonArgs']]]]:
|
|
815
|
+
"""
|
|
816
|
+
The addon you want to install in cluster. See `addons` to manage addons if cluster is created.
|
|
817
|
+
|
|
818
|
+
*Network params*
|
|
819
|
+
"""
|
|
634
820
|
return pulumi.get(self, "addons")
|
|
635
821
|
|
|
636
822
|
@addons.setter
|
|
@@ -640,6 +826,9 @@ class _ManagedKubernetesState:
|
|
|
640
826
|
@property
|
|
641
827
|
@pulumi.getter(name="apiAudiences")
|
|
642
828
|
def api_audiences(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
829
|
+
"""
|
|
830
|
+
A list of API audiences for [Service Account Token Volume Projection](https://www.alibabacloud.com/help/doc-detail/160384.htm). 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.
|
|
831
|
+
"""
|
|
643
832
|
return pulumi.get(self, "api_audiences")
|
|
644
833
|
|
|
645
834
|
@api_audiences.setter
|
|
@@ -650,7 +839,7 @@ class _ManagedKubernetesState:
|
|
|
650
839
|
@pulumi.getter(name="certificateAuthority")
|
|
651
840
|
def certificate_authority(self) -> Optional[pulumi.Input['ManagedKubernetesCertificateAuthorityArgs']]:
|
|
652
841
|
"""
|
|
653
|
-
(Available
|
|
842
|
+
(Available since v1.105.0) Nested attribute containing certificate authority data for your cluster.
|
|
654
843
|
"""
|
|
655
844
|
return pulumi.get(self, "certificate_authority")
|
|
656
845
|
|
|
@@ -662,7 +851,7 @@ class _ManagedKubernetesState:
|
|
|
662
851
|
@pulumi.getter(name="clientCert")
|
|
663
852
|
def client_cert(self) -> Optional[pulumi.Input[str]]:
|
|
664
853
|
"""
|
|
665
|
-
The
|
|
854
|
+
The path of client certificate, like `~/.kube/client-cert.pem`.
|
|
666
855
|
"""
|
|
667
856
|
return pulumi.get(self, "client_cert")
|
|
668
857
|
|
|
@@ -674,7 +863,7 @@ class _ManagedKubernetesState:
|
|
|
674
863
|
@pulumi.getter(name="clientKey")
|
|
675
864
|
def client_key(self) -> Optional[pulumi.Input[str]]:
|
|
676
865
|
"""
|
|
677
|
-
The
|
|
866
|
+
The path of client key, like `~/.kube/client-key.pem`.
|
|
678
867
|
"""
|
|
679
868
|
return pulumi.get(self, "client_key")
|
|
680
869
|
|
|
@@ -685,6 +874,11 @@ class _ManagedKubernetesState:
|
|
|
685
874
|
@property
|
|
686
875
|
@pulumi.getter(name="clusterCaCert")
|
|
687
876
|
def cluster_ca_cert(self) -> Optional[pulumi.Input[str]]:
|
|
877
|
+
"""
|
|
878
|
+
The path of cluster ca certificate, like `~/.kube/cluster-ca-cert.pem`
|
|
879
|
+
|
|
880
|
+
*Removed params*
|
|
881
|
+
"""
|
|
688
882
|
return pulumi.get(self, "cluster_ca_cert")
|
|
689
883
|
|
|
690
884
|
@cluster_ca_cert.setter
|
|
@@ -695,7 +889,7 @@ class _ManagedKubernetesState:
|
|
|
695
889
|
@pulumi.getter(name="clusterDomain")
|
|
696
890
|
def cluster_domain(self) -> Optional[pulumi.Input[str]]:
|
|
697
891
|
"""
|
|
698
|
-
|
|
892
|
+
Cluster local domain name, Default to `cluster.local`. A domain name consists of one or more sections separated by a decimal point (.), each of which is up to 63 characters long, and can be lowercase, numerals, and underscores (-), and must be lowercase or numerals at the beginning and end.
|
|
699
893
|
"""
|
|
700
894
|
return pulumi.get(self, "cluster_domain")
|
|
701
895
|
|
|
@@ -706,6 +900,11 @@ class _ManagedKubernetesState:
|
|
|
706
900
|
@property
|
|
707
901
|
@pulumi.getter(name="clusterSpec")
|
|
708
902
|
def cluster_spec(self) -> Optional[pulumi.Input[str]]:
|
|
903
|
+
"""
|
|
904
|
+
The cluster specifications of kubernetes cluster,which can be empty. Valid values:
|
|
905
|
+
* ack.standard : Standard managed clusters.
|
|
906
|
+
* ack.pro.small : Professional managed clusters.
|
|
907
|
+
"""
|
|
709
908
|
return pulumi.get(self, "cluster_spec")
|
|
710
909
|
|
|
711
910
|
@cluster_spec.setter
|
|
@@ -727,6 +926,9 @@ class _ManagedKubernetesState:
|
|
|
727
926
|
@property
|
|
728
927
|
@pulumi.getter(name="controlPlaneLogComponents")
|
|
729
928
|
def control_plane_log_components(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
929
|
+
"""
|
|
930
|
+
List of target components for which logs need to be collected. Supports `apiserver`, `kcm`, `scheduler`, `ccm` and `controlplane-events`.
|
|
931
|
+
"""
|
|
730
932
|
return pulumi.get(self, "control_plane_log_components")
|
|
731
933
|
|
|
732
934
|
@control_plane_log_components.setter
|
|
@@ -736,6 +938,9 @@ class _ManagedKubernetesState:
|
|
|
736
938
|
@property
|
|
737
939
|
@pulumi.getter(name="controlPlaneLogProject")
|
|
738
940
|
def control_plane_log_project(self) -> Optional[pulumi.Input[str]]:
|
|
941
|
+
"""
|
|
942
|
+
Control plane log project. If this field is not set, a log service project named k8s-log-{ClusterID} will be automatically created.
|
|
943
|
+
"""
|
|
739
944
|
return pulumi.get(self, "control_plane_log_project")
|
|
740
945
|
|
|
741
946
|
@control_plane_log_project.setter
|
|
@@ -745,6 +950,9 @@ class _ManagedKubernetesState:
|
|
|
745
950
|
@property
|
|
746
951
|
@pulumi.getter(name="controlPlaneLogTtl")
|
|
747
952
|
def control_plane_log_ttl(self) -> Optional[pulumi.Input[str]]:
|
|
953
|
+
"""
|
|
954
|
+
Control plane log retention duration (unit: day). Default `30`. If control plane logs are to be collected, `control_plane_log_ttl` and `control_plane_log_components` must be specified.
|
|
955
|
+
"""
|
|
748
956
|
return pulumi.get(self, "control_plane_log_ttl")
|
|
749
957
|
|
|
750
958
|
@control_plane_log_ttl.setter
|
|
@@ -754,6 +962,10 @@ class _ManagedKubernetesState:
|
|
|
754
962
|
@property
|
|
755
963
|
@pulumi.getter(name="customSan")
|
|
756
964
|
def custom_san(self) -> Optional[pulumi.Input[str]]:
|
|
965
|
+
"""
|
|
966
|
+
Customize the certificate SAN, multiple IP or domain names are separated by English commas (,).
|
|
967
|
+
> **NOTE:** Make sure you have specified all certificate SANs before updating. Updating this field will lead APIServer to restart.
|
|
968
|
+
"""
|
|
757
969
|
return pulumi.get(self, "custom_san")
|
|
758
970
|
|
|
759
971
|
@custom_san.setter
|
|
@@ -763,6 +975,9 @@ class _ManagedKubernetesState:
|
|
|
763
975
|
@property
|
|
764
976
|
@pulumi.getter(name="deleteOptions")
|
|
765
977
|
def delete_options(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ManagedKubernetesDeleteOptionArgs']]]]:
|
|
978
|
+
"""
|
|
979
|
+
Delete options, only work for deleting resource. Make sure you have run `pulumi up` to make the configuration applied. See `delete_options` below.
|
|
980
|
+
"""
|
|
766
981
|
return pulumi.get(self, "delete_options")
|
|
767
982
|
|
|
768
983
|
@delete_options.setter
|
|
@@ -772,6 +987,9 @@ class _ManagedKubernetesState:
|
|
|
772
987
|
@property
|
|
773
988
|
@pulumi.getter(name="deletionProtection")
|
|
774
989
|
def deletion_protection(self) -> Optional[pulumi.Input[bool]]:
|
|
990
|
+
"""
|
|
991
|
+
Whether to enable cluster deletion protection.
|
|
992
|
+
"""
|
|
775
993
|
return pulumi.get(self, "deletion_protection")
|
|
776
994
|
|
|
777
995
|
@deletion_protection.setter
|
|
@@ -781,6 +999,9 @@ class _ManagedKubernetesState:
|
|
|
781
999
|
@property
|
|
782
1000
|
@pulumi.getter(name="enableRrsa")
|
|
783
1001
|
def enable_rrsa(self) -> Optional[pulumi.Input[bool]]:
|
|
1002
|
+
"""
|
|
1003
|
+
Whether to enable cluster to support RRSA for kubernetes version 1.22.3+. Default to `false`. Once the RRSA function is turned on, it is not allowed to turn off. If your cluster has enabled this function, please manually modify your tf file and add the rrsa configuration to the file, learn more [RAM Roles for Service Accounts](https://www.alibabacloud.com/help/zh/container-service-for-kubernetes/latest/use-rrsa-to-enforce-access-control).
|
|
1004
|
+
"""
|
|
784
1005
|
return pulumi.get(self, "enable_rrsa")
|
|
785
1006
|
|
|
786
1007
|
@enable_rrsa.setter
|
|
@@ -791,7 +1012,7 @@ class _ManagedKubernetesState:
|
|
|
791
1012
|
@pulumi.getter(name="encryptionProviderKey")
|
|
792
1013
|
def encryption_provider_key(self) -> Optional[pulumi.Input[str]]:
|
|
793
1014
|
"""
|
|
794
|
-
disk encryption key
|
|
1015
|
+
The disk encryption key.
|
|
795
1016
|
"""
|
|
796
1017
|
return pulumi.get(self, "encryption_provider_key")
|
|
797
1018
|
|
|
@@ -802,6 +1023,9 @@ class _ManagedKubernetesState:
|
|
|
802
1023
|
@property
|
|
803
1024
|
@pulumi.getter(name="isEnterpriseSecurityGroup")
|
|
804
1025
|
def is_enterprise_security_group(self) -> Optional[pulumi.Input[bool]]:
|
|
1026
|
+
"""
|
|
1027
|
+
Enable to create advanced security group. default: false. See [Advanced security group](https://www.alibabacloud.com/help/doc-detail/120621.htm).
|
|
1028
|
+
"""
|
|
805
1029
|
return pulumi.get(self, "is_enterprise_security_group")
|
|
806
1030
|
|
|
807
1031
|
@is_enterprise_security_group.setter
|
|
@@ -811,6 +1035,9 @@ class _ManagedKubernetesState:
|
|
|
811
1035
|
@property
|
|
812
1036
|
@pulumi.getter(name="loadBalancerSpec")
|
|
813
1037
|
def load_balancer_spec(self) -> Optional[pulumi.Input[str]]:
|
|
1038
|
+
"""
|
|
1039
|
+
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](https://help.aliyun.com/document_detail/85931.html).
|
|
1040
|
+
"""
|
|
814
1041
|
return pulumi.get(self, "load_balancer_spec")
|
|
815
1042
|
|
|
816
1043
|
@load_balancer_spec.setter
|
|
@@ -820,6 +1047,9 @@ class _ManagedKubernetesState:
|
|
|
820
1047
|
@property
|
|
821
1048
|
@pulumi.getter(name="maintenanceWindow")
|
|
822
1049
|
def maintenance_window(self) -> Optional[pulumi.Input['ManagedKubernetesMaintenanceWindowArgs']]:
|
|
1050
|
+
"""
|
|
1051
|
+
The cluster maintenance window,effective only in the professional managed cluster. Managed node pool will use it. See `maintenance_window` below.
|
|
1052
|
+
"""
|
|
823
1053
|
return pulumi.get(self, "maintenance_window")
|
|
824
1054
|
|
|
825
1055
|
@maintenance_window.setter
|
|
@@ -830,7 +1060,7 @@ class _ManagedKubernetesState:
|
|
|
830
1060
|
@pulumi.getter
|
|
831
1061
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
832
1062
|
"""
|
|
833
|
-
|
|
1063
|
+
The kubernetes cluster's name. It is unique in one Alicloud account.
|
|
834
1064
|
"""
|
|
835
1065
|
return pulumi.get(self, "name")
|
|
836
1066
|
|
|
@@ -862,6 +1092,9 @@ class _ManagedKubernetesState:
|
|
|
862
1092
|
@property
|
|
863
1093
|
@pulumi.getter(name="newNatGateway")
|
|
864
1094
|
def new_nat_gateway(self) -> Optional[pulumi.Input[bool]]:
|
|
1095
|
+
"""
|
|
1096
|
+
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.
|
|
1097
|
+
"""
|
|
865
1098
|
return pulumi.get(self, "new_nat_gateway")
|
|
866
1099
|
|
|
867
1100
|
@new_nat_gateway.setter
|
|
@@ -871,6 +1104,9 @@ class _ManagedKubernetesState:
|
|
|
871
1104
|
@property
|
|
872
1105
|
@pulumi.getter(name="nodeCidrMask")
|
|
873
1106
|
def node_cidr_mask(self) -> Optional[pulumi.Input[int]]:
|
|
1107
|
+
"""
|
|
1108
|
+
The node cidr block to specific how many pods can run on single node. 24-28 is allowed. 24 means 2^(32-24)-1=255 and the node can run at most 255 pods. default: 24
|
|
1109
|
+
"""
|
|
874
1110
|
return pulumi.get(self, "node_cidr_mask")
|
|
875
1111
|
|
|
876
1112
|
@node_cidr_mask.setter
|
|
@@ -880,6 +1116,9 @@ class _ManagedKubernetesState:
|
|
|
880
1116
|
@property
|
|
881
1117
|
@pulumi.getter(name="podCidr")
|
|
882
1118
|
def pod_cidr(self) -> Optional[pulumi.Input[str]]:
|
|
1119
|
+
"""
|
|
1120
|
+
[Flannel Specific] The CIDR block for the pod network when using Flannel.
|
|
1121
|
+
"""
|
|
883
1122
|
return pulumi.get(self, "pod_cidr")
|
|
884
1123
|
|
|
885
1124
|
@pod_cidr.setter
|
|
@@ -889,6 +1128,9 @@ class _ManagedKubernetesState:
|
|
|
889
1128
|
@property
|
|
890
1129
|
@pulumi.getter(name="podVswitchIds")
|
|
891
1130
|
def pod_vswitch_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
1131
|
+
"""
|
|
1132
|
+
[Terway Specific] The vswitches for the pod network when using Terway. It is recommended that `pod_vswitch_ids` is not belong to `worker_vswitch_ids` but must be in same availability zones.
|
|
1133
|
+
"""
|
|
892
1134
|
return pulumi.get(self, "pod_vswitch_ids")
|
|
893
1135
|
|
|
894
1136
|
@pod_vswitch_ids.setter
|
|
@@ -898,6 +1140,9 @@ class _ManagedKubernetesState:
|
|
|
898
1140
|
@property
|
|
899
1141
|
@pulumi.getter(name="proxyMode")
|
|
900
1142
|
def proxy_mode(self) -> Optional[pulumi.Input[str]]:
|
|
1143
|
+
"""
|
|
1144
|
+
Proxy mode is option of kube-proxy. options: iptables|ipvs. default: ipvs.
|
|
1145
|
+
"""
|
|
901
1146
|
return pulumi.get(self, "proxy_mode")
|
|
902
1147
|
|
|
903
1148
|
@proxy_mode.setter
|
|
@@ -907,6 +1152,9 @@ class _ManagedKubernetesState:
|
|
|
907
1152
|
@property
|
|
908
1153
|
@pulumi.getter(name="resourceGroupId")
|
|
909
1154
|
def resource_group_id(self) -> Optional[pulumi.Input[str]]:
|
|
1155
|
+
"""
|
|
1156
|
+
The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
|
|
1157
|
+
"""
|
|
910
1158
|
return pulumi.get(self, "resource_group_id")
|
|
911
1159
|
|
|
912
1160
|
@resource_group_id.setter
|
|
@@ -926,7 +1174,7 @@ class _ManagedKubernetesState:
|
|
|
926
1174
|
@pulumi.getter(name="rrsaMetadata")
|
|
927
1175
|
def rrsa_metadata(self) -> Optional[pulumi.Input['ManagedKubernetesRrsaMetadataArgs']]:
|
|
928
1176
|
"""
|
|
929
|
-
(Optional, Available
|
|
1177
|
+
(Optional, Available since v1.185.0) Nested attribute containing RRSA related data for your cluster.
|
|
930
1178
|
"""
|
|
931
1179
|
return pulumi.get(self, "rrsa_metadata")
|
|
932
1180
|
|
|
@@ -937,6 +1185,9 @@ class _ManagedKubernetesState:
|
|
|
937
1185
|
@property
|
|
938
1186
|
@pulumi.getter(name="securityGroupId")
|
|
939
1187
|
def security_group_id(self) -> Optional[pulumi.Input[str]]:
|
|
1188
|
+
"""
|
|
1189
|
+
The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
|
|
1190
|
+
"""
|
|
940
1191
|
return pulumi.get(self, "security_group_id")
|
|
941
1192
|
|
|
942
1193
|
@security_group_id.setter
|
|
@@ -946,6 +1197,9 @@ class _ManagedKubernetesState:
|
|
|
946
1197
|
@property
|
|
947
1198
|
@pulumi.getter(name="serviceAccountIssuer")
|
|
948
1199
|
def service_account_issuer(self) -> Optional[pulumi.Input[str]]:
|
|
1200
|
+
"""
|
|
1201
|
+
The issuer of the Service Account token for [Service Account Token Volume Projection](https://www.alibabacloud.com/help/doc-detail/160384.htm), 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.
|
|
1202
|
+
"""
|
|
949
1203
|
return pulumi.get(self, "service_account_issuer")
|
|
950
1204
|
|
|
951
1205
|
@service_account_issuer.setter
|
|
@@ -955,6 +1209,9 @@ class _ManagedKubernetesState:
|
|
|
955
1209
|
@property
|
|
956
1210
|
@pulumi.getter(name="serviceCidr")
|
|
957
1211
|
def service_cidr(self) -> Optional[pulumi.Input[str]]:
|
|
1212
|
+
"""
|
|
1213
|
+
The CIDR block for the service network. It cannot be duplicated with the VPC CIDR and CIDR used by Kubernetes cluster in VPC, cannot be modified after creation.
|
|
1214
|
+
"""
|
|
958
1215
|
return pulumi.get(self, "service_cidr")
|
|
959
1216
|
|
|
960
1217
|
@service_cidr.setter
|
|
@@ -988,6 +1245,14 @@ class _ManagedKubernetesState:
|
|
|
988
1245
|
@property
|
|
989
1246
|
@pulumi.getter(name="slbInternetEnabled")
|
|
990
1247
|
def slb_internet_enabled(self) -> Optional[pulumi.Input[bool]]:
|
|
1248
|
+
"""
|
|
1249
|
+
Whether to create internet load balancer for API Server. Default to true.
|
|
1250
|
+
|
|
1251
|
+
> **NOTE:** If you want to use `Terway` as CNI network plugin, You need to specify the `pod_vswitch_ids` field and addons with `terway-eniip`.
|
|
1252
|
+
If you want to use `Flannel` as CNI network plugin, You need to specify the `pod_cidr` field and addons with `flannel`.
|
|
1253
|
+
|
|
1254
|
+
*Computed params*
|
|
1255
|
+
"""
|
|
991
1256
|
return pulumi.get(self, "slb_internet_enabled")
|
|
992
1257
|
|
|
993
1258
|
@slb_internet_enabled.setter
|
|
@@ -1009,6 +1274,9 @@ class _ManagedKubernetesState:
|
|
|
1009
1274
|
@property
|
|
1010
1275
|
@pulumi.getter
|
|
1011
1276
|
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
1277
|
+
"""
|
|
1278
|
+
Default nil, A map of tags assigned to the kubernetes cluster and work nodes. See `tags` below.
|
|
1279
|
+
"""
|
|
1012
1280
|
return pulumi.get(self, "tags")
|
|
1013
1281
|
|
|
1014
1282
|
@tags.setter
|
|
@@ -1018,6 +1286,9 @@ class _ManagedKubernetesState:
|
|
|
1018
1286
|
@property
|
|
1019
1287
|
@pulumi.getter
|
|
1020
1288
|
def timezone(self) -> Optional[pulumi.Input[str]]:
|
|
1289
|
+
"""
|
|
1290
|
+
When you create a cluster, set the time zones for the Master and Worker nodes. You can only change the managed node time zone if you create a cluster. Once the cluster is created, you can only change the time zone of the Worker node.
|
|
1291
|
+
"""
|
|
1021
1292
|
return pulumi.get(self, "timezone")
|
|
1022
1293
|
|
|
1023
1294
|
@timezone.setter
|
|
@@ -1027,6 +1298,9 @@ class _ManagedKubernetesState:
|
|
|
1027
1298
|
@property
|
|
1028
1299
|
@pulumi.getter(name="userCa")
|
|
1029
1300
|
def user_ca(self) -> Optional[pulumi.Input[str]]:
|
|
1301
|
+
"""
|
|
1302
|
+
The path of customized CA cert, you can use this CA to sign client certs to connect your cluster.
|
|
1303
|
+
"""
|
|
1030
1304
|
return pulumi.get(self, "user_ca")
|
|
1031
1305
|
|
|
1032
1306
|
@user_ca.setter
|
|
@@ -1036,6 +1310,9 @@ class _ManagedKubernetesState:
|
|
|
1036
1310
|
@property
|
|
1037
1311
|
@pulumi.getter
|
|
1038
1312
|
def version(self) -> Optional[pulumi.Input[str]]:
|
|
1313
|
+
"""
|
|
1314
|
+
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.
|
|
1315
|
+
"""
|
|
1039
1316
|
return pulumi.get(self, "version")
|
|
1040
1317
|
|
|
1041
1318
|
@version.setter
|
|
@@ -1069,6 +1346,9 @@ class _ManagedKubernetesState:
|
|
|
1069
1346
|
@property
|
|
1070
1347
|
@pulumi.getter(name="workerVswitchIds")
|
|
1071
1348
|
def worker_vswitch_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
1349
|
+
"""
|
|
1350
|
+
The vswitches used by control plane. See `worker_vswitch_ids` below.
|
|
1351
|
+
"""
|
|
1072
1352
|
return pulumi.get(self, "worker_vswitch_ids")
|
|
1073
1353
|
|
|
1074
1354
|
@worker_vswitch_ids.setter
|
|
@@ -1145,7 +1425,7 @@ class ManagedKubernetes(pulumi.CustomResource):
|
|
|
1145
1425
|
|
|
1146
1426
|
> **NOTE:** From version 1.120.0, Support for cluster migration from Standard cluster to professional.
|
|
1147
1427
|
|
|
1148
|
-
> **NOTE:** From version 1.177.0
|
|
1428
|
+
> **NOTE:** From version 1.177.0, `runtime`,`enable_ssh`,`rds_instances`,`exclude_autoscaler_nodes`,`worker_number`,`worker_instance_types`,`password`,`key_name`,`kms_encrypted_password`,`kms_encryption_context`,`worker_instance_charge_type`,`worker_period`,`worker_period_unit`,`worker_auto_renew`,`worker_auto_renew_period`,`worker_disk_category`,`worker_disk_size`,`worker_data_disks`,`node_name_mode`,`node_port_range`,`os_type`,`platform`,`image_id`,`cpu_policy`,`user_data`,`taints`,`worker_disk_performance_level`,`worker_disk_snapshot_policy_id`,`install_cloud_monitor` are deprecated.
|
|
1149
1429
|
We Suggest you using resource **`cs.NodePool`** to manage your cluster worker nodes.
|
|
1150
1430
|
|
|
1151
1431
|
> **NOTE:** From version 1.212.0, `runtime`,`enable_ssh`,`rds_instances`,`exclude_autoscaler_nodes`,`worker_number`,`worker_instance_types`,`password`,`key_name`,`kms_encrypted_password`,`kms_encryption_context`,`worker_instance_charge_type`,`worker_period`,`worker_period_unit`,`worker_auto_renew`,`worker_auto_renew_period`,`worker_disk_category`,`worker_disk_size`,`worker_data_disks`,`node_name_mode`,`node_port_range`,`os_type`,`platform`,`image_id`,`cpu_policy`,`user_data`,`taints`,`worker_disk_performance_level`,`worker_disk_snapshot_policy_id`,`install_cloud_monitor`,`kube_config`,`availability_zone` are removed.
|
|
@@ -1161,11 +1441,52 @@ class ManagedKubernetes(pulumi.CustomResource):
|
|
|
1161
1441
|
|
|
1162
1442
|
:param str resource_name: The name of the resource.
|
|
1163
1443
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
1164
|
-
:param pulumi.Input[
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
:param pulumi.Input[str]
|
|
1168
|
-
:param pulumi.Input[str]
|
|
1444
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ManagedKubernetesAddonArgs', 'ManagedKubernetesAddonArgsDict']]]] addons: The addon you want to install in cluster. See `addons` to manage addons if cluster is created.
|
|
1445
|
+
|
|
1446
|
+
*Network params*
|
|
1447
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] api_audiences: A list of API audiences for [Service Account Token Volume Projection](https://www.alibabacloud.com/help/doc-detail/160384.htm). 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.
|
|
1448
|
+
:param pulumi.Input[str] client_cert: The path of client certificate, like `~/.kube/client-cert.pem`.
|
|
1449
|
+
:param pulumi.Input[str] client_key: The path of client key, like `~/.kube/client-key.pem`.
|
|
1450
|
+
:param pulumi.Input[str] cluster_ca_cert: The path of cluster ca certificate, like `~/.kube/cluster-ca-cert.pem`
|
|
1451
|
+
|
|
1452
|
+
*Removed params*
|
|
1453
|
+
:param pulumi.Input[str] cluster_domain: Cluster local domain name, Default to `cluster.local`. A domain name consists of one or more sections separated by a decimal point (.), each of which is up to 63 characters long, and can be lowercase, numerals, and underscores (-), and must be lowercase or numerals at the beginning and end.
|
|
1454
|
+
:param pulumi.Input[str] cluster_spec: The cluster specifications of kubernetes cluster,which can be empty. Valid values:
|
|
1455
|
+
* ack.standard : Standard managed clusters.
|
|
1456
|
+
* ack.pro.small : Professional managed clusters.
|
|
1457
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] control_plane_log_components: List of target components for which logs need to be collected. Supports `apiserver`, `kcm`, `scheduler`, `ccm` and `controlplane-events`.
|
|
1458
|
+
:param pulumi.Input[str] control_plane_log_project: Control plane log project. If this field is not set, a log service project named k8s-log-{ClusterID} will be automatically created.
|
|
1459
|
+
:param pulumi.Input[str] control_plane_log_ttl: Control plane log retention duration (unit: day). Default `30`. If control plane logs are to be collected, `control_plane_log_ttl` and `control_plane_log_components` must be specified.
|
|
1460
|
+
:param pulumi.Input[str] custom_san: Customize the certificate SAN, multiple IP or domain names are separated by English commas (,).
|
|
1461
|
+
> **NOTE:** Make sure you have specified all certificate SANs before updating. Updating this field will lead APIServer to restart.
|
|
1462
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ManagedKubernetesDeleteOptionArgs', 'ManagedKubernetesDeleteOptionArgsDict']]]] delete_options: Delete options, only work for deleting resource. Make sure you have run `pulumi up` to make the configuration applied. See `delete_options` below.
|
|
1463
|
+
:param pulumi.Input[bool] deletion_protection: Whether to enable cluster deletion protection.
|
|
1464
|
+
:param pulumi.Input[bool] enable_rrsa: Whether to enable cluster to support RRSA for kubernetes version 1.22.3+. Default to `false`. Once the RRSA function is turned on, it is not allowed to turn off. If your cluster has enabled this function, please manually modify your tf file and add the rrsa configuration to the file, learn more [RAM Roles for Service Accounts](https://www.alibabacloud.com/help/zh/container-service-for-kubernetes/latest/use-rrsa-to-enforce-access-control).
|
|
1465
|
+
:param pulumi.Input[str] encryption_provider_key: The disk encryption key.
|
|
1466
|
+
:param pulumi.Input[bool] is_enterprise_security_group: Enable to create advanced security group. default: false. See [Advanced security group](https://www.alibabacloud.com/help/doc-detail/120621.htm).
|
|
1467
|
+
:param pulumi.Input[str] load_balancer_spec: 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](https://help.aliyun.com/document_detail/85931.html).
|
|
1468
|
+
:param pulumi.Input[Union['ManagedKubernetesMaintenanceWindowArgs', 'ManagedKubernetesMaintenanceWindowArgsDict']] maintenance_window: The cluster maintenance window,effective only in the professional managed cluster. Managed node pool will use it. See `maintenance_window` below.
|
|
1469
|
+
:param pulumi.Input[str] name: The kubernetes cluster's name. It is unique in one Alicloud account.
|
|
1470
|
+
:param pulumi.Input[bool] new_nat_gateway: 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.
|
|
1471
|
+
:param pulumi.Input[int] node_cidr_mask: The node cidr block to specific how many pods can run on single node. 24-28 is allowed. 24 means 2^(32-24)-1=255 and the node can run at most 255 pods. default: 24
|
|
1472
|
+
:param pulumi.Input[str] pod_cidr: [Flannel Specific] The CIDR block for the pod network when using Flannel.
|
|
1473
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] pod_vswitch_ids: [Terway Specific] The vswitches for the pod network when using Terway. It is recommended that `pod_vswitch_ids` is not belong to `worker_vswitch_ids` but must be in same availability zones.
|
|
1474
|
+
:param pulumi.Input[str] proxy_mode: Proxy mode is option of kube-proxy. options: iptables|ipvs. default: ipvs.
|
|
1475
|
+
:param pulumi.Input[str] resource_group_id: The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
|
|
1476
|
+
:param pulumi.Input[str] security_group_id: The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
|
|
1477
|
+
:param pulumi.Input[str] service_account_issuer: The issuer of the Service Account token for [Service Account Token Volume Projection](https://www.alibabacloud.com/help/doc-detail/160384.htm), 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.
|
|
1478
|
+
:param pulumi.Input[str] service_cidr: The CIDR block for the service network. It cannot be duplicated with the VPC CIDR and CIDR used by Kubernetes cluster in VPC, cannot be modified after creation.
|
|
1479
|
+
:param pulumi.Input[bool] slb_internet_enabled: Whether to create internet load balancer for API Server. Default to true.
|
|
1480
|
+
|
|
1481
|
+
> **NOTE:** If you want to use `Terway` as CNI network plugin, You need to specify the `pod_vswitch_ids` field and addons with `terway-eniip`.
|
|
1482
|
+
If you want to use `Flannel` as CNI network plugin, You need to specify the `pod_cidr` field and addons with `flannel`.
|
|
1483
|
+
|
|
1484
|
+
*Computed params*
|
|
1485
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Default nil, A map of tags assigned to the kubernetes cluster and work nodes. See `tags` below.
|
|
1486
|
+
:param pulumi.Input[str] timezone: When you create a cluster, set the time zones for the Master and Worker nodes. You can only change the managed node time zone if you create a cluster. Once the cluster is created, you can only change the time zone of the Worker node.
|
|
1487
|
+
:param pulumi.Input[str] user_ca: The path of customized CA cert, you can use this CA to sign client certs to connect your cluster.
|
|
1488
|
+
:param pulumi.Input[str] version: 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.
|
|
1489
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] worker_vswitch_ids: The vswitches used by control plane. See `worker_vswitch_ids` below.
|
|
1169
1490
|
"""
|
|
1170
1491
|
...
|
|
1171
1492
|
@overload
|
|
@@ -1200,7 +1521,7 @@ class ManagedKubernetes(pulumi.CustomResource):
|
|
|
1200
1521
|
|
|
1201
1522
|
> **NOTE:** From version 1.120.0, Support for cluster migration from Standard cluster to professional.
|
|
1202
1523
|
|
|
1203
|
-
> **NOTE:** From version 1.177.0
|
|
1524
|
+
> **NOTE:** From version 1.177.0, `runtime`,`enable_ssh`,`rds_instances`,`exclude_autoscaler_nodes`,`worker_number`,`worker_instance_types`,`password`,`key_name`,`kms_encrypted_password`,`kms_encryption_context`,`worker_instance_charge_type`,`worker_period`,`worker_period_unit`,`worker_auto_renew`,`worker_auto_renew_period`,`worker_disk_category`,`worker_disk_size`,`worker_data_disks`,`node_name_mode`,`node_port_range`,`os_type`,`platform`,`image_id`,`cpu_policy`,`user_data`,`taints`,`worker_disk_performance_level`,`worker_disk_snapshot_policy_id`,`install_cloud_monitor` are deprecated.
|
|
1204
1525
|
We Suggest you using resource **`cs.NodePool`** to manage your cluster worker nodes.
|
|
1205
1526
|
|
|
1206
1527
|
> **NOTE:** From version 1.212.0, `runtime`,`enable_ssh`,`rds_instances`,`exclude_autoscaler_nodes`,`worker_number`,`worker_instance_types`,`password`,`key_name`,`kms_encrypted_password`,`kms_encryption_context`,`worker_instance_charge_type`,`worker_period`,`worker_period_unit`,`worker_auto_renew`,`worker_auto_renew_period`,`worker_disk_category`,`worker_disk_size`,`worker_data_disks`,`node_name_mode`,`node_port_range`,`os_type`,`platform`,`image_id`,`cpu_policy`,`user_data`,`taints`,`worker_disk_performance_level`,`worker_disk_snapshot_policy_id`,`install_cloud_monitor`,`kube_config`,`availability_zone` are removed.
|
|
@@ -1383,20 +1704,61 @@ class ManagedKubernetes(pulumi.CustomResource):
|
|
|
1383
1704
|
:param str resource_name: The unique name of the resulting resource.
|
|
1384
1705
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
1385
1706
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
1386
|
-
:param pulumi.Input[Union['
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
:param pulumi.Input[str]
|
|
1707
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ManagedKubernetesAddonArgs', 'ManagedKubernetesAddonArgsDict']]]] addons: The addon you want to install in cluster. See `addons` to manage addons if cluster is created.
|
|
1708
|
+
|
|
1709
|
+
*Network params*
|
|
1710
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] api_audiences: A list of API audiences for [Service Account Token Volume Projection](https://www.alibabacloud.com/help/doc-detail/160384.htm). 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.
|
|
1711
|
+
:param pulumi.Input[Union['ManagedKubernetesCertificateAuthorityArgs', 'ManagedKubernetesCertificateAuthorityArgsDict']] certificate_authority: (Available since v1.105.0) Nested attribute containing certificate authority data for your cluster.
|
|
1712
|
+
:param pulumi.Input[str] client_cert: The path of client certificate, like `~/.kube/client-cert.pem`.
|
|
1713
|
+
:param pulumi.Input[str] client_key: The path of client key, like `~/.kube/client-key.pem`.
|
|
1714
|
+
:param pulumi.Input[str] cluster_ca_cert: The path of cluster ca certificate, like `~/.kube/cluster-ca-cert.pem`
|
|
1715
|
+
|
|
1716
|
+
*Removed params*
|
|
1717
|
+
:param pulumi.Input[str] cluster_domain: Cluster local domain name, Default to `cluster.local`. A domain name consists of one or more sections separated by a decimal point (.), each of which is up to 63 characters long, and can be lowercase, numerals, and underscores (-), and must be lowercase or numerals at the beginning and end.
|
|
1718
|
+
:param pulumi.Input[str] cluster_spec: The cluster specifications of kubernetes cluster,which can be empty. Valid values:
|
|
1719
|
+
* ack.standard : Standard managed clusters.
|
|
1720
|
+
* ack.pro.small : Professional managed clusters.
|
|
1390
1721
|
:param pulumi.Input[Union['ManagedKubernetesConnectionsArgs', 'ManagedKubernetesConnectionsArgsDict']] connections: Map of kubernetes cluster connection information.
|
|
1391
|
-
:param pulumi.Input[str]
|
|
1392
|
-
:param pulumi.Input[str]
|
|
1722
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] control_plane_log_components: List of target components for which logs need to be collected. Supports `apiserver`, `kcm`, `scheduler`, `ccm` and `controlplane-events`.
|
|
1723
|
+
:param pulumi.Input[str] control_plane_log_project: Control plane log project. If this field is not set, a log service project named k8s-log-{ClusterID} will be automatically created.
|
|
1724
|
+
:param pulumi.Input[str] control_plane_log_ttl: Control plane log retention duration (unit: day). Default `30`. If control plane logs are to be collected, `control_plane_log_ttl` and `control_plane_log_components` must be specified.
|
|
1725
|
+
:param pulumi.Input[str] custom_san: Customize the certificate SAN, multiple IP or domain names are separated by English commas (,).
|
|
1726
|
+
> **NOTE:** Make sure you have specified all certificate SANs before updating. Updating this field will lead APIServer to restart.
|
|
1727
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ManagedKubernetesDeleteOptionArgs', 'ManagedKubernetesDeleteOptionArgsDict']]]] delete_options: Delete options, only work for deleting resource. Make sure you have run `pulumi up` to make the configuration applied. See `delete_options` below.
|
|
1728
|
+
:param pulumi.Input[bool] deletion_protection: Whether to enable cluster deletion protection.
|
|
1729
|
+
:param pulumi.Input[bool] enable_rrsa: Whether to enable cluster to support RRSA for kubernetes version 1.22.3+. Default to `false`. Once the RRSA function is turned on, it is not allowed to turn off. If your cluster has enabled this function, please manually modify your tf file and add the rrsa configuration to the file, learn more [RAM Roles for Service Accounts](https://www.alibabacloud.com/help/zh/container-service-for-kubernetes/latest/use-rrsa-to-enforce-access-control).
|
|
1730
|
+
:param pulumi.Input[str] encryption_provider_key: The disk encryption key.
|
|
1731
|
+
:param pulumi.Input[bool] is_enterprise_security_group: Enable to create advanced security group. default: false. See [Advanced security group](https://www.alibabacloud.com/help/doc-detail/120621.htm).
|
|
1732
|
+
:param pulumi.Input[str] load_balancer_spec: 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](https://help.aliyun.com/document_detail/85931.html).
|
|
1733
|
+
:param pulumi.Input[Union['ManagedKubernetesMaintenanceWindowArgs', 'ManagedKubernetesMaintenanceWindowArgsDict']] maintenance_window: The cluster maintenance window,effective only in the professional managed cluster. Managed node pool will use it. See `maintenance_window` below.
|
|
1734
|
+
:param pulumi.Input[str] name: The kubernetes cluster's name. It is unique in one Alicloud account.
|
|
1393
1735
|
:param pulumi.Input[str] nat_gateway_id: The ID of nat gateway used to launch kubernetes cluster.
|
|
1394
|
-
:param pulumi.Input[
|
|
1736
|
+
:param pulumi.Input[bool] new_nat_gateway: 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.
|
|
1737
|
+
:param pulumi.Input[int] node_cidr_mask: The node cidr block to specific how many pods can run on single node. 24-28 is allowed. 24 means 2^(32-24)-1=255 and the node can run at most 255 pods. default: 24
|
|
1738
|
+
:param pulumi.Input[str] pod_cidr: [Flannel Specific] The CIDR block for the pod network when using Flannel.
|
|
1739
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] pod_vswitch_ids: [Terway Specific] The vswitches for the pod network when using Terway. It is recommended that `pod_vswitch_ids` is not belong to `worker_vswitch_ids` but must be in same availability zones.
|
|
1740
|
+
:param pulumi.Input[str] proxy_mode: Proxy mode is option of kube-proxy. options: iptables|ipvs. default: ipvs.
|
|
1741
|
+
:param pulumi.Input[str] resource_group_id: The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
|
|
1742
|
+
:param pulumi.Input[Union['ManagedKubernetesRrsaMetadataArgs', 'ManagedKubernetesRrsaMetadataArgsDict']] rrsa_metadata: (Optional, Available since v1.185.0) Nested attribute containing RRSA related data for your cluster.
|
|
1743
|
+
:param pulumi.Input[str] security_group_id: The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
|
|
1744
|
+
:param pulumi.Input[str] service_account_issuer: The issuer of the Service Account token for [Service Account Token Volume Projection](https://www.alibabacloud.com/help/doc-detail/160384.htm), 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.
|
|
1745
|
+
:param pulumi.Input[str] service_cidr: The CIDR block for the service network. It cannot be duplicated with the VPC CIDR and CIDR used by Kubernetes cluster in VPC, cannot be modified after creation.
|
|
1395
1746
|
:param pulumi.Input[str] slb_id: The ID of APIServer load balancer.
|
|
1396
1747
|
:param pulumi.Input[str] slb_internet: The public ip of load balancer.
|
|
1748
|
+
:param pulumi.Input[bool] slb_internet_enabled: Whether to create internet load balancer for API Server. Default to true.
|
|
1749
|
+
|
|
1750
|
+
> **NOTE:** If you want to use `Terway` as CNI network plugin, You need to specify the `pod_vswitch_ids` field and addons with `terway-eniip`.
|
|
1751
|
+
If you want to use `Flannel` as CNI network plugin, You need to specify the `pod_cidr` field and addons with `flannel`.
|
|
1752
|
+
|
|
1753
|
+
*Computed params*
|
|
1397
1754
|
:param pulumi.Input[str] slb_intranet: The ID of private load balancer where the current cluster master node is located.
|
|
1755
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Default nil, A map of tags assigned to the kubernetes cluster and work nodes. See `tags` below.
|
|
1756
|
+
:param pulumi.Input[str] timezone: When you create a cluster, set the time zones for the Master and Worker nodes. You can only change the managed node time zone if you create a cluster. Once the cluster is created, you can only change the time zone of the Worker node.
|
|
1757
|
+
:param pulumi.Input[str] user_ca: The path of customized CA cert, you can use this CA to sign client certs to connect your cluster.
|
|
1758
|
+
:param pulumi.Input[str] version: 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.
|
|
1398
1759
|
:param pulumi.Input[str] vpc_id: The ID of VPC where the current cluster is located.
|
|
1399
1760
|
:param pulumi.Input[str] worker_ram_role_name: The RamRole Name attached to worker node.
|
|
1761
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] worker_vswitch_ids: The vswitches used by control plane. See `worker_vswitch_ids` below.
|
|
1400
1762
|
"""
|
|
1401
1763
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
1402
1764
|
|
|
@@ -1452,18 +1814,26 @@ class ManagedKubernetes(pulumi.CustomResource):
|
|
|
1452
1814
|
@property
|
|
1453
1815
|
@pulumi.getter
|
|
1454
1816
|
def addons(self) -> pulumi.Output[Optional[Sequence['outputs.ManagedKubernetesAddon']]]:
|
|
1817
|
+
"""
|
|
1818
|
+
The addon you want to install in cluster. See `addons` to manage addons if cluster is created.
|
|
1819
|
+
|
|
1820
|
+
*Network params*
|
|
1821
|
+
"""
|
|
1455
1822
|
return pulumi.get(self, "addons")
|
|
1456
1823
|
|
|
1457
1824
|
@property
|
|
1458
1825
|
@pulumi.getter(name="apiAudiences")
|
|
1459
1826
|
def api_audiences(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
1827
|
+
"""
|
|
1828
|
+
A list of API audiences for [Service Account Token Volume Projection](https://www.alibabacloud.com/help/doc-detail/160384.htm). 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.
|
|
1829
|
+
"""
|
|
1460
1830
|
return pulumi.get(self, "api_audiences")
|
|
1461
1831
|
|
|
1462
1832
|
@property
|
|
1463
1833
|
@pulumi.getter(name="certificateAuthority")
|
|
1464
1834
|
def certificate_authority(self) -> pulumi.Output['outputs.ManagedKubernetesCertificateAuthority']:
|
|
1465
1835
|
"""
|
|
1466
|
-
(Available
|
|
1836
|
+
(Available since v1.105.0) Nested attribute containing certificate authority data for your cluster.
|
|
1467
1837
|
"""
|
|
1468
1838
|
return pulumi.get(self, "certificate_authority")
|
|
1469
1839
|
|
|
@@ -1471,7 +1841,7 @@ class ManagedKubernetes(pulumi.CustomResource):
|
|
|
1471
1841
|
@pulumi.getter(name="clientCert")
|
|
1472
1842
|
def client_cert(self) -> pulumi.Output[Optional[str]]:
|
|
1473
1843
|
"""
|
|
1474
|
-
The
|
|
1844
|
+
The path of client certificate, like `~/.kube/client-cert.pem`.
|
|
1475
1845
|
"""
|
|
1476
1846
|
return pulumi.get(self, "client_cert")
|
|
1477
1847
|
|
|
@@ -1479,26 +1849,36 @@ class ManagedKubernetes(pulumi.CustomResource):
|
|
|
1479
1849
|
@pulumi.getter(name="clientKey")
|
|
1480
1850
|
def client_key(self) -> pulumi.Output[Optional[str]]:
|
|
1481
1851
|
"""
|
|
1482
|
-
The
|
|
1852
|
+
The path of client key, like `~/.kube/client-key.pem`.
|
|
1483
1853
|
"""
|
|
1484
1854
|
return pulumi.get(self, "client_key")
|
|
1485
1855
|
|
|
1486
1856
|
@property
|
|
1487
1857
|
@pulumi.getter(name="clusterCaCert")
|
|
1488
1858
|
def cluster_ca_cert(self) -> pulumi.Output[Optional[str]]:
|
|
1859
|
+
"""
|
|
1860
|
+
The path of cluster ca certificate, like `~/.kube/cluster-ca-cert.pem`
|
|
1861
|
+
|
|
1862
|
+
*Removed params*
|
|
1863
|
+
"""
|
|
1489
1864
|
return pulumi.get(self, "cluster_ca_cert")
|
|
1490
1865
|
|
|
1491
1866
|
@property
|
|
1492
1867
|
@pulumi.getter(name="clusterDomain")
|
|
1493
1868
|
def cluster_domain(self) -> pulumi.Output[Optional[str]]:
|
|
1494
1869
|
"""
|
|
1495
|
-
|
|
1870
|
+
Cluster local domain name, Default to `cluster.local`. A domain name consists of one or more sections separated by a decimal point (.), each of which is up to 63 characters long, and can be lowercase, numerals, and underscores (-), and must be lowercase or numerals at the beginning and end.
|
|
1496
1871
|
"""
|
|
1497
1872
|
return pulumi.get(self, "cluster_domain")
|
|
1498
1873
|
|
|
1499
1874
|
@property
|
|
1500
1875
|
@pulumi.getter(name="clusterSpec")
|
|
1501
1876
|
def cluster_spec(self) -> pulumi.Output[str]:
|
|
1877
|
+
"""
|
|
1878
|
+
The cluster specifications of kubernetes cluster,which can be empty. Valid values:
|
|
1879
|
+
* ack.standard : Standard managed clusters.
|
|
1880
|
+
* ack.pro.small : Professional managed clusters.
|
|
1881
|
+
"""
|
|
1502
1882
|
return pulumi.get(self, "cluster_spec")
|
|
1503
1883
|
|
|
1504
1884
|
@property
|
|
@@ -1512,66 +1892,97 @@ class ManagedKubernetes(pulumi.CustomResource):
|
|
|
1512
1892
|
@property
|
|
1513
1893
|
@pulumi.getter(name="controlPlaneLogComponents")
|
|
1514
1894
|
def control_plane_log_components(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
1895
|
+
"""
|
|
1896
|
+
List of target components for which logs need to be collected. Supports `apiserver`, `kcm`, `scheduler`, `ccm` and `controlplane-events`.
|
|
1897
|
+
"""
|
|
1515
1898
|
return pulumi.get(self, "control_plane_log_components")
|
|
1516
1899
|
|
|
1517
1900
|
@property
|
|
1518
1901
|
@pulumi.getter(name="controlPlaneLogProject")
|
|
1519
1902
|
def control_plane_log_project(self) -> pulumi.Output[str]:
|
|
1903
|
+
"""
|
|
1904
|
+
Control plane log project. If this field is not set, a log service project named k8s-log-{ClusterID} will be automatically created.
|
|
1905
|
+
"""
|
|
1520
1906
|
return pulumi.get(self, "control_plane_log_project")
|
|
1521
1907
|
|
|
1522
1908
|
@property
|
|
1523
1909
|
@pulumi.getter(name="controlPlaneLogTtl")
|
|
1524
1910
|
def control_plane_log_ttl(self) -> pulumi.Output[str]:
|
|
1911
|
+
"""
|
|
1912
|
+
Control plane log retention duration (unit: day). Default `30`. If control plane logs are to be collected, `control_plane_log_ttl` and `control_plane_log_components` must be specified.
|
|
1913
|
+
"""
|
|
1525
1914
|
return pulumi.get(self, "control_plane_log_ttl")
|
|
1526
1915
|
|
|
1527
1916
|
@property
|
|
1528
1917
|
@pulumi.getter(name="customSan")
|
|
1529
1918
|
def custom_san(self) -> pulumi.Output[Optional[str]]:
|
|
1919
|
+
"""
|
|
1920
|
+
Customize the certificate SAN, multiple IP or domain names are separated by English commas (,).
|
|
1921
|
+
> **NOTE:** Make sure you have specified all certificate SANs before updating. Updating this field will lead APIServer to restart.
|
|
1922
|
+
"""
|
|
1530
1923
|
return pulumi.get(self, "custom_san")
|
|
1531
1924
|
|
|
1532
1925
|
@property
|
|
1533
1926
|
@pulumi.getter(name="deleteOptions")
|
|
1534
1927
|
def delete_options(self) -> pulumi.Output[Optional[Sequence['outputs.ManagedKubernetesDeleteOption']]]:
|
|
1928
|
+
"""
|
|
1929
|
+
Delete options, only work for deleting resource. Make sure you have run `pulumi up` to make the configuration applied. See `delete_options` below.
|
|
1930
|
+
"""
|
|
1535
1931
|
return pulumi.get(self, "delete_options")
|
|
1536
1932
|
|
|
1537
1933
|
@property
|
|
1538
1934
|
@pulumi.getter(name="deletionProtection")
|
|
1539
1935
|
def deletion_protection(self) -> pulumi.Output[Optional[bool]]:
|
|
1936
|
+
"""
|
|
1937
|
+
Whether to enable cluster deletion protection.
|
|
1938
|
+
"""
|
|
1540
1939
|
return pulumi.get(self, "deletion_protection")
|
|
1541
1940
|
|
|
1542
1941
|
@property
|
|
1543
1942
|
@pulumi.getter(name="enableRrsa")
|
|
1544
1943
|
def enable_rrsa(self) -> pulumi.Output[Optional[bool]]:
|
|
1944
|
+
"""
|
|
1945
|
+
Whether to enable cluster to support RRSA for kubernetes version 1.22.3+. Default to `false`. Once the RRSA function is turned on, it is not allowed to turn off. If your cluster has enabled this function, please manually modify your tf file and add the rrsa configuration to the file, learn more [RAM Roles for Service Accounts](https://www.alibabacloud.com/help/zh/container-service-for-kubernetes/latest/use-rrsa-to-enforce-access-control).
|
|
1946
|
+
"""
|
|
1545
1947
|
return pulumi.get(self, "enable_rrsa")
|
|
1546
1948
|
|
|
1547
1949
|
@property
|
|
1548
1950
|
@pulumi.getter(name="encryptionProviderKey")
|
|
1549
1951
|
def encryption_provider_key(self) -> pulumi.Output[Optional[str]]:
|
|
1550
1952
|
"""
|
|
1551
|
-
disk encryption key
|
|
1953
|
+
The disk encryption key.
|
|
1552
1954
|
"""
|
|
1553
1955
|
return pulumi.get(self, "encryption_provider_key")
|
|
1554
1956
|
|
|
1555
1957
|
@property
|
|
1556
1958
|
@pulumi.getter(name="isEnterpriseSecurityGroup")
|
|
1557
1959
|
def is_enterprise_security_group(self) -> pulumi.Output[bool]:
|
|
1960
|
+
"""
|
|
1961
|
+
Enable to create advanced security group. default: false. See [Advanced security group](https://www.alibabacloud.com/help/doc-detail/120621.htm).
|
|
1962
|
+
"""
|
|
1558
1963
|
return pulumi.get(self, "is_enterprise_security_group")
|
|
1559
1964
|
|
|
1560
1965
|
@property
|
|
1561
1966
|
@pulumi.getter(name="loadBalancerSpec")
|
|
1562
1967
|
def load_balancer_spec(self) -> pulumi.Output[Optional[str]]:
|
|
1968
|
+
"""
|
|
1969
|
+
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](https://help.aliyun.com/document_detail/85931.html).
|
|
1970
|
+
"""
|
|
1563
1971
|
return pulumi.get(self, "load_balancer_spec")
|
|
1564
1972
|
|
|
1565
1973
|
@property
|
|
1566
1974
|
@pulumi.getter(name="maintenanceWindow")
|
|
1567
1975
|
def maintenance_window(self) -> pulumi.Output['outputs.ManagedKubernetesMaintenanceWindow']:
|
|
1976
|
+
"""
|
|
1977
|
+
The cluster maintenance window,effective only in the professional managed cluster. Managed node pool will use it. See `maintenance_window` below.
|
|
1978
|
+
"""
|
|
1568
1979
|
return pulumi.get(self, "maintenance_window")
|
|
1569
1980
|
|
|
1570
1981
|
@property
|
|
1571
1982
|
@pulumi.getter
|
|
1572
1983
|
def name(self) -> pulumi.Output[str]:
|
|
1573
1984
|
"""
|
|
1574
|
-
|
|
1985
|
+
The kubernetes cluster's name. It is unique in one Alicloud account.
|
|
1575
1986
|
"""
|
|
1576
1987
|
return pulumi.get(self, "name")
|
|
1577
1988
|
|
|
@@ -1591,31 +2002,49 @@ class ManagedKubernetes(pulumi.CustomResource):
|
|
|
1591
2002
|
@property
|
|
1592
2003
|
@pulumi.getter(name="newNatGateway")
|
|
1593
2004
|
def new_nat_gateway(self) -> pulumi.Output[Optional[bool]]:
|
|
2005
|
+
"""
|
|
2006
|
+
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.
|
|
2007
|
+
"""
|
|
1594
2008
|
return pulumi.get(self, "new_nat_gateway")
|
|
1595
2009
|
|
|
1596
2010
|
@property
|
|
1597
2011
|
@pulumi.getter(name="nodeCidrMask")
|
|
1598
2012
|
def node_cidr_mask(self) -> pulumi.Output[Optional[int]]:
|
|
2013
|
+
"""
|
|
2014
|
+
The node cidr block to specific how many pods can run on single node. 24-28 is allowed. 24 means 2^(32-24)-1=255 and the node can run at most 255 pods. default: 24
|
|
2015
|
+
"""
|
|
1599
2016
|
return pulumi.get(self, "node_cidr_mask")
|
|
1600
2017
|
|
|
1601
2018
|
@property
|
|
1602
2019
|
@pulumi.getter(name="podCidr")
|
|
1603
2020
|
def pod_cidr(self) -> pulumi.Output[Optional[str]]:
|
|
2021
|
+
"""
|
|
2022
|
+
[Flannel Specific] The CIDR block for the pod network when using Flannel.
|
|
2023
|
+
"""
|
|
1604
2024
|
return pulumi.get(self, "pod_cidr")
|
|
1605
2025
|
|
|
1606
2026
|
@property
|
|
1607
2027
|
@pulumi.getter(name="podVswitchIds")
|
|
1608
2028
|
def pod_vswitch_ids(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
2029
|
+
"""
|
|
2030
|
+
[Terway Specific] The vswitches for the pod network when using Terway. It is recommended that `pod_vswitch_ids` is not belong to `worker_vswitch_ids` but must be in same availability zones.
|
|
2031
|
+
"""
|
|
1609
2032
|
return pulumi.get(self, "pod_vswitch_ids")
|
|
1610
2033
|
|
|
1611
2034
|
@property
|
|
1612
2035
|
@pulumi.getter(name="proxyMode")
|
|
1613
2036
|
def proxy_mode(self) -> pulumi.Output[Optional[str]]:
|
|
2037
|
+
"""
|
|
2038
|
+
Proxy mode is option of kube-proxy. options: iptables|ipvs. default: ipvs.
|
|
2039
|
+
"""
|
|
1614
2040
|
return pulumi.get(self, "proxy_mode")
|
|
1615
2041
|
|
|
1616
2042
|
@property
|
|
1617
2043
|
@pulumi.getter(name="resourceGroupId")
|
|
1618
2044
|
def resource_group_id(self) -> pulumi.Output[str]:
|
|
2045
|
+
"""
|
|
2046
|
+
The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
|
|
2047
|
+
"""
|
|
1619
2048
|
return pulumi.get(self, "resource_group_id")
|
|
1620
2049
|
|
|
1621
2050
|
@property
|
|
@@ -1627,23 +2056,32 @@ class ManagedKubernetes(pulumi.CustomResource):
|
|
|
1627
2056
|
@pulumi.getter(name="rrsaMetadata")
|
|
1628
2057
|
def rrsa_metadata(self) -> pulumi.Output['outputs.ManagedKubernetesRrsaMetadata']:
|
|
1629
2058
|
"""
|
|
1630
|
-
(Optional, Available
|
|
2059
|
+
(Optional, Available since v1.185.0) Nested attribute containing RRSA related data for your cluster.
|
|
1631
2060
|
"""
|
|
1632
2061
|
return pulumi.get(self, "rrsa_metadata")
|
|
1633
2062
|
|
|
1634
2063
|
@property
|
|
1635
2064
|
@pulumi.getter(name="securityGroupId")
|
|
1636
2065
|
def security_group_id(self) -> pulumi.Output[str]:
|
|
2066
|
+
"""
|
|
2067
|
+
The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
|
|
2068
|
+
"""
|
|
1637
2069
|
return pulumi.get(self, "security_group_id")
|
|
1638
2070
|
|
|
1639
2071
|
@property
|
|
1640
2072
|
@pulumi.getter(name="serviceAccountIssuer")
|
|
1641
2073
|
def service_account_issuer(self) -> pulumi.Output[Optional[str]]:
|
|
2074
|
+
"""
|
|
2075
|
+
The issuer of the Service Account token for [Service Account Token Volume Projection](https://www.alibabacloud.com/help/doc-detail/160384.htm), 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.
|
|
2076
|
+
"""
|
|
1642
2077
|
return pulumi.get(self, "service_account_issuer")
|
|
1643
2078
|
|
|
1644
2079
|
@property
|
|
1645
2080
|
@pulumi.getter(name="serviceCidr")
|
|
1646
2081
|
def service_cidr(self) -> pulumi.Output[Optional[str]]:
|
|
2082
|
+
"""
|
|
2083
|
+
The CIDR block for the service network. It cannot be duplicated with the VPC CIDR and CIDR used by Kubernetes cluster in VPC, cannot be modified after creation.
|
|
2084
|
+
"""
|
|
1647
2085
|
return pulumi.get(self, "service_cidr")
|
|
1648
2086
|
|
|
1649
2087
|
@property
|
|
@@ -1665,6 +2103,14 @@ class ManagedKubernetes(pulumi.CustomResource):
|
|
|
1665
2103
|
@property
|
|
1666
2104
|
@pulumi.getter(name="slbInternetEnabled")
|
|
1667
2105
|
def slb_internet_enabled(self) -> pulumi.Output[Optional[bool]]:
|
|
2106
|
+
"""
|
|
2107
|
+
Whether to create internet load balancer for API Server. Default to true.
|
|
2108
|
+
|
|
2109
|
+
> **NOTE:** If you want to use `Terway` as CNI network plugin, You need to specify the `pod_vswitch_ids` field and addons with `terway-eniip`.
|
|
2110
|
+
If you want to use `Flannel` as CNI network plugin, You need to specify the `pod_cidr` field and addons with `flannel`.
|
|
2111
|
+
|
|
2112
|
+
*Computed params*
|
|
2113
|
+
"""
|
|
1668
2114
|
return pulumi.get(self, "slb_internet_enabled")
|
|
1669
2115
|
|
|
1670
2116
|
@property
|
|
@@ -1678,21 +2124,33 @@ class ManagedKubernetes(pulumi.CustomResource):
|
|
|
1678
2124
|
@property
|
|
1679
2125
|
@pulumi.getter
|
|
1680
2126
|
def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
|
2127
|
+
"""
|
|
2128
|
+
Default nil, A map of tags assigned to the kubernetes cluster and work nodes. See `tags` below.
|
|
2129
|
+
"""
|
|
1681
2130
|
return pulumi.get(self, "tags")
|
|
1682
2131
|
|
|
1683
2132
|
@property
|
|
1684
2133
|
@pulumi.getter
|
|
1685
2134
|
def timezone(self) -> pulumi.Output[Optional[str]]:
|
|
2135
|
+
"""
|
|
2136
|
+
When you create a cluster, set the time zones for the Master and Worker nodes. You can only change the managed node time zone if you create a cluster. Once the cluster is created, you can only change the time zone of the Worker node.
|
|
2137
|
+
"""
|
|
1686
2138
|
return pulumi.get(self, "timezone")
|
|
1687
2139
|
|
|
1688
2140
|
@property
|
|
1689
2141
|
@pulumi.getter(name="userCa")
|
|
1690
2142
|
def user_ca(self) -> pulumi.Output[Optional[str]]:
|
|
2143
|
+
"""
|
|
2144
|
+
The path of customized CA cert, you can use this CA to sign client certs to connect your cluster.
|
|
2145
|
+
"""
|
|
1691
2146
|
return pulumi.get(self, "user_ca")
|
|
1692
2147
|
|
|
1693
2148
|
@property
|
|
1694
2149
|
@pulumi.getter
|
|
1695
2150
|
def version(self) -> pulumi.Output[str]:
|
|
2151
|
+
"""
|
|
2152
|
+
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.
|
|
2153
|
+
"""
|
|
1696
2154
|
return pulumi.get(self, "version")
|
|
1697
2155
|
|
|
1698
2156
|
@property
|
|
@@ -1714,5 +2172,8 @@ class ManagedKubernetes(pulumi.CustomResource):
|
|
|
1714
2172
|
@property
|
|
1715
2173
|
@pulumi.getter(name="workerVswitchIds")
|
|
1716
2174
|
def worker_vswitch_ids(self) -> pulumi.Output[Sequence[str]]:
|
|
2175
|
+
"""
|
|
2176
|
+
The vswitches used by control plane. See `worker_vswitch_ids` below.
|
|
2177
|
+
"""
|
|
1717
2178
|
return pulumi.get(self, "worker_vswitch_ids")
|
|
1718
2179
|
|