pulumi-digitalocean 4.50.0a1753335988__py3-none-any.whl → 4.50.0a1753508712__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-digitalocean might be problematic. Click here for more details.
- pulumi_digitalocean/__init__.py +1 -1
- pulumi_digitalocean/_enums.py +9 -9
- pulumi_digitalocean/_inputs.py +5705 -5706
- pulumi_digitalocean/app.py +87 -88
- pulumi_digitalocean/cdn.py +104 -105
- pulumi_digitalocean/certificate.py +137 -138
- pulumi_digitalocean/config/__init__.py +1 -1
- pulumi_digitalocean/config/__init__.pyi +1 -2
- pulumi_digitalocean/config/vars.py +10 -11
- pulumi_digitalocean/container_registry.py +88 -89
- pulumi_digitalocean/container_registry_docker_credentials.py +70 -71
- pulumi_digitalocean/custom_image.py +175 -176
- pulumi_digitalocean/database_cluster.py +346 -347
- pulumi_digitalocean/database_connection_pool.py +157 -158
- pulumi_digitalocean/database_db.py +35 -36
- pulumi_digitalocean/database_firewall.py +21 -22
- pulumi_digitalocean/database_kafka_config.py +307 -308
- pulumi_digitalocean/database_kafka_topic.py +81 -82
- pulumi_digitalocean/database_mongodb_config.py +103 -104
- pulumi_digitalocean/database_mysql_config.py +477 -478
- pulumi_digitalocean/database_opensearch_config.py +664 -665
- pulumi_digitalocean/database_postgresql_config.py +857 -858
- pulumi_digitalocean/database_redis_config.py +205 -206
- pulumi_digitalocean/database_replica.py +197 -198
- pulumi_digitalocean/database_user.py +91 -92
- pulumi_digitalocean/dns_record.py +180 -181
- pulumi_digitalocean/domain.py +53 -54
- pulumi_digitalocean/droplet.py +388 -389
- pulumi_digitalocean/droplet_autoscale.py +53 -54
- pulumi_digitalocean/droplet_snapshot.py +71 -72
- pulumi_digitalocean/firewall.py +78 -79
- pulumi_digitalocean/floating_ip.py +61 -62
- pulumi_digitalocean/floating_ip_assignment.py +35 -36
- pulumi_digitalocean/genai_agent.py +452 -453
- pulumi_digitalocean/get_account.py +17 -18
- pulumi_digitalocean/get_app.py +27 -28
- pulumi_digitalocean/get_certificate.py +21 -22
- pulumi_digitalocean/get_container_registry.py +21 -22
- pulumi_digitalocean/get_database_ca.py +11 -12
- pulumi_digitalocean/get_database_cluster.py +60 -61
- pulumi_digitalocean/get_database_connection_pool.py +35 -36
- pulumi_digitalocean/get_database_replica.py +45 -46
- pulumi_digitalocean/get_database_user.py +26 -27
- pulumi_digitalocean/get_domain.py +15 -16
- pulumi_digitalocean/get_domains.py +6 -7
- pulumi_digitalocean/get_droplet.py +71 -72
- pulumi_digitalocean/get_droplet_autoscale.py +22 -23
- pulumi_digitalocean/get_droplet_snapshot.py +37 -38
- pulumi_digitalocean/get_droplets.py +12 -13
- pulumi_digitalocean/get_firewall.py +30 -31
- pulumi_digitalocean/get_floating_ip.py +15 -16
- pulumi_digitalocean/get_genai_agent.py +89 -90
- pulumi_digitalocean/get_genai_agents.py +10 -11
- pulumi_digitalocean/get_image.py +49 -50
- pulumi_digitalocean/get_images.py +6 -7
- pulumi_digitalocean/get_kubernetes_cluster.py +53 -54
- pulumi_digitalocean/get_kubernetes_versions.py +13 -14
- pulumi_digitalocean/get_load_balancer.py +59 -60
- pulumi_digitalocean/get_partner_attachment.py +30 -31
- pulumi_digitalocean/get_partner_attachment_service_key.py +13 -14
- pulumi_digitalocean/get_project.py +31 -32
- pulumi_digitalocean/get_projects.py +6 -7
- pulumi_digitalocean/get_record.py +31 -32
- pulumi_digitalocean/get_records.py +12 -13
- pulumi_digitalocean/get_region.py +17 -18
- pulumi_digitalocean/get_regions.py +6 -7
- pulumi_digitalocean/get_reserved_ip.py +15 -16
- pulumi_digitalocean/get_reserved_ipv6.py +15 -16
- pulumi_digitalocean/get_sizes.py +6 -7
- pulumi_digitalocean/get_spaces_bucket.py +21 -22
- pulumi_digitalocean/get_spaces_bucket_object.py +57 -58
- pulumi_digitalocean/get_spaces_bucket_objects.py +45 -46
- pulumi_digitalocean/get_spaces_buckets.py +6 -7
- pulumi_digitalocean/get_spaces_key.py +14 -15
- pulumi_digitalocean/get_ssh_key.py +13 -14
- pulumi_digitalocean/get_ssh_keys.py +6 -7
- pulumi_digitalocean/get_tag.py +21 -22
- pulumi_digitalocean/get_tags.py +6 -7
- pulumi_digitalocean/get_volume.py +33 -34
- pulumi_digitalocean/get_volume_snapshot.py +39 -40
- pulumi_digitalocean/get_vpc.py +29 -30
- pulumi_digitalocean/get_vpc_nat_gateway.py +33 -34
- pulumi_digitalocean/get_vpc_peering.py +23 -24
- pulumi_digitalocean/kubernetes_cluster.py +293 -294
- pulumi_digitalocean/kubernetes_node_pool.py +168 -169
- pulumi_digitalocean/load_balancer.py +374 -375
- pulumi_digitalocean/monitor_alert.py +149 -150
- pulumi_digitalocean/outputs.py +7064 -7065
- pulumi_digitalocean/partner_attachment.py +150 -151
- pulumi_digitalocean/project.py +139 -140
- pulumi_digitalocean/project_resources.py +35 -36
- pulumi_digitalocean/provider.py +84 -85
- pulumi_digitalocean/pulumi-plugin.json +1 -1
- pulumi_digitalocean/reserved_ip.py +61 -62
- pulumi_digitalocean/reserved_ip_assignment.py +35 -36
- pulumi_digitalocean/reserved_ipv6.py +53 -54
- pulumi_digitalocean/reserved_ipv6_assignment.py +35 -36
- pulumi_digitalocean/spaces_bucket.py +105 -106
- pulumi_digitalocean/spaces_bucket_cors_configuration.py +38 -39
- pulumi_digitalocean/spaces_bucket_logging.py +69 -70
- pulumi_digitalocean/spaces_bucket_object.py +282 -283
- pulumi_digitalocean/spaces_bucket_policy.py +52 -53
- pulumi_digitalocean/spaces_key.py +48 -49
- pulumi_digitalocean/ssh_key.py +44 -45
- pulumi_digitalocean/tag.py +72 -73
- pulumi_digitalocean/uptime_alert.py +106 -107
- pulumi_digitalocean/uptime_check.py +86 -87
- pulumi_digitalocean/volume.py +181 -182
- pulumi_digitalocean/volume_attachment.py +35 -36
- pulumi_digitalocean/volume_snapshot.py +88 -89
- pulumi_digitalocean/vpc.py +96 -97
- pulumi_digitalocean/vpc_nat_gateway.py +152 -153
- pulumi_digitalocean/vpc_peering.py +53 -54
- {pulumi_digitalocean-4.50.0a1753335988.dist-info → pulumi_digitalocean-4.50.0a1753508712.dist-info}/METADATA +1 -1
- pulumi_digitalocean-4.50.0a1753508712.dist-info/RECORD +119 -0
- pulumi_digitalocean-4.50.0a1753335988.dist-info/RECORD +0 -119
- {pulumi_digitalocean-4.50.0a1753335988.dist-info → pulumi_digitalocean-4.50.0a1753508712.dist-info}/WHEEL +0 -0
- {pulumi_digitalocean-4.50.0a1753335988.dist-info → pulumi_digitalocean-4.50.0a1753508712.dist-info}/top_level.txt +0 -0
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import builtins
|
|
6
|
-
import copy
|
|
5
|
+
import builtins as _builtins
|
|
7
6
|
import warnings
|
|
8
7
|
import sys
|
|
9
8
|
import pulumi
|
|
@@ -24,43 +23,43 @@ __all__ = ['KubernetesClusterArgs', 'KubernetesCluster']
|
|
|
24
23
|
class KubernetesClusterArgs:
|
|
25
24
|
def __init__(__self__, *,
|
|
26
25
|
node_pool: pulumi.Input['KubernetesClusterNodePoolArgs'],
|
|
27
|
-
region: pulumi.Input[Union[
|
|
28
|
-
version: pulumi.Input[
|
|
29
|
-
auto_upgrade: Optional[pulumi.Input[
|
|
26
|
+
region: pulumi.Input[Union[_builtins.str, 'Region']],
|
|
27
|
+
version: pulumi.Input[_builtins.str],
|
|
28
|
+
auto_upgrade: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
30
29
|
cluster_autoscaler_configurations: Optional[pulumi.Input[Sequence[pulumi.Input['KubernetesClusterClusterAutoscalerConfigurationArgs']]]] = None,
|
|
31
|
-
cluster_subnet: Optional[pulumi.Input[
|
|
30
|
+
cluster_subnet: Optional[pulumi.Input[_builtins.str]] = None,
|
|
32
31
|
control_plane_firewall: Optional[pulumi.Input['KubernetesClusterControlPlaneFirewallArgs']] = None,
|
|
33
|
-
destroy_all_associated_resources: Optional[pulumi.Input[
|
|
34
|
-
ha: Optional[pulumi.Input[
|
|
35
|
-
kubeconfig_expire_seconds: Optional[pulumi.Input[
|
|
32
|
+
destroy_all_associated_resources: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
33
|
+
ha: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
34
|
+
kubeconfig_expire_seconds: Optional[pulumi.Input[_builtins.int]] = None,
|
|
36
35
|
maintenance_policy: Optional[pulumi.Input['KubernetesClusterMaintenancePolicyArgs']] = None,
|
|
37
|
-
name: Optional[pulumi.Input[
|
|
38
|
-
registry_integration: Optional[pulumi.Input[
|
|
36
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
37
|
+
registry_integration: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
39
38
|
routing_agent: Optional[pulumi.Input['KubernetesClusterRoutingAgentArgs']] = None,
|
|
40
|
-
service_subnet: Optional[pulumi.Input[
|
|
41
|
-
surge_upgrade: Optional[pulumi.Input[
|
|
42
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
43
|
-
vpc_uuid: Optional[pulumi.Input[
|
|
39
|
+
service_subnet: Optional[pulumi.Input[_builtins.str]] = None,
|
|
40
|
+
surge_upgrade: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
41
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
42
|
+
vpc_uuid: Optional[pulumi.Input[_builtins.str]] = None):
|
|
44
43
|
"""
|
|
45
44
|
The set of arguments for constructing a KubernetesCluster resource.
|
|
46
45
|
:param pulumi.Input['KubernetesClusterNodePoolArgs'] node_pool: A block representing the cluster's default node pool. Additional node pools may be added to the cluster using the `KubernetesNodePool` resource. The following arguments may be specified:
|
|
47
|
-
:param pulumi.Input[Union[
|
|
48
|
-
:param pulumi.Input[
|
|
49
|
-
:param pulumi.Input[
|
|
46
|
+
:param pulumi.Input[Union[_builtins.str, 'Region']] region: The slug identifier for the region where the Kubernetes cluster will be created.
|
|
47
|
+
:param pulumi.Input[_builtins.str] version: The slug identifier for the version of Kubernetes used for the cluster. Use [doctl](https://github.com/digitalocean/doctl) to find the available versions `doctl kubernetes options versions`. (**Note:** A cluster may only be upgraded to newer versions in-place. If the version is decreased, a new resource will be created.)
|
|
48
|
+
:param pulumi.Input[_builtins.bool] auto_upgrade: A boolean value indicating whether the cluster will be automatically upgraded to new patch releases during its maintenance window.
|
|
50
49
|
:param pulumi.Input[Sequence[pulumi.Input['KubernetesClusterClusterAutoscalerConfigurationArgs']]] cluster_autoscaler_configurations: Block containing options for cluster auto-scaling.
|
|
51
|
-
:param pulumi.Input[
|
|
50
|
+
:param pulumi.Input[_builtins.str] cluster_subnet: The range of IP addresses in the overlay network of the Kubernetes cluster. For more information, see [here](https://docs.digitalocean.com/products/kubernetes/how-to/create-clusters/#create-with-vpc-native).
|
|
52
51
|
:param pulumi.Input['KubernetesClusterControlPlaneFirewallArgs'] control_plane_firewall: A block representing the cluster's control plane firewall
|
|
53
|
-
:param pulumi.Input[
|
|
54
|
-
:param pulumi.Input[
|
|
55
|
-
:param pulumi.Input[
|
|
52
|
+
:param pulumi.Input[_builtins.bool] destroy_all_associated_resources: **Use with caution.** When set to true, all associated DigitalOcean resources created via the Kubernetes API (load balancers, volumes, and volume snapshots) will be destroyed along with the cluster when it is destroyed.
|
|
53
|
+
:param pulumi.Input[_builtins.bool] ha: Enable/disable the high availability control plane for a cluster. Once enabled for a cluster, high availability cannot be disabled. Default: false
|
|
54
|
+
:param pulumi.Input[_builtins.int] kubeconfig_expire_seconds: The duration in seconds that the returned Kubernetes credentials will be valid. If not set or 0, the credentials will have a 7 day expiry.
|
|
56
55
|
:param pulumi.Input['KubernetesClusterMaintenancePolicyArgs'] maintenance_policy: A block representing the cluster's maintenance window. Updates will be applied within this window. If not specified, a default maintenance window will be chosen. `auto_upgrade` must be set to `true` for this to have an effect.
|
|
57
|
-
:param pulumi.Input[
|
|
58
|
-
:param pulumi.Input[
|
|
56
|
+
:param pulumi.Input[_builtins.str] name: A name for the Kubernetes cluster.
|
|
57
|
+
:param pulumi.Input[_builtins.bool] registry_integration: Enables or disables the DigitalOcean container registry integration for the cluster. This requires that a container registry has first been created for the account. Default: false
|
|
59
58
|
:param pulumi.Input['KubernetesClusterRoutingAgentArgs'] routing_agent: Block containing options for the routing-agent component. If not specified, the routing-agent component will not be installed in the cluster.
|
|
60
|
-
:param pulumi.Input[
|
|
61
|
-
:param pulumi.Input[
|
|
62
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
63
|
-
:param pulumi.Input[
|
|
59
|
+
:param pulumi.Input[_builtins.str] service_subnet: The range of assignable IP addresses for services running in the Kubernetes cluster. For more information, see [here](https://docs.digitalocean.com/products/kubernetes/how-to/create-clusters/#create-with-vpc-native).
|
|
60
|
+
:param pulumi.Input[_builtins.bool] surge_upgrade: Enable/disable surge upgrades for a cluster. Default: true
|
|
61
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: A list of tag names to be applied to the Kubernetes cluster.
|
|
62
|
+
:param pulumi.Input[_builtins.str] vpc_uuid: The ID of the VPC where the Kubernetes cluster will be located.
|
|
64
63
|
"""
|
|
65
64
|
pulumi.set(__self__, "node_pool", node_pool)
|
|
66
65
|
pulumi.set(__self__, "region", region)
|
|
@@ -96,7 +95,7 @@ class KubernetesClusterArgs:
|
|
|
96
95
|
if vpc_uuid is not None:
|
|
97
96
|
pulumi.set(__self__, "vpc_uuid", vpc_uuid)
|
|
98
97
|
|
|
99
|
-
@property
|
|
98
|
+
@_builtins.property
|
|
100
99
|
@pulumi.getter(name="nodePool")
|
|
101
100
|
def node_pool(self) -> pulumi.Input['KubernetesClusterNodePoolArgs']:
|
|
102
101
|
"""
|
|
@@ -108,43 +107,43 @@ class KubernetesClusterArgs:
|
|
|
108
107
|
def node_pool(self, value: pulumi.Input['KubernetesClusterNodePoolArgs']):
|
|
109
108
|
pulumi.set(self, "node_pool", value)
|
|
110
109
|
|
|
111
|
-
@property
|
|
110
|
+
@_builtins.property
|
|
112
111
|
@pulumi.getter
|
|
113
|
-
def region(self) -> pulumi.Input[Union[
|
|
112
|
+
def region(self) -> pulumi.Input[Union[_builtins.str, 'Region']]:
|
|
114
113
|
"""
|
|
115
114
|
The slug identifier for the region where the Kubernetes cluster will be created.
|
|
116
115
|
"""
|
|
117
116
|
return pulumi.get(self, "region")
|
|
118
117
|
|
|
119
118
|
@region.setter
|
|
120
|
-
def region(self, value: pulumi.Input[Union[
|
|
119
|
+
def region(self, value: pulumi.Input[Union[_builtins.str, 'Region']]):
|
|
121
120
|
pulumi.set(self, "region", value)
|
|
122
121
|
|
|
123
|
-
@property
|
|
122
|
+
@_builtins.property
|
|
124
123
|
@pulumi.getter
|
|
125
|
-
def version(self) -> pulumi.Input[
|
|
124
|
+
def version(self) -> pulumi.Input[_builtins.str]:
|
|
126
125
|
"""
|
|
127
126
|
The slug identifier for the version of Kubernetes used for the cluster. Use [doctl](https://github.com/digitalocean/doctl) to find the available versions `doctl kubernetes options versions`. (**Note:** A cluster may only be upgraded to newer versions in-place. If the version is decreased, a new resource will be created.)
|
|
128
127
|
"""
|
|
129
128
|
return pulumi.get(self, "version")
|
|
130
129
|
|
|
131
130
|
@version.setter
|
|
132
|
-
def version(self, value: pulumi.Input[
|
|
131
|
+
def version(self, value: pulumi.Input[_builtins.str]):
|
|
133
132
|
pulumi.set(self, "version", value)
|
|
134
133
|
|
|
135
|
-
@property
|
|
134
|
+
@_builtins.property
|
|
136
135
|
@pulumi.getter(name="autoUpgrade")
|
|
137
|
-
def auto_upgrade(self) -> Optional[pulumi.Input[
|
|
136
|
+
def auto_upgrade(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
138
137
|
"""
|
|
139
138
|
A boolean value indicating whether the cluster will be automatically upgraded to new patch releases during its maintenance window.
|
|
140
139
|
"""
|
|
141
140
|
return pulumi.get(self, "auto_upgrade")
|
|
142
141
|
|
|
143
142
|
@auto_upgrade.setter
|
|
144
|
-
def auto_upgrade(self, value: Optional[pulumi.Input[
|
|
143
|
+
def auto_upgrade(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
145
144
|
pulumi.set(self, "auto_upgrade", value)
|
|
146
145
|
|
|
147
|
-
@property
|
|
146
|
+
@_builtins.property
|
|
148
147
|
@pulumi.getter(name="clusterAutoscalerConfigurations")
|
|
149
148
|
def cluster_autoscaler_configurations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['KubernetesClusterClusterAutoscalerConfigurationArgs']]]]:
|
|
150
149
|
"""
|
|
@@ -156,19 +155,19 @@ class KubernetesClusterArgs:
|
|
|
156
155
|
def cluster_autoscaler_configurations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['KubernetesClusterClusterAutoscalerConfigurationArgs']]]]):
|
|
157
156
|
pulumi.set(self, "cluster_autoscaler_configurations", value)
|
|
158
157
|
|
|
159
|
-
@property
|
|
158
|
+
@_builtins.property
|
|
160
159
|
@pulumi.getter(name="clusterSubnet")
|
|
161
|
-
def cluster_subnet(self) -> Optional[pulumi.Input[
|
|
160
|
+
def cluster_subnet(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
162
161
|
"""
|
|
163
162
|
The range of IP addresses in the overlay network of the Kubernetes cluster. For more information, see [here](https://docs.digitalocean.com/products/kubernetes/how-to/create-clusters/#create-with-vpc-native).
|
|
164
163
|
"""
|
|
165
164
|
return pulumi.get(self, "cluster_subnet")
|
|
166
165
|
|
|
167
166
|
@cluster_subnet.setter
|
|
168
|
-
def cluster_subnet(self, value: Optional[pulumi.Input[
|
|
167
|
+
def cluster_subnet(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
169
168
|
pulumi.set(self, "cluster_subnet", value)
|
|
170
169
|
|
|
171
|
-
@property
|
|
170
|
+
@_builtins.property
|
|
172
171
|
@pulumi.getter(name="controlPlaneFirewall")
|
|
173
172
|
def control_plane_firewall(self) -> Optional[pulumi.Input['KubernetesClusterControlPlaneFirewallArgs']]:
|
|
174
173
|
"""
|
|
@@ -180,43 +179,43 @@ class KubernetesClusterArgs:
|
|
|
180
179
|
def control_plane_firewall(self, value: Optional[pulumi.Input['KubernetesClusterControlPlaneFirewallArgs']]):
|
|
181
180
|
pulumi.set(self, "control_plane_firewall", value)
|
|
182
181
|
|
|
183
|
-
@property
|
|
182
|
+
@_builtins.property
|
|
184
183
|
@pulumi.getter(name="destroyAllAssociatedResources")
|
|
185
|
-
def destroy_all_associated_resources(self) -> Optional[pulumi.Input[
|
|
184
|
+
def destroy_all_associated_resources(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
186
185
|
"""
|
|
187
186
|
**Use with caution.** When set to true, all associated DigitalOcean resources created via the Kubernetes API (load balancers, volumes, and volume snapshots) will be destroyed along with the cluster when it is destroyed.
|
|
188
187
|
"""
|
|
189
188
|
return pulumi.get(self, "destroy_all_associated_resources")
|
|
190
189
|
|
|
191
190
|
@destroy_all_associated_resources.setter
|
|
192
|
-
def destroy_all_associated_resources(self, value: Optional[pulumi.Input[
|
|
191
|
+
def destroy_all_associated_resources(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
193
192
|
pulumi.set(self, "destroy_all_associated_resources", value)
|
|
194
193
|
|
|
195
|
-
@property
|
|
194
|
+
@_builtins.property
|
|
196
195
|
@pulumi.getter
|
|
197
|
-
def ha(self) -> Optional[pulumi.Input[
|
|
196
|
+
def ha(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
198
197
|
"""
|
|
199
198
|
Enable/disable the high availability control plane for a cluster. Once enabled for a cluster, high availability cannot be disabled. Default: false
|
|
200
199
|
"""
|
|
201
200
|
return pulumi.get(self, "ha")
|
|
202
201
|
|
|
203
202
|
@ha.setter
|
|
204
|
-
def ha(self, value: Optional[pulumi.Input[
|
|
203
|
+
def ha(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
205
204
|
pulumi.set(self, "ha", value)
|
|
206
205
|
|
|
207
|
-
@property
|
|
206
|
+
@_builtins.property
|
|
208
207
|
@pulumi.getter(name="kubeconfigExpireSeconds")
|
|
209
|
-
def kubeconfig_expire_seconds(self) -> Optional[pulumi.Input[
|
|
208
|
+
def kubeconfig_expire_seconds(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
210
209
|
"""
|
|
211
210
|
The duration in seconds that the returned Kubernetes credentials will be valid. If not set or 0, the credentials will have a 7 day expiry.
|
|
212
211
|
"""
|
|
213
212
|
return pulumi.get(self, "kubeconfig_expire_seconds")
|
|
214
213
|
|
|
215
214
|
@kubeconfig_expire_seconds.setter
|
|
216
|
-
def kubeconfig_expire_seconds(self, value: Optional[pulumi.Input[
|
|
215
|
+
def kubeconfig_expire_seconds(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
217
216
|
pulumi.set(self, "kubeconfig_expire_seconds", value)
|
|
218
217
|
|
|
219
|
-
@property
|
|
218
|
+
@_builtins.property
|
|
220
219
|
@pulumi.getter(name="maintenancePolicy")
|
|
221
220
|
def maintenance_policy(self) -> Optional[pulumi.Input['KubernetesClusterMaintenancePolicyArgs']]:
|
|
222
221
|
"""
|
|
@@ -228,31 +227,31 @@ class KubernetesClusterArgs:
|
|
|
228
227
|
def maintenance_policy(self, value: Optional[pulumi.Input['KubernetesClusterMaintenancePolicyArgs']]):
|
|
229
228
|
pulumi.set(self, "maintenance_policy", value)
|
|
230
229
|
|
|
231
|
-
@property
|
|
230
|
+
@_builtins.property
|
|
232
231
|
@pulumi.getter
|
|
233
|
-
def name(self) -> Optional[pulumi.Input[
|
|
232
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
234
233
|
"""
|
|
235
234
|
A name for the Kubernetes cluster.
|
|
236
235
|
"""
|
|
237
236
|
return pulumi.get(self, "name")
|
|
238
237
|
|
|
239
238
|
@name.setter
|
|
240
|
-
def name(self, value: Optional[pulumi.Input[
|
|
239
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
241
240
|
pulumi.set(self, "name", value)
|
|
242
241
|
|
|
243
|
-
@property
|
|
242
|
+
@_builtins.property
|
|
244
243
|
@pulumi.getter(name="registryIntegration")
|
|
245
|
-
def registry_integration(self) -> Optional[pulumi.Input[
|
|
244
|
+
def registry_integration(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
246
245
|
"""
|
|
247
246
|
Enables or disables the DigitalOcean container registry integration for the cluster. This requires that a container registry has first been created for the account. Default: false
|
|
248
247
|
"""
|
|
249
248
|
return pulumi.get(self, "registry_integration")
|
|
250
249
|
|
|
251
250
|
@registry_integration.setter
|
|
252
|
-
def registry_integration(self, value: Optional[pulumi.Input[
|
|
251
|
+
def registry_integration(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
253
252
|
pulumi.set(self, "registry_integration", value)
|
|
254
253
|
|
|
255
|
-
@property
|
|
254
|
+
@_builtins.property
|
|
256
255
|
@pulumi.getter(name="routingAgent")
|
|
257
256
|
def routing_agent(self) -> Optional[pulumi.Input['KubernetesClusterRoutingAgentArgs']]:
|
|
258
257
|
"""
|
|
@@ -264,110 +263,110 @@ class KubernetesClusterArgs:
|
|
|
264
263
|
def routing_agent(self, value: Optional[pulumi.Input['KubernetesClusterRoutingAgentArgs']]):
|
|
265
264
|
pulumi.set(self, "routing_agent", value)
|
|
266
265
|
|
|
267
|
-
@property
|
|
266
|
+
@_builtins.property
|
|
268
267
|
@pulumi.getter(name="serviceSubnet")
|
|
269
|
-
def service_subnet(self) -> Optional[pulumi.Input[
|
|
268
|
+
def service_subnet(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
270
269
|
"""
|
|
271
270
|
The range of assignable IP addresses for services running in the Kubernetes cluster. For more information, see [here](https://docs.digitalocean.com/products/kubernetes/how-to/create-clusters/#create-with-vpc-native).
|
|
272
271
|
"""
|
|
273
272
|
return pulumi.get(self, "service_subnet")
|
|
274
273
|
|
|
275
274
|
@service_subnet.setter
|
|
276
|
-
def service_subnet(self, value: Optional[pulumi.Input[
|
|
275
|
+
def service_subnet(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
277
276
|
pulumi.set(self, "service_subnet", value)
|
|
278
277
|
|
|
279
|
-
@property
|
|
278
|
+
@_builtins.property
|
|
280
279
|
@pulumi.getter(name="surgeUpgrade")
|
|
281
|
-
def surge_upgrade(self) -> Optional[pulumi.Input[
|
|
280
|
+
def surge_upgrade(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
282
281
|
"""
|
|
283
282
|
Enable/disable surge upgrades for a cluster. Default: true
|
|
284
283
|
"""
|
|
285
284
|
return pulumi.get(self, "surge_upgrade")
|
|
286
285
|
|
|
287
286
|
@surge_upgrade.setter
|
|
288
|
-
def surge_upgrade(self, value: Optional[pulumi.Input[
|
|
287
|
+
def surge_upgrade(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
289
288
|
pulumi.set(self, "surge_upgrade", value)
|
|
290
289
|
|
|
291
|
-
@property
|
|
290
|
+
@_builtins.property
|
|
292
291
|
@pulumi.getter
|
|
293
|
-
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
292
|
+
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
294
293
|
"""
|
|
295
294
|
A list of tag names to be applied to the Kubernetes cluster.
|
|
296
295
|
"""
|
|
297
296
|
return pulumi.get(self, "tags")
|
|
298
297
|
|
|
299
298
|
@tags.setter
|
|
300
|
-
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
299
|
+
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
301
300
|
pulumi.set(self, "tags", value)
|
|
302
301
|
|
|
303
|
-
@property
|
|
302
|
+
@_builtins.property
|
|
304
303
|
@pulumi.getter(name="vpcUuid")
|
|
305
|
-
def vpc_uuid(self) -> Optional[pulumi.Input[
|
|
304
|
+
def vpc_uuid(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
306
305
|
"""
|
|
307
306
|
The ID of the VPC where the Kubernetes cluster will be located.
|
|
308
307
|
"""
|
|
309
308
|
return pulumi.get(self, "vpc_uuid")
|
|
310
309
|
|
|
311
310
|
@vpc_uuid.setter
|
|
312
|
-
def vpc_uuid(self, value: Optional[pulumi.Input[
|
|
311
|
+
def vpc_uuid(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
313
312
|
pulumi.set(self, "vpc_uuid", value)
|
|
314
313
|
|
|
315
314
|
|
|
316
315
|
@pulumi.input_type
|
|
317
316
|
class _KubernetesClusterState:
|
|
318
317
|
def __init__(__self__, *,
|
|
319
|
-
auto_upgrade: Optional[pulumi.Input[
|
|
318
|
+
auto_upgrade: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
320
319
|
cluster_autoscaler_configurations: Optional[pulumi.Input[Sequence[pulumi.Input['KubernetesClusterClusterAutoscalerConfigurationArgs']]]] = None,
|
|
321
|
-
cluster_subnet: Optional[pulumi.Input[
|
|
322
|
-
cluster_urn: Optional[pulumi.Input[
|
|
320
|
+
cluster_subnet: Optional[pulumi.Input[_builtins.str]] = None,
|
|
321
|
+
cluster_urn: Optional[pulumi.Input[_builtins.str]] = None,
|
|
323
322
|
control_plane_firewall: Optional[pulumi.Input['KubernetesClusterControlPlaneFirewallArgs']] = None,
|
|
324
|
-
created_at: Optional[pulumi.Input[
|
|
325
|
-
destroy_all_associated_resources: Optional[pulumi.Input[
|
|
326
|
-
endpoint: Optional[pulumi.Input[
|
|
327
|
-
ha: Optional[pulumi.Input[
|
|
328
|
-
ipv4_address: Optional[pulumi.Input[
|
|
323
|
+
created_at: Optional[pulumi.Input[_builtins.str]] = None,
|
|
324
|
+
destroy_all_associated_resources: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
325
|
+
endpoint: Optional[pulumi.Input[_builtins.str]] = None,
|
|
326
|
+
ha: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
327
|
+
ipv4_address: Optional[pulumi.Input[_builtins.str]] = None,
|
|
329
328
|
kube_configs: Optional[pulumi.Input[Sequence[pulumi.Input['KubernetesClusterKubeConfigArgs']]]] = None,
|
|
330
|
-
kubeconfig_expire_seconds: Optional[pulumi.Input[
|
|
329
|
+
kubeconfig_expire_seconds: Optional[pulumi.Input[_builtins.int]] = None,
|
|
331
330
|
maintenance_policy: Optional[pulumi.Input['KubernetesClusterMaintenancePolicyArgs']] = None,
|
|
332
|
-
name: Optional[pulumi.Input[
|
|
331
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
333
332
|
node_pool: Optional[pulumi.Input['KubernetesClusterNodePoolArgs']] = None,
|
|
334
|
-
region: Optional[pulumi.Input[Union[
|
|
335
|
-
registry_integration: Optional[pulumi.Input[
|
|
333
|
+
region: Optional[pulumi.Input[Union[_builtins.str, 'Region']]] = None,
|
|
334
|
+
registry_integration: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
336
335
|
routing_agent: Optional[pulumi.Input['KubernetesClusterRoutingAgentArgs']] = None,
|
|
337
|
-
service_subnet: Optional[pulumi.Input[
|
|
338
|
-
status: Optional[pulumi.Input[
|
|
339
|
-
surge_upgrade: Optional[pulumi.Input[
|
|
340
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
341
|
-
updated_at: Optional[pulumi.Input[
|
|
342
|
-
version: Optional[pulumi.Input[
|
|
343
|
-
vpc_uuid: Optional[pulumi.Input[
|
|
336
|
+
service_subnet: Optional[pulumi.Input[_builtins.str]] = None,
|
|
337
|
+
status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
338
|
+
surge_upgrade: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
339
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
340
|
+
updated_at: Optional[pulumi.Input[_builtins.str]] = None,
|
|
341
|
+
version: Optional[pulumi.Input[_builtins.str]] = None,
|
|
342
|
+
vpc_uuid: Optional[pulumi.Input[_builtins.str]] = None):
|
|
344
343
|
"""
|
|
345
344
|
Input properties used for looking up and filtering KubernetesCluster resources.
|
|
346
|
-
:param pulumi.Input[
|
|
345
|
+
:param pulumi.Input[_builtins.bool] auto_upgrade: A boolean value indicating whether the cluster will be automatically upgraded to new patch releases during its maintenance window.
|
|
347
346
|
:param pulumi.Input[Sequence[pulumi.Input['KubernetesClusterClusterAutoscalerConfigurationArgs']]] cluster_autoscaler_configurations: Block containing options for cluster auto-scaling.
|
|
348
|
-
:param pulumi.Input[
|
|
349
|
-
:param pulumi.Input[
|
|
347
|
+
:param pulumi.Input[_builtins.str] cluster_subnet: The range of IP addresses in the overlay network of the Kubernetes cluster. For more information, see [here](https://docs.digitalocean.com/products/kubernetes/how-to/create-clusters/#create-with-vpc-native).
|
|
348
|
+
:param pulumi.Input[_builtins.str] cluster_urn: The uniform resource name (URN) for the Kubernetes cluster.
|
|
350
349
|
:param pulumi.Input['KubernetesClusterControlPlaneFirewallArgs'] control_plane_firewall: A block representing the cluster's control plane firewall
|
|
351
|
-
:param pulumi.Input[
|
|
352
|
-
:param pulumi.Input[
|
|
353
|
-
:param pulumi.Input[
|
|
354
|
-
:param pulumi.Input[
|
|
355
|
-
:param pulumi.Input[
|
|
350
|
+
:param pulumi.Input[_builtins.str] created_at: The date and time when the node was created.
|
|
351
|
+
:param pulumi.Input[_builtins.bool] destroy_all_associated_resources: **Use with caution.** When set to true, all associated DigitalOcean resources created via the Kubernetes API (load balancers, volumes, and volume snapshots) will be destroyed along with the cluster when it is destroyed.
|
|
352
|
+
:param pulumi.Input[_builtins.str] endpoint: The base URL of the API server on the Kubernetes master node.
|
|
353
|
+
:param pulumi.Input[_builtins.bool] ha: Enable/disable the high availability control plane for a cluster. Once enabled for a cluster, high availability cannot be disabled. Default: false
|
|
354
|
+
:param pulumi.Input[_builtins.str] ipv4_address: The public IPv4 address of the Kubernetes master node. This will not be set if high availability is configured on the cluster (v1.21+)
|
|
356
355
|
:param pulumi.Input[Sequence[pulumi.Input['KubernetesClusterKubeConfigArgs']]] kube_configs: A representation of the Kubernetes cluster's kubeconfig with the following attributes:
|
|
357
|
-
:param pulumi.Input[
|
|
356
|
+
:param pulumi.Input[_builtins.int] kubeconfig_expire_seconds: The duration in seconds that the returned Kubernetes credentials will be valid. If not set or 0, the credentials will have a 7 day expiry.
|
|
358
357
|
:param pulumi.Input['KubernetesClusterMaintenancePolicyArgs'] maintenance_policy: A block representing the cluster's maintenance window. Updates will be applied within this window. If not specified, a default maintenance window will be chosen. `auto_upgrade` must be set to `true` for this to have an effect.
|
|
359
|
-
:param pulumi.Input[
|
|
358
|
+
:param pulumi.Input[_builtins.str] name: A name for the Kubernetes cluster.
|
|
360
359
|
:param pulumi.Input['KubernetesClusterNodePoolArgs'] node_pool: A block representing the cluster's default node pool. Additional node pools may be added to the cluster using the `KubernetesNodePool` resource. The following arguments may be specified:
|
|
361
|
-
:param pulumi.Input[Union[
|
|
362
|
-
:param pulumi.Input[
|
|
360
|
+
:param pulumi.Input[Union[_builtins.str, 'Region']] region: The slug identifier for the region where the Kubernetes cluster will be created.
|
|
361
|
+
:param pulumi.Input[_builtins.bool] registry_integration: Enables or disables the DigitalOcean container registry integration for the cluster. This requires that a container registry has first been created for the account. Default: false
|
|
363
362
|
:param pulumi.Input['KubernetesClusterRoutingAgentArgs'] routing_agent: Block containing options for the routing-agent component. If not specified, the routing-agent component will not be installed in the cluster.
|
|
364
|
-
:param pulumi.Input[
|
|
365
|
-
:param pulumi.Input[
|
|
366
|
-
:param pulumi.Input[
|
|
367
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
368
|
-
:param pulumi.Input[
|
|
369
|
-
:param pulumi.Input[
|
|
370
|
-
:param pulumi.Input[
|
|
363
|
+
:param pulumi.Input[_builtins.str] service_subnet: The range of assignable IP addresses for services running in the Kubernetes cluster. For more information, see [here](https://docs.digitalocean.com/products/kubernetes/how-to/create-clusters/#create-with-vpc-native).
|
|
364
|
+
:param pulumi.Input[_builtins.str] status: A string indicating the current status of the individual node.
|
|
365
|
+
:param pulumi.Input[_builtins.bool] surge_upgrade: Enable/disable surge upgrades for a cluster. Default: true
|
|
366
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: A list of tag names to be applied to the Kubernetes cluster.
|
|
367
|
+
:param pulumi.Input[_builtins.str] updated_at: The date and time when the node was last updated.
|
|
368
|
+
:param pulumi.Input[_builtins.str] version: The slug identifier for the version of Kubernetes used for the cluster. Use [doctl](https://github.com/digitalocean/doctl) to find the available versions `doctl kubernetes options versions`. (**Note:** A cluster may only be upgraded to newer versions in-place. If the version is decreased, a new resource will be created.)
|
|
369
|
+
:param pulumi.Input[_builtins.str] vpc_uuid: The ID of the VPC where the Kubernetes cluster will be located.
|
|
371
370
|
"""
|
|
372
371
|
if auto_upgrade is not None:
|
|
373
372
|
pulumi.set(__self__, "auto_upgrade", auto_upgrade)
|
|
@@ -420,19 +419,19 @@ class _KubernetesClusterState:
|
|
|
420
419
|
if vpc_uuid is not None:
|
|
421
420
|
pulumi.set(__self__, "vpc_uuid", vpc_uuid)
|
|
422
421
|
|
|
423
|
-
@property
|
|
422
|
+
@_builtins.property
|
|
424
423
|
@pulumi.getter(name="autoUpgrade")
|
|
425
|
-
def auto_upgrade(self) -> Optional[pulumi.Input[
|
|
424
|
+
def auto_upgrade(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
426
425
|
"""
|
|
427
426
|
A boolean value indicating whether the cluster will be automatically upgraded to new patch releases during its maintenance window.
|
|
428
427
|
"""
|
|
429
428
|
return pulumi.get(self, "auto_upgrade")
|
|
430
429
|
|
|
431
430
|
@auto_upgrade.setter
|
|
432
|
-
def auto_upgrade(self, value: Optional[pulumi.Input[
|
|
431
|
+
def auto_upgrade(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
433
432
|
pulumi.set(self, "auto_upgrade", value)
|
|
434
433
|
|
|
435
|
-
@property
|
|
434
|
+
@_builtins.property
|
|
436
435
|
@pulumi.getter(name="clusterAutoscalerConfigurations")
|
|
437
436
|
def cluster_autoscaler_configurations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['KubernetesClusterClusterAutoscalerConfigurationArgs']]]]:
|
|
438
437
|
"""
|
|
@@ -444,31 +443,31 @@ class _KubernetesClusterState:
|
|
|
444
443
|
def cluster_autoscaler_configurations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['KubernetesClusterClusterAutoscalerConfigurationArgs']]]]):
|
|
445
444
|
pulumi.set(self, "cluster_autoscaler_configurations", value)
|
|
446
445
|
|
|
447
|
-
@property
|
|
446
|
+
@_builtins.property
|
|
448
447
|
@pulumi.getter(name="clusterSubnet")
|
|
449
|
-
def cluster_subnet(self) -> Optional[pulumi.Input[
|
|
448
|
+
def cluster_subnet(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
450
449
|
"""
|
|
451
450
|
The range of IP addresses in the overlay network of the Kubernetes cluster. For more information, see [here](https://docs.digitalocean.com/products/kubernetes/how-to/create-clusters/#create-with-vpc-native).
|
|
452
451
|
"""
|
|
453
452
|
return pulumi.get(self, "cluster_subnet")
|
|
454
453
|
|
|
455
454
|
@cluster_subnet.setter
|
|
456
|
-
def cluster_subnet(self, value: Optional[pulumi.Input[
|
|
455
|
+
def cluster_subnet(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
457
456
|
pulumi.set(self, "cluster_subnet", value)
|
|
458
457
|
|
|
459
|
-
@property
|
|
458
|
+
@_builtins.property
|
|
460
459
|
@pulumi.getter(name="clusterUrn")
|
|
461
|
-
def cluster_urn(self) -> Optional[pulumi.Input[
|
|
460
|
+
def cluster_urn(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
462
461
|
"""
|
|
463
462
|
The uniform resource name (URN) for the Kubernetes cluster.
|
|
464
463
|
"""
|
|
465
464
|
return pulumi.get(self, "cluster_urn")
|
|
466
465
|
|
|
467
466
|
@cluster_urn.setter
|
|
468
|
-
def cluster_urn(self, value: Optional[pulumi.Input[
|
|
467
|
+
def cluster_urn(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
469
468
|
pulumi.set(self, "cluster_urn", value)
|
|
470
469
|
|
|
471
|
-
@property
|
|
470
|
+
@_builtins.property
|
|
472
471
|
@pulumi.getter(name="controlPlaneFirewall")
|
|
473
472
|
def control_plane_firewall(self) -> Optional[pulumi.Input['KubernetesClusterControlPlaneFirewallArgs']]:
|
|
474
473
|
"""
|
|
@@ -480,67 +479,67 @@ class _KubernetesClusterState:
|
|
|
480
479
|
def control_plane_firewall(self, value: Optional[pulumi.Input['KubernetesClusterControlPlaneFirewallArgs']]):
|
|
481
480
|
pulumi.set(self, "control_plane_firewall", value)
|
|
482
481
|
|
|
483
|
-
@property
|
|
482
|
+
@_builtins.property
|
|
484
483
|
@pulumi.getter(name="createdAt")
|
|
485
|
-
def created_at(self) -> Optional[pulumi.Input[
|
|
484
|
+
def created_at(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
486
485
|
"""
|
|
487
486
|
The date and time when the node was created.
|
|
488
487
|
"""
|
|
489
488
|
return pulumi.get(self, "created_at")
|
|
490
489
|
|
|
491
490
|
@created_at.setter
|
|
492
|
-
def created_at(self, value: Optional[pulumi.Input[
|
|
491
|
+
def created_at(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
493
492
|
pulumi.set(self, "created_at", value)
|
|
494
493
|
|
|
495
|
-
@property
|
|
494
|
+
@_builtins.property
|
|
496
495
|
@pulumi.getter(name="destroyAllAssociatedResources")
|
|
497
|
-
def destroy_all_associated_resources(self) -> Optional[pulumi.Input[
|
|
496
|
+
def destroy_all_associated_resources(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
498
497
|
"""
|
|
499
498
|
**Use with caution.** When set to true, all associated DigitalOcean resources created via the Kubernetes API (load balancers, volumes, and volume snapshots) will be destroyed along with the cluster when it is destroyed.
|
|
500
499
|
"""
|
|
501
500
|
return pulumi.get(self, "destroy_all_associated_resources")
|
|
502
501
|
|
|
503
502
|
@destroy_all_associated_resources.setter
|
|
504
|
-
def destroy_all_associated_resources(self, value: Optional[pulumi.Input[
|
|
503
|
+
def destroy_all_associated_resources(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
505
504
|
pulumi.set(self, "destroy_all_associated_resources", value)
|
|
506
505
|
|
|
507
|
-
@property
|
|
506
|
+
@_builtins.property
|
|
508
507
|
@pulumi.getter
|
|
509
|
-
def endpoint(self) -> Optional[pulumi.Input[
|
|
508
|
+
def endpoint(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
510
509
|
"""
|
|
511
510
|
The base URL of the API server on the Kubernetes master node.
|
|
512
511
|
"""
|
|
513
512
|
return pulumi.get(self, "endpoint")
|
|
514
513
|
|
|
515
514
|
@endpoint.setter
|
|
516
|
-
def endpoint(self, value: Optional[pulumi.Input[
|
|
515
|
+
def endpoint(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
517
516
|
pulumi.set(self, "endpoint", value)
|
|
518
517
|
|
|
519
|
-
@property
|
|
518
|
+
@_builtins.property
|
|
520
519
|
@pulumi.getter
|
|
521
|
-
def ha(self) -> Optional[pulumi.Input[
|
|
520
|
+
def ha(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
522
521
|
"""
|
|
523
522
|
Enable/disable the high availability control plane for a cluster. Once enabled for a cluster, high availability cannot be disabled. Default: false
|
|
524
523
|
"""
|
|
525
524
|
return pulumi.get(self, "ha")
|
|
526
525
|
|
|
527
526
|
@ha.setter
|
|
528
|
-
def ha(self, value: Optional[pulumi.Input[
|
|
527
|
+
def ha(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
529
528
|
pulumi.set(self, "ha", value)
|
|
530
529
|
|
|
531
|
-
@property
|
|
530
|
+
@_builtins.property
|
|
532
531
|
@pulumi.getter(name="ipv4Address")
|
|
533
|
-
def ipv4_address(self) -> Optional[pulumi.Input[
|
|
532
|
+
def ipv4_address(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
534
533
|
"""
|
|
535
534
|
The public IPv4 address of the Kubernetes master node. This will not be set if high availability is configured on the cluster (v1.21+)
|
|
536
535
|
"""
|
|
537
536
|
return pulumi.get(self, "ipv4_address")
|
|
538
537
|
|
|
539
538
|
@ipv4_address.setter
|
|
540
|
-
def ipv4_address(self, value: Optional[pulumi.Input[
|
|
539
|
+
def ipv4_address(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
541
540
|
pulumi.set(self, "ipv4_address", value)
|
|
542
541
|
|
|
543
|
-
@property
|
|
542
|
+
@_builtins.property
|
|
544
543
|
@pulumi.getter(name="kubeConfigs")
|
|
545
544
|
def kube_configs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['KubernetesClusterKubeConfigArgs']]]]:
|
|
546
545
|
"""
|
|
@@ -552,19 +551,19 @@ class _KubernetesClusterState:
|
|
|
552
551
|
def kube_configs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['KubernetesClusterKubeConfigArgs']]]]):
|
|
553
552
|
pulumi.set(self, "kube_configs", value)
|
|
554
553
|
|
|
555
|
-
@property
|
|
554
|
+
@_builtins.property
|
|
556
555
|
@pulumi.getter(name="kubeconfigExpireSeconds")
|
|
557
|
-
def kubeconfig_expire_seconds(self) -> Optional[pulumi.Input[
|
|
556
|
+
def kubeconfig_expire_seconds(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
558
557
|
"""
|
|
559
558
|
The duration in seconds that the returned Kubernetes credentials will be valid. If not set or 0, the credentials will have a 7 day expiry.
|
|
560
559
|
"""
|
|
561
560
|
return pulumi.get(self, "kubeconfig_expire_seconds")
|
|
562
561
|
|
|
563
562
|
@kubeconfig_expire_seconds.setter
|
|
564
|
-
def kubeconfig_expire_seconds(self, value: Optional[pulumi.Input[
|
|
563
|
+
def kubeconfig_expire_seconds(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
565
564
|
pulumi.set(self, "kubeconfig_expire_seconds", value)
|
|
566
565
|
|
|
567
|
-
@property
|
|
566
|
+
@_builtins.property
|
|
568
567
|
@pulumi.getter(name="maintenancePolicy")
|
|
569
568
|
def maintenance_policy(self) -> Optional[pulumi.Input['KubernetesClusterMaintenancePolicyArgs']]:
|
|
570
569
|
"""
|
|
@@ -576,19 +575,19 @@ class _KubernetesClusterState:
|
|
|
576
575
|
def maintenance_policy(self, value: Optional[pulumi.Input['KubernetesClusterMaintenancePolicyArgs']]):
|
|
577
576
|
pulumi.set(self, "maintenance_policy", value)
|
|
578
577
|
|
|
579
|
-
@property
|
|
578
|
+
@_builtins.property
|
|
580
579
|
@pulumi.getter
|
|
581
|
-
def name(self) -> Optional[pulumi.Input[
|
|
580
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
582
581
|
"""
|
|
583
582
|
A name for the Kubernetes cluster.
|
|
584
583
|
"""
|
|
585
584
|
return pulumi.get(self, "name")
|
|
586
585
|
|
|
587
586
|
@name.setter
|
|
588
|
-
def name(self, value: Optional[pulumi.Input[
|
|
587
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
589
588
|
pulumi.set(self, "name", value)
|
|
590
589
|
|
|
591
|
-
@property
|
|
590
|
+
@_builtins.property
|
|
592
591
|
@pulumi.getter(name="nodePool")
|
|
593
592
|
def node_pool(self) -> Optional[pulumi.Input['KubernetesClusterNodePoolArgs']]:
|
|
594
593
|
"""
|
|
@@ -600,31 +599,31 @@ class _KubernetesClusterState:
|
|
|
600
599
|
def node_pool(self, value: Optional[pulumi.Input['KubernetesClusterNodePoolArgs']]):
|
|
601
600
|
pulumi.set(self, "node_pool", value)
|
|
602
601
|
|
|
603
|
-
@property
|
|
602
|
+
@_builtins.property
|
|
604
603
|
@pulumi.getter
|
|
605
|
-
def region(self) -> Optional[pulumi.Input[Union[
|
|
604
|
+
def region(self) -> Optional[pulumi.Input[Union[_builtins.str, 'Region']]]:
|
|
606
605
|
"""
|
|
607
606
|
The slug identifier for the region where the Kubernetes cluster will be created.
|
|
608
607
|
"""
|
|
609
608
|
return pulumi.get(self, "region")
|
|
610
609
|
|
|
611
610
|
@region.setter
|
|
612
|
-
def region(self, value: Optional[pulumi.Input[Union[
|
|
611
|
+
def region(self, value: Optional[pulumi.Input[Union[_builtins.str, 'Region']]]):
|
|
613
612
|
pulumi.set(self, "region", value)
|
|
614
613
|
|
|
615
|
-
@property
|
|
614
|
+
@_builtins.property
|
|
616
615
|
@pulumi.getter(name="registryIntegration")
|
|
617
|
-
def registry_integration(self) -> Optional[pulumi.Input[
|
|
616
|
+
def registry_integration(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
618
617
|
"""
|
|
619
618
|
Enables or disables the DigitalOcean container registry integration for the cluster. This requires that a container registry has first been created for the account. Default: false
|
|
620
619
|
"""
|
|
621
620
|
return pulumi.get(self, "registry_integration")
|
|
622
621
|
|
|
623
622
|
@registry_integration.setter
|
|
624
|
-
def registry_integration(self, value: Optional[pulumi.Input[
|
|
623
|
+
def registry_integration(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
625
624
|
pulumi.set(self, "registry_integration", value)
|
|
626
625
|
|
|
627
|
-
@property
|
|
626
|
+
@_builtins.property
|
|
628
627
|
@pulumi.getter(name="routingAgent")
|
|
629
628
|
def routing_agent(self) -> Optional[pulumi.Input['KubernetesClusterRoutingAgentArgs']]:
|
|
630
629
|
"""
|
|
@@ -636,88 +635,88 @@ class _KubernetesClusterState:
|
|
|
636
635
|
def routing_agent(self, value: Optional[pulumi.Input['KubernetesClusterRoutingAgentArgs']]):
|
|
637
636
|
pulumi.set(self, "routing_agent", value)
|
|
638
637
|
|
|
639
|
-
@property
|
|
638
|
+
@_builtins.property
|
|
640
639
|
@pulumi.getter(name="serviceSubnet")
|
|
641
|
-
def service_subnet(self) -> Optional[pulumi.Input[
|
|
640
|
+
def service_subnet(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
642
641
|
"""
|
|
643
642
|
The range of assignable IP addresses for services running in the Kubernetes cluster. For more information, see [here](https://docs.digitalocean.com/products/kubernetes/how-to/create-clusters/#create-with-vpc-native).
|
|
644
643
|
"""
|
|
645
644
|
return pulumi.get(self, "service_subnet")
|
|
646
645
|
|
|
647
646
|
@service_subnet.setter
|
|
648
|
-
def service_subnet(self, value: Optional[pulumi.Input[
|
|
647
|
+
def service_subnet(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
649
648
|
pulumi.set(self, "service_subnet", value)
|
|
650
649
|
|
|
651
|
-
@property
|
|
650
|
+
@_builtins.property
|
|
652
651
|
@pulumi.getter
|
|
653
|
-
def status(self) -> Optional[pulumi.Input[
|
|
652
|
+
def status(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
654
653
|
"""
|
|
655
654
|
A string indicating the current status of the individual node.
|
|
656
655
|
"""
|
|
657
656
|
return pulumi.get(self, "status")
|
|
658
657
|
|
|
659
658
|
@status.setter
|
|
660
|
-
def status(self, value: Optional[pulumi.Input[
|
|
659
|
+
def status(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
661
660
|
pulumi.set(self, "status", value)
|
|
662
661
|
|
|
663
|
-
@property
|
|
662
|
+
@_builtins.property
|
|
664
663
|
@pulumi.getter(name="surgeUpgrade")
|
|
665
|
-
def surge_upgrade(self) -> Optional[pulumi.Input[
|
|
664
|
+
def surge_upgrade(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
666
665
|
"""
|
|
667
666
|
Enable/disable surge upgrades for a cluster. Default: true
|
|
668
667
|
"""
|
|
669
668
|
return pulumi.get(self, "surge_upgrade")
|
|
670
669
|
|
|
671
670
|
@surge_upgrade.setter
|
|
672
|
-
def surge_upgrade(self, value: Optional[pulumi.Input[
|
|
671
|
+
def surge_upgrade(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
673
672
|
pulumi.set(self, "surge_upgrade", value)
|
|
674
673
|
|
|
675
|
-
@property
|
|
674
|
+
@_builtins.property
|
|
676
675
|
@pulumi.getter
|
|
677
|
-
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
676
|
+
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
678
677
|
"""
|
|
679
678
|
A list of tag names to be applied to the Kubernetes cluster.
|
|
680
679
|
"""
|
|
681
680
|
return pulumi.get(self, "tags")
|
|
682
681
|
|
|
683
682
|
@tags.setter
|
|
684
|
-
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
683
|
+
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
685
684
|
pulumi.set(self, "tags", value)
|
|
686
685
|
|
|
687
|
-
@property
|
|
686
|
+
@_builtins.property
|
|
688
687
|
@pulumi.getter(name="updatedAt")
|
|
689
|
-
def updated_at(self) -> Optional[pulumi.Input[
|
|
688
|
+
def updated_at(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
690
689
|
"""
|
|
691
690
|
The date and time when the node was last updated.
|
|
692
691
|
"""
|
|
693
692
|
return pulumi.get(self, "updated_at")
|
|
694
693
|
|
|
695
694
|
@updated_at.setter
|
|
696
|
-
def updated_at(self, value: Optional[pulumi.Input[
|
|
695
|
+
def updated_at(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
697
696
|
pulumi.set(self, "updated_at", value)
|
|
698
697
|
|
|
699
|
-
@property
|
|
698
|
+
@_builtins.property
|
|
700
699
|
@pulumi.getter
|
|
701
|
-
def version(self) -> Optional[pulumi.Input[
|
|
700
|
+
def version(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
702
701
|
"""
|
|
703
702
|
The slug identifier for the version of Kubernetes used for the cluster. Use [doctl](https://github.com/digitalocean/doctl) to find the available versions `doctl kubernetes options versions`. (**Note:** A cluster may only be upgraded to newer versions in-place. If the version is decreased, a new resource will be created.)
|
|
704
703
|
"""
|
|
705
704
|
return pulumi.get(self, "version")
|
|
706
705
|
|
|
707
706
|
@version.setter
|
|
708
|
-
def version(self, value: Optional[pulumi.Input[
|
|
707
|
+
def version(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
709
708
|
pulumi.set(self, "version", value)
|
|
710
709
|
|
|
711
|
-
@property
|
|
710
|
+
@_builtins.property
|
|
712
711
|
@pulumi.getter(name="vpcUuid")
|
|
713
|
-
def vpc_uuid(self) -> Optional[pulumi.Input[
|
|
712
|
+
def vpc_uuid(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
714
713
|
"""
|
|
715
714
|
The ID of the VPC where the Kubernetes cluster will be located.
|
|
716
715
|
"""
|
|
717
716
|
return pulumi.get(self, "vpc_uuid")
|
|
718
717
|
|
|
719
718
|
@vpc_uuid.setter
|
|
720
|
-
def vpc_uuid(self, value: Optional[pulumi.Input[
|
|
719
|
+
def vpc_uuid(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
721
720
|
pulumi.set(self, "vpc_uuid", value)
|
|
722
721
|
|
|
723
722
|
|
|
@@ -727,24 +726,24 @@ class KubernetesCluster(pulumi.CustomResource):
|
|
|
727
726
|
def __init__(__self__,
|
|
728
727
|
resource_name: str,
|
|
729
728
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
730
|
-
auto_upgrade: Optional[pulumi.Input[
|
|
729
|
+
auto_upgrade: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
731
730
|
cluster_autoscaler_configurations: Optional[pulumi.Input[Sequence[pulumi.Input[Union['KubernetesClusterClusterAutoscalerConfigurationArgs', 'KubernetesClusterClusterAutoscalerConfigurationArgsDict']]]]] = None,
|
|
732
|
-
cluster_subnet: Optional[pulumi.Input[
|
|
731
|
+
cluster_subnet: Optional[pulumi.Input[_builtins.str]] = None,
|
|
733
732
|
control_plane_firewall: Optional[pulumi.Input[Union['KubernetesClusterControlPlaneFirewallArgs', 'KubernetesClusterControlPlaneFirewallArgsDict']]] = None,
|
|
734
|
-
destroy_all_associated_resources: Optional[pulumi.Input[
|
|
735
|
-
ha: Optional[pulumi.Input[
|
|
736
|
-
kubeconfig_expire_seconds: Optional[pulumi.Input[
|
|
733
|
+
destroy_all_associated_resources: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
734
|
+
ha: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
735
|
+
kubeconfig_expire_seconds: Optional[pulumi.Input[_builtins.int]] = None,
|
|
737
736
|
maintenance_policy: Optional[pulumi.Input[Union['KubernetesClusterMaintenancePolicyArgs', 'KubernetesClusterMaintenancePolicyArgsDict']]] = None,
|
|
738
|
-
name: Optional[pulumi.Input[
|
|
737
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
739
738
|
node_pool: Optional[pulumi.Input[Union['KubernetesClusterNodePoolArgs', 'KubernetesClusterNodePoolArgsDict']]] = None,
|
|
740
|
-
region: Optional[pulumi.Input[Union[
|
|
741
|
-
registry_integration: Optional[pulumi.Input[
|
|
739
|
+
region: Optional[pulumi.Input[Union[_builtins.str, 'Region']]] = None,
|
|
740
|
+
registry_integration: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
742
741
|
routing_agent: Optional[pulumi.Input[Union['KubernetesClusterRoutingAgentArgs', 'KubernetesClusterRoutingAgentArgsDict']]] = None,
|
|
743
|
-
service_subnet: Optional[pulumi.Input[
|
|
744
|
-
surge_upgrade: Optional[pulumi.Input[
|
|
745
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
746
|
-
version: Optional[pulumi.Input[
|
|
747
|
-
vpc_uuid: Optional[pulumi.Input[
|
|
742
|
+
service_subnet: Optional[pulumi.Input[_builtins.str]] = None,
|
|
743
|
+
surge_upgrade: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
744
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
745
|
+
version: Optional[pulumi.Input[_builtins.str]] = None,
|
|
746
|
+
vpc_uuid: Optional[pulumi.Input[_builtins.str]] = None,
|
|
748
747
|
__props__=None):
|
|
749
748
|
"""
|
|
750
749
|
## Import
|
|
@@ -775,24 +774,24 @@ class KubernetesCluster(pulumi.CustomResource):
|
|
|
775
774
|
|
|
776
775
|
:param str resource_name: The name of the resource.
|
|
777
776
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
778
|
-
:param pulumi.Input[
|
|
777
|
+
:param pulumi.Input[_builtins.bool] auto_upgrade: A boolean value indicating whether the cluster will be automatically upgraded to new patch releases during its maintenance window.
|
|
779
778
|
:param pulumi.Input[Sequence[pulumi.Input[Union['KubernetesClusterClusterAutoscalerConfigurationArgs', 'KubernetesClusterClusterAutoscalerConfigurationArgsDict']]]] cluster_autoscaler_configurations: Block containing options for cluster auto-scaling.
|
|
780
|
-
:param pulumi.Input[
|
|
779
|
+
:param pulumi.Input[_builtins.str] cluster_subnet: The range of IP addresses in the overlay network of the Kubernetes cluster. For more information, see [here](https://docs.digitalocean.com/products/kubernetes/how-to/create-clusters/#create-with-vpc-native).
|
|
781
780
|
:param pulumi.Input[Union['KubernetesClusterControlPlaneFirewallArgs', 'KubernetesClusterControlPlaneFirewallArgsDict']] control_plane_firewall: A block representing the cluster's control plane firewall
|
|
782
|
-
:param pulumi.Input[
|
|
783
|
-
:param pulumi.Input[
|
|
784
|
-
:param pulumi.Input[
|
|
781
|
+
:param pulumi.Input[_builtins.bool] destroy_all_associated_resources: **Use with caution.** When set to true, all associated DigitalOcean resources created via the Kubernetes API (load balancers, volumes, and volume snapshots) will be destroyed along with the cluster when it is destroyed.
|
|
782
|
+
:param pulumi.Input[_builtins.bool] ha: Enable/disable the high availability control plane for a cluster. Once enabled for a cluster, high availability cannot be disabled. Default: false
|
|
783
|
+
:param pulumi.Input[_builtins.int] kubeconfig_expire_seconds: The duration in seconds that the returned Kubernetes credentials will be valid. If not set or 0, the credentials will have a 7 day expiry.
|
|
785
784
|
:param pulumi.Input[Union['KubernetesClusterMaintenancePolicyArgs', 'KubernetesClusterMaintenancePolicyArgsDict']] maintenance_policy: A block representing the cluster's maintenance window. Updates will be applied within this window. If not specified, a default maintenance window will be chosen. `auto_upgrade` must be set to `true` for this to have an effect.
|
|
786
|
-
:param pulumi.Input[
|
|
785
|
+
:param pulumi.Input[_builtins.str] name: A name for the Kubernetes cluster.
|
|
787
786
|
:param pulumi.Input[Union['KubernetesClusterNodePoolArgs', 'KubernetesClusterNodePoolArgsDict']] node_pool: A block representing the cluster's default node pool. Additional node pools may be added to the cluster using the `KubernetesNodePool` resource. The following arguments may be specified:
|
|
788
|
-
:param pulumi.Input[Union[
|
|
789
|
-
:param pulumi.Input[
|
|
787
|
+
:param pulumi.Input[Union[_builtins.str, 'Region']] region: The slug identifier for the region where the Kubernetes cluster will be created.
|
|
788
|
+
:param pulumi.Input[_builtins.bool] registry_integration: Enables or disables the DigitalOcean container registry integration for the cluster. This requires that a container registry has first been created for the account. Default: false
|
|
790
789
|
:param pulumi.Input[Union['KubernetesClusterRoutingAgentArgs', 'KubernetesClusterRoutingAgentArgsDict']] routing_agent: Block containing options for the routing-agent component. If not specified, the routing-agent component will not be installed in the cluster.
|
|
791
|
-
:param pulumi.Input[
|
|
792
|
-
:param pulumi.Input[
|
|
793
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
794
|
-
:param pulumi.Input[
|
|
795
|
-
:param pulumi.Input[
|
|
790
|
+
:param pulumi.Input[_builtins.str] service_subnet: The range of assignable IP addresses for services running in the Kubernetes cluster. For more information, see [here](https://docs.digitalocean.com/products/kubernetes/how-to/create-clusters/#create-with-vpc-native).
|
|
791
|
+
:param pulumi.Input[_builtins.bool] surge_upgrade: Enable/disable surge upgrades for a cluster. Default: true
|
|
792
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: A list of tag names to be applied to the Kubernetes cluster.
|
|
793
|
+
:param pulumi.Input[_builtins.str] version: The slug identifier for the version of Kubernetes used for the cluster. Use [doctl](https://github.com/digitalocean/doctl) to find the available versions `doctl kubernetes options versions`. (**Note:** A cluster may only be upgraded to newer versions in-place. If the version is decreased, a new resource will be created.)
|
|
794
|
+
:param pulumi.Input[_builtins.str] vpc_uuid: The ID of the VPC where the Kubernetes cluster will be located.
|
|
796
795
|
"""
|
|
797
796
|
...
|
|
798
797
|
@overload
|
|
@@ -842,24 +841,24 @@ class KubernetesCluster(pulumi.CustomResource):
|
|
|
842
841
|
def _internal_init(__self__,
|
|
843
842
|
resource_name: str,
|
|
844
843
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
845
|
-
auto_upgrade: Optional[pulumi.Input[
|
|
844
|
+
auto_upgrade: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
846
845
|
cluster_autoscaler_configurations: Optional[pulumi.Input[Sequence[pulumi.Input[Union['KubernetesClusterClusterAutoscalerConfigurationArgs', 'KubernetesClusterClusterAutoscalerConfigurationArgsDict']]]]] = None,
|
|
847
|
-
cluster_subnet: Optional[pulumi.Input[
|
|
846
|
+
cluster_subnet: Optional[pulumi.Input[_builtins.str]] = None,
|
|
848
847
|
control_plane_firewall: Optional[pulumi.Input[Union['KubernetesClusterControlPlaneFirewallArgs', 'KubernetesClusterControlPlaneFirewallArgsDict']]] = None,
|
|
849
|
-
destroy_all_associated_resources: Optional[pulumi.Input[
|
|
850
|
-
ha: Optional[pulumi.Input[
|
|
851
|
-
kubeconfig_expire_seconds: Optional[pulumi.Input[
|
|
848
|
+
destroy_all_associated_resources: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
849
|
+
ha: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
850
|
+
kubeconfig_expire_seconds: Optional[pulumi.Input[_builtins.int]] = None,
|
|
852
851
|
maintenance_policy: Optional[pulumi.Input[Union['KubernetesClusterMaintenancePolicyArgs', 'KubernetesClusterMaintenancePolicyArgsDict']]] = None,
|
|
853
|
-
name: Optional[pulumi.Input[
|
|
852
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
854
853
|
node_pool: Optional[pulumi.Input[Union['KubernetesClusterNodePoolArgs', 'KubernetesClusterNodePoolArgsDict']]] = None,
|
|
855
|
-
region: Optional[pulumi.Input[Union[
|
|
856
|
-
registry_integration: Optional[pulumi.Input[
|
|
854
|
+
region: Optional[pulumi.Input[Union[_builtins.str, 'Region']]] = None,
|
|
855
|
+
registry_integration: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
857
856
|
routing_agent: Optional[pulumi.Input[Union['KubernetesClusterRoutingAgentArgs', 'KubernetesClusterRoutingAgentArgsDict']]] = None,
|
|
858
|
-
service_subnet: Optional[pulumi.Input[
|
|
859
|
-
surge_upgrade: Optional[pulumi.Input[
|
|
860
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
861
|
-
version: Optional[pulumi.Input[
|
|
862
|
-
vpc_uuid: Optional[pulumi.Input[
|
|
857
|
+
service_subnet: Optional[pulumi.Input[_builtins.str]] = None,
|
|
858
|
+
surge_upgrade: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
859
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
860
|
+
version: Optional[pulumi.Input[_builtins.str]] = None,
|
|
861
|
+
vpc_uuid: Optional[pulumi.Input[_builtins.str]] = None,
|
|
863
862
|
__props__=None):
|
|
864
863
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
865
864
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -912,31 +911,31 @@ class KubernetesCluster(pulumi.CustomResource):
|
|
|
912
911
|
def get(resource_name: str,
|
|
913
912
|
id: pulumi.Input[str],
|
|
914
913
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
915
|
-
auto_upgrade: Optional[pulumi.Input[
|
|
914
|
+
auto_upgrade: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
916
915
|
cluster_autoscaler_configurations: Optional[pulumi.Input[Sequence[pulumi.Input[Union['KubernetesClusterClusterAutoscalerConfigurationArgs', 'KubernetesClusterClusterAutoscalerConfigurationArgsDict']]]]] = None,
|
|
917
|
-
cluster_subnet: Optional[pulumi.Input[
|
|
918
|
-
cluster_urn: Optional[pulumi.Input[
|
|
916
|
+
cluster_subnet: Optional[pulumi.Input[_builtins.str]] = None,
|
|
917
|
+
cluster_urn: Optional[pulumi.Input[_builtins.str]] = None,
|
|
919
918
|
control_plane_firewall: Optional[pulumi.Input[Union['KubernetesClusterControlPlaneFirewallArgs', 'KubernetesClusterControlPlaneFirewallArgsDict']]] = None,
|
|
920
|
-
created_at: Optional[pulumi.Input[
|
|
921
|
-
destroy_all_associated_resources: Optional[pulumi.Input[
|
|
922
|
-
endpoint: Optional[pulumi.Input[
|
|
923
|
-
ha: Optional[pulumi.Input[
|
|
924
|
-
ipv4_address: Optional[pulumi.Input[
|
|
919
|
+
created_at: Optional[pulumi.Input[_builtins.str]] = None,
|
|
920
|
+
destroy_all_associated_resources: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
921
|
+
endpoint: Optional[pulumi.Input[_builtins.str]] = None,
|
|
922
|
+
ha: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
923
|
+
ipv4_address: Optional[pulumi.Input[_builtins.str]] = None,
|
|
925
924
|
kube_configs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['KubernetesClusterKubeConfigArgs', 'KubernetesClusterKubeConfigArgsDict']]]]] = None,
|
|
926
|
-
kubeconfig_expire_seconds: Optional[pulumi.Input[
|
|
925
|
+
kubeconfig_expire_seconds: Optional[pulumi.Input[_builtins.int]] = None,
|
|
927
926
|
maintenance_policy: Optional[pulumi.Input[Union['KubernetesClusterMaintenancePolicyArgs', 'KubernetesClusterMaintenancePolicyArgsDict']]] = None,
|
|
928
|
-
name: Optional[pulumi.Input[
|
|
927
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
929
928
|
node_pool: Optional[pulumi.Input[Union['KubernetesClusterNodePoolArgs', 'KubernetesClusterNodePoolArgsDict']]] = None,
|
|
930
|
-
region: Optional[pulumi.Input[Union[
|
|
931
|
-
registry_integration: Optional[pulumi.Input[
|
|
929
|
+
region: Optional[pulumi.Input[Union[_builtins.str, 'Region']]] = None,
|
|
930
|
+
registry_integration: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
932
931
|
routing_agent: Optional[pulumi.Input[Union['KubernetesClusterRoutingAgentArgs', 'KubernetesClusterRoutingAgentArgsDict']]] = None,
|
|
933
|
-
service_subnet: Optional[pulumi.Input[
|
|
934
|
-
status: Optional[pulumi.Input[
|
|
935
|
-
surge_upgrade: Optional[pulumi.Input[
|
|
936
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
937
|
-
updated_at: Optional[pulumi.Input[
|
|
938
|
-
version: Optional[pulumi.Input[
|
|
939
|
-
vpc_uuid: Optional[pulumi.Input[
|
|
932
|
+
service_subnet: Optional[pulumi.Input[_builtins.str]] = None,
|
|
933
|
+
status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
934
|
+
surge_upgrade: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
935
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
936
|
+
updated_at: Optional[pulumi.Input[_builtins.str]] = None,
|
|
937
|
+
version: Optional[pulumi.Input[_builtins.str]] = None,
|
|
938
|
+
vpc_uuid: Optional[pulumi.Input[_builtins.str]] = None) -> 'KubernetesCluster':
|
|
940
939
|
"""
|
|
941
940
|
Get an existing KubernetesCluster resource's state with the given name, id, and optional extra
|
|
942
941
|
properties used to qualify the lookup.
|
|
@@ -944,31 +943,31 @@ class KubernetesCluster(pulumi.CustomResource):
|
|
|
944
943
|
:param str resource_name: The unique name of the resulting resource.
|
|
945
944
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
946
945
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
947
|
-
:param pulumi.Input[
|
|
946
|
+
:param pulumi.Input[_builtins.bool] auto_upgrade: A boolean value indicating whether the cluster will be automatically upgraded to new patch releases during its maintenance window.
|
|
948
947
|
:param pulumi.Input[Sequence[pulumi.Input[Union['KubernetesClusterClusterAutoscalerConfigurationArgs', 'KubernetesClusterClusterAutoscalerConfigurationArgsDict']]]] cluster_autoscaler_configurations: Block containing options for cluster auto-scaling.
|
|
949
|
-
:param pulumi.Input[
|
|
950
|
-
:param pulumi.Input[
|
|
948
|
+
:param pulumi.Input[_builtins.str] cluster_subnet: The range of IP addresses in the overlay network of the Kubernetes cluster. For more information, see [here](https://docs.digitalocean.com/products/kubernetes/how-to/create-clusters/#create-with-vpc-native).
|
|
949
|
+
:param pulumi.Input[_builtins.str] cluster_urn: The uniform resource name (URN) for the Kubernetes cluster.
|
|
951
950
|
:param pulumi.Input[Union['KubernetesClusterControlPlaneFirewallArgs', 'KubernetesClusterControlPlaneFirewallArgsDict']] control_plane_firewall: A block representing the cluster's control plane firewall
|
|
952
|
-
:param pulumi.Input[
|
|
953
|
-
:param pulumi.Input[
|
|
954
|
-
:param pulumi.Input[
|
|
955
|
-
:param pulumi.Input[
|
|
956
|
-
:param pulumi.Input[
|
|
951
|
+
:param pulumi.Input[_builtins.str] created_at: The date and time when the node was created.
|
|
952
|
+
:param pulumi.Input[_builtins.bool] destroy_all_associated_resources: **Use with caution.** When set to true, all associated DigitalOcean resources created via the Kubernetes API (load balancers, volumes, and volume snapshots) will be destroyed along with the cluster when it is destroyed.
|
|
953
|
+
:param pulumi.Input[_builtins.str] endpoint: The base URL of the API server on the Kubernetes master node.
|
|
954
|
+
:param pulumi.Input[_builtins.bool] ha: Enable/disable the high availability control plane for a cluster. Once enabled for a cluster, high availability cannot be disabled. Default: false
|
|
955
|
+
:param pulumi.Input[_builtins.str] ipv4_address: The public IPv4 address of the Kubernetes master node. This will not be set if high availability is configured on the cluster (v1.21+)
|
|
957
956
|
:param pulumi.Input[Sequence[pulumi.Input[Union['KubernetesClusterKubeConfigArgs', 'KubernetesClusterKubeConfigArgsDict']]]] kube_configs: A representation of the Kubernetes cluster's kubeconfig with the following attributes:
|
|
958
|
-
:param pulumi.Input[
|
|
957
|
+
:param pulumi.Input[_builtins.int] kubeconfig_expire_seconds: The duration in seconds that the returned Kubernetes credentials will be valid. If not set or 0, the credentials will have a 7 day expiry.
|
|
959
958
|
:param pulumi.Input[Union['KubernetesClusterMaintenancePolicyArgs', 'KubernetesClusterMaintenancePolicyArgsDict']] maintenance_policy: A block representing the cluster's maintenance window. Updates will be applied within this window. If not specified, a default maintenance window will be chosen. `auto_upgrade` must be set to `true` for this to have an effect.
|
|
960
|
-
:param pulumi.Input[
|
|
959
|
+
:param pulumi.Input[_builtins.str] name: A name for the Kubernetes cluster.
|
|
961
960
|
:param pulumi.Input[Union['KubernetesClusterNodePoolArgs', 'KubernetesClusterNodePoolArgsDict']] node_pool: A block representing the cluster's default node pool. Additional node pools may be added to the cluster using the `KubernetesNodePool` resource. The following arguments may be specified:
|
|
962
|
-
:param pulumi.Input[Union[
|
|
963
|
-
:param pulumi.Input[
|
|
961
|
+
:param pulumi.Input[Union[_builtins.str, 'Region']] region: The slug identifier for the region where the Kubernetes cluster will be created.
|
|
962
|
+
:param pulumi.Input[_builtins.bool] registry_integration: Enables or disables the DigitalOcean container registry integration for the cluster. This requires that a container registry has first been created for the account. Default: false
|
|
964
963
|
:param pulumi.Input[Union['KubernetesClusterRoutingAgentArgs', 'KubernetesClusterRoutingAgentArgsDict']] routing_agent: Block containing options for the routing-agent component. If not specified, the routing-agent component will not be installed in the cluster.
|
|
965
|
-
:param pulumi.Input[
|
|
966
|
-
:param pulumi.Input[
|
|
967
|
-
:param pulumi.Input[
|
|
968
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
969
|
-
:param pulumi.Input[
|
|
970
|
-
:param pulumi.Input[
|
|
971
|
-
:param pulumi.Input[
|
|
964
|
+
:param pulumi.Input[_builtins.str] service_subnet: The range of assignable IP addresses for services running in the Kubernetes cluster. For more information, see [here](https://docs.digitalocean.com/products/kubernetes/how-to/create-clusters/#create-with-vpc-native).
|
|
965
|
+
:param pulumi.Input[_builtins.str] status: A string indicating the current status of the individual node.
|
|
966
|
+
:param pulumi.Input[_builtins.bool] surge_upgrade: Enable/disable surge upgrades for a cluster. Default: true
|
|
967
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: A list of tag names to be applied to the Kubernetes cluster.
|
|
968
|
+
:param pulumi.Input[_builtins.str] updated_at: The date and time when the node was last updated.
|
|
969
|
+
:param pulumi.Input[_builtins.str] version: The slug identifier for the version of Kubernetes used for the cluster. Use [doctl](https://github.com/digitalocean/doctl) to find the available versions `doctl kubernetes options versions`. (**Note:** A cluster may only be upgraded to newer versions in-place. If the version is decreased, a new resource will be created.)
|
|
970
|
+
:param pulumi.Input[_builtins.str] vpc_uuid: The ID of the VPC where the Kubernetes cluster will be located.
|
|
972
971
|
"""
|
|
973
972
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
974
973
|
|
|
@@ -1001,15 +1000,15 @@ class KubernetesCluster(pulumi.CustomResource):
|
|
|
1001
1000
|
__props__.__dict__["vpc_uuid"] = vpc_uuid
|
|
1002
1001
|
return KubernetesCluster(resource_name, opts=opts, __props__=__props__)
|
|
1003
1002
|
|
|
1004
|
-
@property
|
|
1003
|
+
@_builtins.property
|
|
1005
1004
|
@pulumi.getter(name="autoUpgrade")
|
|
1006
|
-
def auto_upgrade(self) -> pulumi.Output[Optional[
|
|
1005
|
+
def auto_upgrade(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
1007
1006
|
"""
|
|
1008
1007
|
A boolean value indicating whether the cluster will be automatically upgraded to new patch releases during its maintenance window.
|
|
1009
1008
|
"""
|
|
1010
1009
|
return pulumi.get(self, "auto_upgrade")
|
|
1011
1010
|
|
|
1012
|
-
@property
|
|
1011
|
+
@_builtins.property
|
|
1013
1012
|
@pulumi.getter(name="clusterAutoscalerConfigurations")
|
|
1014
1013
|
def cluster_autoscaler_configurations(self) -> pulumi.Output[Optional[Sequence['outputs.KubernetesClusterClusterAutoscalerConfiguration']]]:
|
|
1015
1014
|
"""
|
|
@@ -1017,23 +1016,23 @@ class KubernetesCluster(pulumi.CustomResource):
|
|
|
1017
1016
|
"""
|
|
1018
1017
|
return pulumi.get(self, "cluster_autoscaler_configurations")
|
|
1019
1018
|
|
|
1020
|
-
@property
|
|
1019
|
+
@_builtins.property
|
|
1021
1020
|
@pulumi.getter(name="clusterSubnet")
|
|
1022
|
-
def cluster_subnet(self) -> pulumi.Output[
|
|
1021
|
+
def cluster_subnet(self) -> pulumi.Output[_builtins.str]:
|
|
1023
1022
|
"""
|
|
1024
1023
|
The range of IP addresses in the overlay network of the Kubernetes cluster. For more information, see [here](https://docs.digitalocean.com/products/kubernetes/how-to/create-clusters/#create-with-vpc-native).
|
|
1025
1024
|
"""
|
|
1026
1025
|
return pulumi.get(self, "cluster_subnet")
|
|
1027
1026
|
|
|
1028
|
-
@property
|
|
1027
|
+
@_builtins.property
|
|
1029
1028
|
@pulumi.getter(name="clusterUrn")
|
|
1030
|
-
def cluster_urn(self) -> pulumi.Output[
|
|
1029
|
+
def cluster_urn(self) -> pulumi.Output[_builtins.str]:
|
|
1031
1030
|
"""
|
|
1032
1031
|
The uniform resource name (URN) for the Kubernetes cluster.
|
|
1033
1032
|
"""
|
|
1034
1033
|
return pulumi.get(self, "cluster_urn")
|
|
1035
1034
|
|
|
1036
|
-
@property
|
|
1035
|
+
@_builtins.property
|
|
1037
1036
|
@pulumi.getter(name="controlPlaneFirewall")
|
|
1038
1037
|
def control_plane_firewall(self) -> pulumi.Output['outputs.KubernetesClusterControlPlaneFirewall']:
|
|
1039
1038
|
"""
|
|
@@ -1041,47 +1040,47 @@ class KubernetesCluster(pulumi.CustomResource):
|
|
|
1041
1040
|
"""
|
|
1042
1041
|
return pulumi.get(self, "control_plane_firewall")
|
|
1043
1042
|
|
|
1044
|
-
@property
|
|
1043
|
+
@_builtins.property
|
|
1045
1044
|
@pulumi.getter(name="createdAt")
|
|
1046
|
-
def created_at(self) -> pulumi.Output[
|
|
1045
|
+
def created_at(self) -> pulumi.Output[_builtins.str]:
|
|
1047
1046
|
"""
|
|
1048
1047
|
The date and time when the node was created.
|
|
1049
1048
|
"""
|
|
1050
1049
|
return pulumi.get(self, "created_at")
|
|
1051
1050
|
|
|
1052
|
-
@property
|
|
1051
|
+
@_builtins.property
|
|
1053
1052
|
@pulumi.getter(name="destroyAllAssociatedResources")
|
|
1054
|
-
def destroy_all_associated_resources(self) -> pulumi.Output[Optional[
|
|
1053
|
+
def destroy_all_associated_resources(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
1055
1054
|
"""
|
|
1056
1055
|
**Use with caution.** When set to true, all associated DigitalOcean resources created via the Kubernetes API (load balancers, volumes, and volume snapshots) will be destroyed along with the cluster when it is destroyed.
|
|
1057
1056
|
"""
|
|
1058
1057
|
return pulumi.get(self, "destroy_all_associated_resources")
|
|
1059
1058
|
|
|
1060
|
-
@property
|
|
1059
|
+
@_builtins.property
|
|
1061
1060
|
@pulumi.getter
|
|
1062
|
-
def endpoint(self) -> pulumi.Output[
|
|
1061
|
+
def endpoint(self) -> pulumi.Output[_builtins.str]:
|
|
1063
1062
|
"""
|
|
1064
1063
|
The base URL of the API server on the Kubernetes master node.
|
|
1065
1064
|
"""
|
|
1066
1065
|
return pulumi.get(self, "endpoint")
|
|
1067
1066
|
|
|
1068
|
-
@property
|
|
1067
|
+
@_builtins.property
|
|
1069
1068
|
@pulumi.getter
|
|
1070
|
-
def ha(self) -> pulumi.Output[Optional[
|
|
1069
|
+
def ha(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
1071
1070
|
"""
|
|
1072
1071
|
Enable/disable the high availability control plane for a cluster. Once enabled for a cluster, high availability cannot be disabled. Default: false
|
|
1073
1072
|
"""
|
|
1074
1073
|
return pulumi.get(self, "ha")
|
|
1075
1074
|
|
|
1076
|
-
@property
|
|
1075
|
+
@_builtins.property
|
|
1077
1076
|
@pulumi.getter(name="ipv4Address")
|
|
1078
|
-
def ipv4_address(self) -> pulumi.Output[
|
|
1077
|
+
def ipv4_address(self) -> pulumi.Output[_builtins.str]:
|
|
1079
1078
|
"""
|
|
1080
1079
|
The public IPv4 address of the Kubernetes master node. This will not be set if high availability is configured on the cluster (v1.21+)
|
|
1081
1080
|
"""
|
|
1082
1081
|
return pulumi.get(self, "ipv4_address")
|
|
1083
1082
|
|
|
1084
|
-
@property
|
|
1083
|
+
@_builtins.property
|
|
1085
1084
|
@pulumi.getter(name="kubeConfigs")
|
|
1086
1085
|
def kube_configs(self) -> pulumi.Output[Sequence['outputs.KubernetesClusterKubeConfig']]:
|
|
1087
1086
|
"""
|
|
@@ -1089,15 +1088,15 @@ class KubernetesCluster(pulumi.CustomResource):
|
|
|
1089
1088
|
"""
|
|
1090
1089
|
return pulumi.get(self, "kube_configs")
|
|
1091
1090
|
|
|
1092
|
-
@property
|
|
1091
|
+
@_builtins.property
|
|
1093
1092
|
@pulumi.getter(name="kubeconfigExpireSeconds")
|
|
1094
|
-
def kubeconfig_expire_seconds(self) -> pulumi.Output[Optional[
|
|
1093
|
+
def kubeconfig_expire_seconds(self) -> pulumi.Output[Optional[_builtins.int]]:
|
|
1095
1094
|
"""
|
|
1096
1095
|
The duration in seconds that the returned Kubernetes credentials will be valid. If not set or 0, the credentials will have a 7 day expiry.
|
|
1097
1096
|
"""
|
|
1098
1097
|
return pulumi.get(self, "kubeconfig_expire_seconds")
|
|
1099
1098
|
|
|
1100
|
-
@property
|
|
1099
|
+
@_builtins.property
|
|
1101
1100
|
@pulumi.getter(name="maintenancePolicy")
|
|
1102
1101
|
def maintenance_policy(self) -> pulumi.Output['outputs.KubernetesClusterMaintenancePolicy']:
|
|
1103
1102
|
"""
|
|
@@ -1105,15 +1104,15 @@ class KubernetesCluster(pulumi.CustomResource):
|
|
|
1105
1104
|
"""
|
|
1106
1105
|
return pulumi.get(self, "maintenance_policy")
|
|
1107
1106
|
|
|
1108
|
-
@property
|
|
1107
|
+
@_builtins.property
|
|
1109
1108
|
@pulumi.getter
|
|
1110
|
-
def name(self) -> pulumi.Output[
|
|
1109
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
|
1111
1110
|
"""
|
|
1112
1111
|
A name for the Kubernetes cluster.
|
|
1113
1112
|
"""
|
|
1114
1113
|
return pulumi.get(self, "name")
|
|
1115
1114
|
|
|
1116
|
-
@property
|
|
1115
|
+
@_builtins.property
|
|
1117
1116
|
@pulumi.getter(name="nodePool")
|
|
1118
1117
|
def node_pool(self) -> pulumi.Output['outputs.KubernetesClusterNodePool']:
|
|
1119
1118
|
"""
|
|
@@ -1121,23 +1120,23 @@ class KubernetesCluster(pulumi.CustomResource):
|
|
|
1121
1120
|
"""
|
|
1122
1121
|
return pulumi.get(self, "node_pool")
|
|
1123
1122
|
|
|
1124
|
-
@property
|
|
1123
|
+
@_builtins.property
|
|
1125
1124
|
@pulumi.getter
|
|
1126
|
-
def region(self) -> pulumi.Output[
|
|
1125
|
+
def region(self) -> pulumi.Output[_builtins.str]:
|
|
1127
1126
|
"""
|
|
1128
1127
|
The slug identifier for the region where the Kubernetes cluster will be created.
|
|
1129
1128
|
"""
|
|
1130
1129
|
return pulumi.get(self, "region")
|
|
1131
1130
|
|
|
1132
|
-
@property
|
|
1131
|
+
@_builtins.property
|
|
1133
1132
|
@pulumi.getter(name="registryIntegration")
|
|
1134
|
-
def registry_integration(self) -> pulumi.Output[Optional[
|
|
1133
|
+
def registry_integration(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
1135
1134
|
"""
|
|
1136
1135
|
Enables or disables the DigitalOcean container registry integration for the cluster. This requires that a container registry has first been created for the account. Default: false
|
|
1137
1136
|
"""
|
|
1138
1137
|
return pulumi.get(self, "registry_integration")
|
|
1139
1138
|
|
|
1140
|
-
@property
|
|
1139
|
+
@_builtins.property
|
|
1141
1140
|
@pulumi.getter(name="routingAgent")
|
|
1142
1141
|
def routing_agent(self) -> pulumi.Output['outputs.KubernetesClusterRoutingAgent']:
|
|
1143
1142
|
"""
|
|
@@ -1145,57 +1144,57 @@ class KubernetesCluster(pulumi.CustomResource):
|
|
|
1145
1144
|
"""
|
|
1146
1145
|
return pulumi.get(self, "routing_agent")
|
|
1147
1146
|
|
|
1148
|
-
@property
|
|
1147
|
+
@_builtins.property
|
|
1149
1148
|
@pulumi.getter(name="serviceSubnet")
|
|
1150
|
-
def service_subnet(self) -> pulumi.Output[
|
|
1149
|
+
def service_subnet(self) -> pulumi.Output[_builtins.str]:
|
|
1151
1150
|
"""
|
|
1152
1151
|
The range of assignable IP addresses for services running in the Kubernetes cluster. For more information, see [here](https://docs.digitalocean.com/products/kubernetes/how-to/create-clusters/#create-with-vpc-native).
|
|
1153
1152
|
"""
|
|
1154
1153
|
return pulumi.get(self, "service_subnet")
|
|
1155
1154
|
|
|
1156
|
-
@property
|
|
1155
|
+
@_builtins.property
|
|
1157
1156
|
@pulumi.getter
|
|
1158
|
-
def status(self) -> pulumi.Output[
|
|
1157
|
+
def status(self) -> pulumi.Output[_builtins.str]:
|
|
1159
1158
|
"""
|
|
1160
1159
|
A string indicating the current status of the individual node.
|
|
1161
1160
|
"""
|
|
1162
1161
|
return pulumi.get(self, "status")
|
|
1163
1162
|
|
|
1164
|
-
@property
|
|
1163
|
+
@_builtins.property
|
|
1165
1164
|
@pulumi.getter(name="surgeUpgrade")
|
|
1166
|
-
def surge_upgrade(self) -> pulumi.Output[Optional[
|
|
1165
|
+
def surge_upgrade(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
1167
1166
|
"""
|
|
1168
1167
|
Enable/disable surge upgrades for a cluster. Default: true
|
|
1169
1168
|
"""
|
|
1170
1169
|
return pulumi.get(self, "surge_upgrade")
|
|
1171
1170
|
|
|
1172
|
-
@property
|
|
1171
|
+
@_builtins.property
|
|
1173
1172
|
@pulumi.getter
|
|
1174
|
-
def tags(self) -> pulumi.Output[Optional[Sequence[
|
|
1173
|
+
def tags(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
|
|
1175
1174
|
"""
|
|
1176
1175
|
A list of tag names to be applied to the Kubernetes cluster.
|
|
1177
1176
|
"""
|
|
1178
1177
|
return pulumi.get(self, "tags")
|
|
1179
1178
|
|
|
1180
|
-
@property
|
|
1179
|
+
@_builtins.property
|
|
1181
1180
|
@pulumi.getter(name="updatedAt")
|
|
1182
|
-
def updated_at(self) -> pulumi.Output[
|
|
1181
|
+
def updated_at(self) -> pulumi.Output[_builtins.str]:
|
|
1183
1182
|
"""
|
|
1184
1183
|
The date and time when the node was last updated.
|
|
1185
1184
|
"""
|
|
1186
1185
|
return pulumi.get(self, "updated_at")
|
|
1187
1186
|
|
|
1188
|
-
@property
|
|
1187
|
+
@_builtins.property
|
|
1189
1188
|
@pulumi.getter
|
|
1190
|
-
def version(self) -> pulumi.Output[
|
|
1189
|
+
def version(self) -> pulumi.Output[_builtins.str]:
|
|
1191
1190
|
"""
|
|
1192
1191
|
The slug identifier for the version of Kubernetes used for the cluster. Use [doctl](https://github.com/digitalocean/doctl) to find the available versions `doctl kubernetes options versions`. (**Note:** A cluster may only be upgraded to newer versions in-place. If the version is decreased, a new resource will be created.)
|
|
1193
1192
|
"""
|
|
1194
1193
|
return pulumi.get(self, "version")
|
|
1195
1194
|
|
|
1196
|
-
@property
|
|
1195
|
+
@_builtins.property
|
|
1197
1196
|
@pulumi.getter(name="vpcUuid")
|
|
1198
|
-
def vpc_uuid(self) -> pulumi.Output[
|
|
1197
|
+
def vpc_uuid(self) -> pulumi.Output[_builtins.str]:
|
|
1199
1198
|
"""
|
|
1200
1199
|
The ID of the VPC where the Kubernetes cluster will be located.
|
|
1201
1200
|
"""
|