@pulumi/digitalocean 4.7.0-alpha.1633346817
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.
- package/LICENSE +202 -0
- package/README.md +68 -0
- package/app.d.ts +203 -0
- package/app.js +174 -0
- package/app.js.map +1 -0
- package/cdn.d.ts +169 -0
- package/cdn.js +116 -0
- package/cdn.js.map +1 -0
- package/certificate.d.ts +225 -0
- package/certificate.js +137 -0
- package/certificate.js.map +1 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +10 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +20 -0
- package/config/vars.js +28 -0
- package/config/vars.js.map +1 -0
- package/containerRegistry.d.ts +88 -0
- package/containerRegistry.js +83 -0
- package/containerRegistry.js.map +1 -0
- package/containerRegistryDockerCredentials.d.ts +108 -0
- package/containerRegistryDockerCredentials.js +93 -0
- package/containerRegistryDockerCredentials.js.map +1 -0
- package/customImage.d.ts +155 -0
- package/customImage.js +113 -0
- package/customImage.js.map +1 -0
- package/databaseCluster.d.ts +306 -0
- package/databaseCluster.js +165 -0
- package/databaseCluster.js.map +1 -0
- package/databaseConnectionPool.d.ts +189 -0
- package/databaseConnectionPool.js +120 -0
- package/databaseConnectionPool.js.map +1 -0
- package/databaseDb.d.ts +87 -0
- package/databaseDb.js +82 -0
- package/databaseDb.js.map +1 -0
- package/databaseFirewall.d.ts +129 -0
- package/databaseFirewall.js +126 -0
- package/databaseFirewall.js.map +1 -0
- package/databaseReplica.d.ts +204 -0
- package/databaseReplica.js +110 -0
- package/databaseReplica.js.map +1 -0
- package/databaseUser.d.ts +117 -0
- package/databaseUser.js +90 -0
- package/databaseUser.js.map +1 -0
- package/dnsRecord.d.ts +200 -0
- package/dnsRecord.js +114 -0
- package/dnsRecord.js.map +1 -0
- package/domain.d.ts +103 -0
- package/domain.js +83 -0
- package/domain.js.map +1 -0
- package/droplet.d.ts +386 -0
- package/droplet.js +137 -0
- package/droplet.js.map +1 -0
- package/dropletSnapshot.d.ts +117 -0
- package/dropletSnapshot.js +88 -0
- package/dropletSnapshot.js.map +1 -0
- package/firewall.d.ts +226 -0
- package/firewall.js +150 -0
- package/firewall.js.map +1 -0
- package/floatingIp.d.ts +112 -0
- package/floatingIp.js +91 -0
- package/floatingIp.js.map +1 -0
- package/floatingIpAssignment.d.ts +85 -0
- package/floatingIpAssignment.js +83 -0
- package/floatingIpAssignment.js.map +1 -0
- package/getAccount.d.ts +32 -0
- package/getAccount.js +31 -0
- package/getAccount.js.map +1 -0
- package/getApp.d.ts +63 -0
- package/getApp.js +36 -0
- package/getApp.js.map +1 -0
- package/getCertificate.d.ts +48 -0
- package/getCertificate.js +40 -0
- package/getCertificate.js.map +1 -0
- package/getContainerRegistry.d.ts +54 -0
- package/getContainerRegistry.js +41 -0
- package/getContainerRegistry.js.map +1 -0
- package/getDatabaseCluster.d.ts +103 -0
- package/getDatabaseCluster.js +35 -0
- package/getDatabaseCluster.js.map +1 -0
- package/getDatabaseReplica.d.ts +87 -0
- package/getDatabaseReplica.js +40 -0
- package/getDatabaseReplica.js.map +1 -0
- package/getDomain.d.ts +37 -0
- package/getDomain.js +28 -0
- package/getDomain.js.map +1 -0
- package/getDomains.d.ts +61 -0
- package/getDomains.js +49 -0
- package/getDomains.js.map +1 -0
- package/getDroplet.d.ts +161 -0
- package/getDroplet.js +67 -0
- package/getDroplet.js.map +1 -0
- package/getDropletSnapshot.d.ts +76 -0
- package/getDropletSnapshot.js +43 -0
- package/getDropletSnapshot.js.map +1 -0
- package/getDroplets.d.ts +85 -0
- package/getDroplets.js +73 -0
- package/getDroplets.js.map +1 -0
- package/getFirewall.d.ts +83 -0
- package/getFirewall.js +40 -0
- package/getFirewall.js.map +1 -0
- package/getFloatingIp.d.ts +48 -0
- package/getFloatingIp.js +43 -0
- package/getFloatingIp.js.map +1 -0
- package/getImage.d.ts +110 -0
- package/getImage.js +71 -0
- package/getImage.js.map +1 -0
- package/getImages.d.ts +90 -0
- package/getImages.js +74 -0
- package/getImages.js.map +1 -0
- package/getKubernetesCluster.d.ts +95 -0
- package/getKubernetesCluster.js +23 -0
- package/getKubernetesCluster.js.map +1 -0
- package/getKubernetesVersions.d.ts +79 -0
- package/getKubernetesVersions.js +70 -0
- package/getKubernetesVersions.js.map +1 -0
- package/getLoadBalancer.d.ts +59 -0
- package/getLoadBalancer.js +41 -0
- package/getLoadBalancer.js.map +1 -0
- package/getProject.d.ts +72 -0
- package/getProject.js +37 -0
- package/getProject.js.map +1 -0
- package/getProjects.d.ts +85 -0
- package/getProjects.js +72 -0
- package/getProjects.js.map +1 -0
- package/getRecord.d.ts +42 -0
- package/getRecord.js +28 -0
- package/getRecord.js.map +1 -0
- package/getRecords.d.ts +39 -0
- package/getRecords.js +25 -0
- package/getRecords.js.map +1 -0
- package/getRegion.d.ts +56 -0
- package/getRegion.js +35 -0
- package/getRegion.js.map +1 -0
- package/getRegions.d.ts +82 -0
- package/getRegions.js +70 -0
- package/getRegions.js.map +1 -0
- package/getSizes.d.ts +35 -0
- package/getSizes.js +26 -0
- package/getSizes.js.map +1 -0
- package/getSpacesBucket.d.ts +59 -0
- package/getSpacesBucket.js +39 -0
- package/getSpacesBucket.js.map +1 -0
- package/getSpacesBucketObject.d.ts +125 -0
- package/getSpacesBucketObject.js +53 -0
- package/getSpacesBucketObject.js.map +1 -0
- package/getSpacesBucketObjects.d.ts +83 -0
- package/getSpacesBucketObjects.js +49 -0
- package/getSpacesBucketObjects.js.map +1 -0
- package/getSpacesBuckets.d.ts +75 -0
- package/getSpacesBuckets.js +63 -0
- package/getSpacesBuckets.js.map +1 -0
- package/getSshKey.d.ts +47 -0
- package/getSshKey.js +46 -0
- package/getSshKey.js.map +1 -0
- package/getSshKeys.d.ts +58 -0
- package/getSshKeys.js +46 -0
- package/getSshKeys.js.map +1 -0
- package/getTag.d.ts +71 -0
- package/getTag.js +45 -0
- package/getTag.js.map +1 -0
- package/getTags.d.ts +50 -0
- package/getTags.js +41 -0
- package/getTags.js.map +1 -0
- package/getVolume.d.ts +98 -0
- package/getVolume.js +64 -0
- package/getVolume.js.map +1 -0
- package/getVolumeSnapshot.d.ts +98 -0
- package/getVolumeSnapshot.js +61 -0
- package/getVolumeSnapshot.js.map +1 -0
- package/getVpc.d.ts +95 -0
- package/getVpc.js +61 -0
- package/getVpc.js.map +1 -0
- package/index.d.ts +74 -0
- package/index.js +240 -0
- package/index.js.map +1 -0
- package/kubernetesCluster.d.ts +220 -0
- package/kubernetesCluster.js +102 -0
- package/kubernetesCluster.js.map +1 -0
- package/kubernetesNodePool.d.ts +242 -0
- package/kubernetesNodePool.js +141 -0
- package/kubernetesNodePool.js.map +1 -0
- package/loadBalancer.d.ts +307 -0
- package/loadBalancer.js +161 -0
- package/loadBalancer.js.map +1 -0
- package/monitorAlert.d.ts +193 -0
- package/monitorAlert.js +99 -0
- package/monitorAlert.js.map +1 -0
- package/package.json +28 -0
- package/package.json.bak +27 -0
- package/package.json.dev +27 -0
- package/project.d.ts +191 -0
- package/project.js +129 -0
- package/project.js.map +1 -0
- package/projectResources.d.ts +100 -0
- package/projectResources.js +98 -0
- package/projectResources.js.map +1 -0
- package/provider.d.ts +67 -0
- package/provider.js +51 -0
- package/provider.js.map +1 -0
- package/scripts/install-pulumi-plugin.js +21 -0
- package/spacesBucket.d.ts +210 -0
- package/spacesBucket.js +139 -0
- package/spacesBucket.js.map +1 -0
- package/spacesBucketObject.d.ts +293 -0
- package/spacesBucketObject.js +139 -0
- package/spacesBucketObject.js.map +1 -0
- package/sshKey.d.ts +103 -0
- package/sshKey.js +89 -0
- package/sshKey.js.map +1 -0
- package/tag.d.ts +127 -0
- package/tag.js +93 -0
- package/tag.js.map +1 -0
- package/types/enums/index.d.ts +151 -0
- package/types/enums/index.js +148 -0
- package/types/enums/index.js.map +1 -0
- package/types/index.d.ts +4 -0
- package/types/index.js +12 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +1584 -0
- package/types/input.js +5 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +2730 -0
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/utilities.d.ts +4 -0
- package/utilities.js +51 -0
- package/utilities.js.map +1 -0
- package/volume.d.ts +225 -0
- package/volume.js +128 -0
- package/volume.js.map +1 -0
- package/volumeAttachment.d.ts +88 -0
- package/volumeAttachment.js +86 -0
- package/volumeAttachment.js.map +1 -0
- package/volumeSnapshot.d.ts +129 -0
- package/volumeSnapshot.js +90 -0
- package/volumeSnapshot.js.map +1 -0
- package/vpc.d.ts +152 -0
- package/vpc.js +109 -0
- package/vpc.js.map +1 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
const pulumi = require("@pulumi/pulumi");
|
|
6
|
+
const utilities = require("./utilities");
|
|
7
|
+
/**
|
|
8
|
+
* ## Import
|
|
9
|
+
*
|
|
10
|
+
* Before importing a Kubernetes cluster, the cluster's default node pool must be tagged with the `terraform:default-node-pool` tag. The provider will automatically add this tag if the cluster has a single node pool. Clusters with more than one node pool, however, will require that you manually add the `terraform:default-node-pool` tag to the node pool that you intend to be the default node pool. Then the Kubernetes cluster and all of its node pools can be imported using the cluster's `id`, e.g.
|
|
11
|
+
*
|
|
12
|
+
* ```sh
|
|
13
|
+
* $ pulumi import digitalocean:index/kubernetesCluster:KubernetesCluster mycluster 1b8b2100-0e9f-4e8f-ad78-9eb578c2a0af
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
class KubernetesCluster extends pulumi.CustomResource {
|
|
17
|
+
constructor(name, argsOrState, opts) {
|
|
18
|
+
let inputs = {};
|
|
19
|
+
opts = opts || {};
|
|
20
|
+
if (opts.id) {
|
|
21
|
+
const state = argsOrState;
|
|
22
|
+
inputs["autoUpgrade"] = state ? state.autoUpgrade : undefined;
|
|
23
|
+
inputs["clusterSubnet"] = state ? state.clusterSubnet : undefined;
|
|
24
|
+
inputs["clusterUrn"] = state ? state.clusterUrn : undefined;
|
|
25
|
+
inputs["createdAt"] = state ? state.createdAt : undefined;
|
|
26
|
+
inputs["endpoint"] = state ? state.endpoint : undefined;
|
|
27
|
+
inputs["ipv4Address"] = state ? state.ipv4Address : undefined;
|
|
28
|
+
inputs["kubeConfigs"] = state ? state.kubeConfigs : undefined;
|
|
29
|
+
inputs["maintenancePolicy"] = state ? state.maintenancePolicy : undefined;
|
|
30
|
+
inputs["name"] = state ? state.name : undefined;
|
|
31
|
+
inputs["nodePool"] = state ? state.nodePool : undefined;
|
|
32
|
+
inputs["region"] = state ? state.region : undefined;
|
|
33
|
+
inputs["serviceSubnet"] = state ? state.serviceSubnet : undefined;
|
|
34
|
+
inputs["status"] = state ? state.status : undefined;
|
|
35
|
+
inputs["surgeUpgrade"] = state ? state.surgeUpgrade : undefined;
|
|
36
|
+
inputs["tags"] = state ? state.tags : undefined;
|
|
37
|
+
inputs["updatedAt"] = state ? state.updatedAt : undefined;
|
|
38
|
+
inputs["version"] = state ? state.version : undefined;
|
|
39
|
+
inputs["vpcUuid"] = state ? state.vpcUuid : undefined;
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
const args = argsOrState;
|
|
43
|
+
if ((!args || args.nodePool === undefined) && !opts.urn) {
|
|
44
|
+
throw new Error("Missing required property 'nodePool'");
|
|
45
|
+
}
|
|
46
|
+
if ((!args || args.region === undefined) && !opts.urn) {
|
|
47
|
+
throw new Error("Missing required property 'region'");
|
|
48
|
+
}
|
|
49
|
+
if ((!args || args.version === undefined) && !opts.urn) {
|
|
50
|
+
throw new Error("Missing required property 'version'");
|
|
51
|
+
}
|
|
52
|
+
inputs["autoUpgrade"] = args ? args.autoUpgrade : undefined;
|
|
53
|
+
inputs["maintenancePolicy"] = args ? args.maintenancePolicy : undefined;
|
|
54
|
+
inputs["name"] = args ? args.name : undefined;
|
|
55
|
+
inputs["nodePool"] = args ? args.nodePool : undefined;
|
|
56
|
+
inputs["region"] = args ? args.region : undefined;
|
|
57
|
+
inputs["surgeUpgrade"] = args ? args.surgeUpgrade : undefined;
|
|
58
|
+
inputs["tags"] = args ? args.tags : undefined;
|
|
59
|
+
inputs["version"] = args ? args.version : undefined;
|
|
60
|
+
inputs["vpcUuid"] = args ? args.vpcUuid : undefined;
|
|
61
|
+
inputs["clusterSubnet"] = undefined /*out*/;
|
|
62
|
+
inputs["clusterUrn"] = undefined /*out*/;
|
|
63
|
+
inputs["createdAt"] = undefined /*out*/;
|
|
64
|
+
inputs["endpoint"] = undefined /*out*/;
|
|
65
|
+
inputs["ipv4Address"] = undefined /*out*/;
|
|
66
|
+
inputs["kubeConfigs"] = undefined /*out*/;
|
|
67
|
+
inputs["serviceSubnet"] = undefined /*out*/;
|
|
68
|
+
inputs["status"] = undefined /*out*/;
|
|
69
|
+
inputs["updatedAt"] = undefined /*out*/;
|
|
70
|
+
}
|
|
71
|
+
if (!opts.version) {
|
|
72
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
73
|
+
}
|
|
74
|
+
super(KubernetesCluster.__pulumiType, name, inputs, opts);
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Get an existing KubernetesCluster resource's state with the given name, ID, and optional extra
|
|
78
|
+
* properties used to qualify the lookup.
|
|
79
|
+
*
|
|
80
|
+
* @param name The _unique_ name of the resulting resource.
|
|
81
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
82
|
+
* @param state Any extra arguments used during the lookup.
|
|
83
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
84
|
+
*/
|
|
85
|
+
static get(name, id, state, opts) {
|
|
86
|
+
return new KubernetesCluster(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Returns true if the given object is an instance of KubernetesCluster. This is designed to work even
|
|
90
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
91
|
+
*/
|
|
92
|
+
static isInstance(obj) {
|
|
93
|
+
if (obj === undefined || obj === null) {
|
|
94
|
+
return false;
|
|
95
|
+
}
|
|
96
|
+
return obj['__pulumiType'] === KubernetesCluster.__pulumiType;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
exports.KubernetesCluster = KubernetesCluster;
|
|
100
|
+
/** @internal */
|
|
101
|
+
KubernetesCluster.__pulumiType = 'digitalocean:index/kubernetesCluster:KubernetesCluster';
|
|
102
|
+
//# sourceMappingURL=kubernetesCluster.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kubernetesCluster.js","sourceRoot":"","sources":["../kubernetesCluster.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;GAQG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IA0GxD,YAAY,IAAY,EAAE,WAA4D,EAAE,IAAmC;QACvH,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAiD,CAAC;YAChE,MAAM,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,MAAM,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,MAAM,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,MAAM,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAA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G,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE,EAAC,CAAC,CAAC;SACxE;QACD,KAAK,CAAC,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;IAlKD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACxE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,iBAAiB,CAAC,YAAY,CAAC;IAClE,CAAC;;AA1BL,8CAoKC;AAtJG,gBAAgB;AACO,8BAAY,GAAG,wDAAwD,CAAC"}
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs, enums } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* Provides a DigitalOcean Kubernetes node pool resource. While the default node pool must be defined in the `digitalocean.KubernetesCluster` resource, this resource can be used to add additional ones to a cluster.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
* ### Basic Example
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
12
|
+
*
|
|
13
|
+
* const foo = new digitalocean.KubernetesCluster("foo", {
|
|
14
|
+
* region: "nyc1",
|
|
15
|
+
* version: "1.20.2-do.0",
|
|
16
|
+
* nodePool: {
|
|
17
|
+
* name: "front-end-pool",
|
|
18
|
+
* size: "s-2vcpu-2gb",
|
|
19
|
+
* nodeCount: 3,
|
|
20
|
+
* },
|
|
21
|
+
* });
|
|
22
|
+
* const bar = new digitalocean.KubernetesNodePool("bar", {
|
|
23
|
+
* clusterId: foo.id,
|
|
24
|
+
* size: "c-2",
|
|
25
|
+
* nodeCount: 2,
|
|
26
|
+
* tags: ["backend"],
|
|
27
|
+
* labels: {
|
|
28
|
+
* service: "backend",
|
|
29
|
+
* priority: "high",
|
|
30
|
+
* },
|
|
31
|
+
* taints: [{
|
|
32
|
+
* key: "workloadKind",
|
|
33
|
+
* value: "database",
|
|
34
|
+
* effect: "NoSchedule",
|
|
35
|
+
* }],
|
|
36
|
+
* });
|
|
37
|
+
* ```
|
|
38
|
+
* ### Autoscaling Example
|
|
39
|
+
*
|
|
40
|
+
* Node pools may also be configured to [autoscale](https://www.digitalocean.com/docs/kubernetes/how-to/autoscale/).
|
|
41
|
+
* For example:
|
|
42
|
+
*
|
|
43
|
+
* ```typescript
|
|
44
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
45
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
46
|
+
*
|
|
47
|
+
* const autoscale_pool_01 = new digitalocean.KubernetesNodePool("autoscale-pool-01", {
|
|
48
|
+
* clusterId: digitalocean_kubernetes_cluster.foo.id,
|
|
49
|
+
* size: "s-1vcpu-2gb",
|
|
50
|
+
* autoScale: true,
|
|
51
|
+
* minNodes: 1,
|
|
52
|
+
* maxNodes: 5,
|
|
53
|
+
* });
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
56
|
+
* ## Import
|
|
57
|
+
*
|
|
58
|
+
* If you are importing an existing Kubernetes cluster, just import the cluster. Importing a cluster also imports all of its associated node pools. If you still need to import a single node pool, then import it by using its `id`, e.g.
|
|
59
|
+
*
|
|
60
|
+
* ```sh
|
|
61
|
+
* $ pulumi import digitalocean:index/kubernetesNodePool:KubernetesNodePool mynodepool 9d76f410-9284-4436-9633-4066852442c8
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
64
|
+
* NoteIf the node pool has the `terraform:default-node-pool` tag, then it is a default node pool for an existing cluster. The provider will refuse to import the node pool in that case because the node pool is managed by the `digitalocean_kubernetes_cluster` resource and not by this `digitalocean_kubernetes_node_pool` resource.
|
|
65
|
+
*/
|
|
66
|
+
export declare class KubernetesNodePool extends pulumi.CustomResource {
|
|
67
|
+
/**
|
|
68
|
+
* Get an existing KubernetesNodePool resource's state with the given name, ID, and optional extra
|
|
69
|
+
* properties used to qualify the lookup.
|
|
70
|
+
*
|
|
71
|
+
* @param name The _unique_ name of the resulting resource.
|
|
72
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
73
|
+
* @param state Any extra arguments used during the lookup.
|
|
74
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
75
|
+
*/
|
|
76
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: KubernetesNodePoolState, opts?: pulumi.CustomResourceOptions): KubernetesNodePool;
|
|
77
|
+
/**
|
|
78
|
+
* Returns true if the given object is an instance of KubernetesNodePool. This is designed to work even
|
|
79
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
80
|
+
*/
|
|
81
|
+
static isInstance(obj: any): obj is KubernetesNodePool;
|
|
82
|
+
/**
|
|
83
|
+
* A computed field representing the actual number of nodes in the node pool, which is especially useful when auto-scaling is enabled.
|
|
84
|
+
*/
|
|
85
|
+
readonly actualNodeCount: pulumi.Output<number>;
|
|
86
|
+
/**
|
|
87
|
+
* Enable auto-scaling of the number of nodes in the node pool within the given min/max range.
|
|
88
|
+
*/
|
|
89
|
+
readonly autoScale: pulumi.Output<boolean | undefined>;
|
|
90
|
+
/**
|
|
91
|
+
* The ID of the Kubernetes cluster to which the node pool is associated.
|
|
92
|
+
*/
|
|
93
|
+
readonly clusterId: pulumi.Output<string>;
|
|
94
|
+
/**
|
|
95
|
+
* A map of key/value pairs to apply to nodes in the pool. The labels are exposed in the Kubernetes API as labels in the metadata of the corresponding [Node resources](https://kubernetes.io/docs/concepts/architecture/nodes/).
|
|
96
|
+
*/
|
|
97
|
+
readonly labels: pulumi.Output<{
|
|
98
|
+
[key: string]: string;
|
|
99
|
+
} | undefined>;
|
|
100
|
+
/**
|
|
101
|
+
* If auto-scaling is enabled, this represents the maximum number of nodes that the node pool can be scaled up to.
|
|
102
|
+
*/
|
|
103
|
+
readonly maxNodes: pulumi.Output<number | undefined>;
|
|
104
|
+
/**
|
|
105
|
+
* If auto-scaling is enabled, this represents the minimum number of nodes that the node pool can be scaled down to.
|
|
106
|
+
*/
|
|
107
|
+
readonly minNodes: pulumi.Output<number | undefined>;
|
|
108
|
+
/**
|
|
109
|
+
* A name for the node pool.
|
|
110
|
+
*/
|
|
111
|
+
readonly name: pulumi.Output<string>;
|
|
112
|
+
/**
|
|
113
|
+
* The number of Droplet instances in the node pool. If auto-scaling is enabled, this should only be set if the desired result is to explicitly reset the number of nodes to this value. If auto-scaling is enabled, and the node count is outside of the given min/max range, it will use the min nodes value.
|
|
114
|
+
*/
|
|
115
|
+
readonly nodeCount: pulumi.Output<number | undefined>;
|
|
116
|
+
/**
|
|
117
|
+
* A list of nodes in the pool. Each node exports the following attributes:
|
|
118
|
+
*/
|
|
119
|
+
readonly nodes: pulumi.Output<outputs.KubernetesNodePoolNode[]>;
|
|
120
|
+
/**
|
|
121
|
+
* The slug identifier for the type of Droplet to be used as workers in the node pool.
|
|
122
|
+
*/
|
|
123
|
+
readonly size: pulumi.Output<string>;
|
|
124
|
+
/**
|
|
125
|
+
* A list of tag names to be applied to the Kubernetes cluster.
|
|
126
|
+
*/
|
|
127
|
+
readonly tags: pulumi.Output<string[] | undefined>;
|
|
128
|
+
/**
|
|
129
|
+
* A list of taints applied to all nodes in the pool.
|
|
130
|
+
*/
|
|
131
|
+
readonly taints: pulumi.Output<outputs.KubernetesNodePoolTaint[] | undefined>;
|
|
132
|
+
/**
|
|
133
|
+
* Create a KubernetesNodePool resource with the given unique name, arguments, and options.
|
|
134
|
+
*
|
|
135
|
+
* @param name The _unique_ name of the resource.
|
|
136
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
137
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
138
|
+
*/
|
|
139
|
+
constructor(name: string, args: KubernetesNodePoolArgs, opts?: pulumi.CustomResourceOptions);
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Input properties used for looking up and filtering KubernetesNodePool resources.
|
|
143
|
+
*/
|
|
144
|
+
export interface KubernetesNodePoolState {
|
|
145
|
+
/**
|
|
146
|
+
* A computed field representing the actual number of nodes in the node pool, which is especially useful when auto-scaling is enabled.
|
|
147
|
+
*/
|
|
148
|
+
actualNodeCount?: pulumi.Input<number>;
|
|
149
|
+
/**
|
|
150
|
+
* Enable auto-scaling of the number of nodes in the node pool within the given min/max range.
|
|
151
|
+
*/
|
|
152
|
+
autoScale?: pulumi.Input<boolean>;
|
|
153
|
+
/**
|
|
154
|
+
* The ID of the Kubernetes cluster to which the node pool is associated.
|
|
155
|
+
*/
|
|
156
|
+
clusterId?: pulumi.Input<string>;
|
|
157
|
+
/**
|
|
158
|
+
* A map of key/value pairs to apply to nodes in the pool. The labels are exposed in the Kubernetes API as labels in the metadata of the corresponding [Node resources](https://kubernetes.io/docs/concepts/architecture/nodes/).
|
|
159
|
+
*/
|
|
160
|
+
labels?: pulumi.Input<{
|
|
161
|
+
[key: string]: pulumi.Input<string>;
|
|
162
|
+
}>;
|
|
163
|
+
/**
|
|
164
|
+
* If auto-scaling is enabled, this represents the maximum number of nodes that the node pool can be scaled up to.
|
|
165
|
+
*/
|
|
166
|
+
maxNodes?: pulumi.Input<number>;
|
|
167
|
+
/**
|
|
168
|
+
* If auto-scaling is enabled, this represents the minimum number of nodes that the node pool can be scaled down to.
|
|
169
|
+
*/
|
|
170
|
+
minNodes?: pulumi.Input<number>;
|
|
171
|
+
/**
|
|
172
|
+
* A name for the node pool.
|
|
173
|
+
*/
|
|
174
|
+
name?: pulumi.Input<string>;
|
|
175
|
+
/**
|
|
176
|
+
* The number of Droplet instances in the node pool. If auto-scaling is enabled, this should only be set if the desired result is to explicitly reset the number of nodes to this value. If auto-scaling is enabled, and the node count is outside of the given min/max range, it will use the min nodes value.
|
|
177
|
+
*/
|
|
178
|
+
nodeCount?: pulumi.Input<number>;
|
|
179
|
+
/**
|
|
180
|
+
* A list of nodes in the pool. Each node exports the following attributes:
|
|
181
|
+
*/
|
|
182
|
+
nodes?: pulumi.Input<pulumi.Input<inputs.KubernetesNodePoolNode>[]>;
|
|
183
|
+
/**
|
|
184
|
+
* The slug identifier for the type of Droplet to be used as workers in the node pool.
|
|
185
|
+
*/
|
|
186
|
+
size?: pulumi.Input<string | enums.DropletSlug>;
|
|
187
|
+
/**
|
|
188
|
+
* A list of tag names to be applied to the Kubernetes cluster.
|
|
189
|
+
*/
|
|
190
|
+
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
191
|
+
/**
|
|
192
|
+
* A list of taints applied to all nodes in the pool.
|
|
193
|
+
*/
|
|
194
|
+
taints?: pulumi.Input<pulumi.Input<inputs.KubernetesNodePoolTaint>[]>;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* The set of arguments for constructing a KubernetesNodePool resource.
|
|
198
|
+
*/
|
|
199
|
+
export interface KubernetesNodePoolArgs {
|
|
200
|
+
/**
|
|
201
|
+
* Enable auto-scaling of the number of nodes in the node pool within the given min/max range.
|
|
202
|
+
*/
|
|
203
|
+
autoScale?: pulumi.Input<boolean>;
|
|
204
|
+
/**
|
|
205
|
+
* The ID of the Kubernetes cluster to which the node pool is associated.
|
|
206
|
+
*/
|
|
207
|
+
clusterId: pulumi.Input<string>;
|
|
208
|
+
/**
|
|
209
|
+
* A map of key/value pairs to apply to nodes in the pool. The labels are exposed in the Kubernetes API as labels in the metadata of the corresponding [Node resources](https://kubernetes.io/docs/concepts/architecture/nodes/).
|
|
210
|
+
*/
|
|
211
|
+
labels?: pulumi.Input<{
|
|
212
|
+
[key: string]: pulumi.Input<string>;
|
|
213
|
+
}>;
|
|
214
|
+
/**
|
|
215
|
+
* If auto-scaling is enabled, this represents the maximum number of nodes that the node pool can be scaled up to.
|
|
216
|
+
*/
|
|
217
|
+
maxNodes?: pulumi.Input<number>;
|
|
218
|
+
/**
|
|
219
|
+
* If auto-scaling is enabled, this represents the minimum number of nodes that the node pool can be scaled down to.
|
|
220
|
+
*/
|
|
221
|
+
minNodes?: pulumi.Input<number>;
|
|
222
|
+
/**
|
|
223
|
+
* A name for the node pool.
|
|
224
|
+
*/
|
|
225
|
+
name?: pulumi.Input<string>;
|
|
226
|
+
/**
|
|
227
|
+
* The number of Droplet instances in the node pool. If auto-scaling is enabled, this should only be set if the desired result is to explicitly reset the number of nodes to this value. If auto-scaling is enabled, and the node count is outside of the given min/max range, it will use the min nodes value.
|
|
228
|
+
*/
|
|
229
|
+
nodeCount?: pulumi.Input<number>;
|
|
230
|
+
/**
|
|
231
|
+
* The slug identifier for the type of Droplet to be used as workers in the node pool.
|
|
232
|
+
*/
|
|
233
|
+
size: pulumi.Input<string | enums.DropletSlug>;
|
|
234
|
+
/**
|
|
235
|
+
* A list of tag names to be applied to the Kubernetes cluster.
|
|
236
|
+
*/
|
|
237
|
+
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
238
|
+
/**
|
|
239
|
+
* A list of taints applied to all nodes in the pool.
|
|
240
|
+
*/
|
|
241
|
+
taints?: pulumi.Input<pulumi.Input<inputs.KubernetesNodePoolTaint>[]>;
|
|
242
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
const pulumi = require("@pulumi/pulumi");
|
|
6
|
+
const utilities = require("./utilities");
|
|
7
|
+
/**
|
|
8
|
+
* Provides a DigitalOcean Kubernetes node pool resource. While the default node pool must be defined in the `digitalocean.KubernetesCluster` resource, this resource can be used to add additional ones to a cluster.
|
|
9
|
+
*
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
* ### Basic Example
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
16
|
+
*
|
|
17
|
+
* const foo = new digitalocean.KubernetesCluster("foo", {
|
|
18
|
+
* region: "nyc1",
|
|
19
|
+
* version: "1.20.2-do.0",
|
|
20
|
+
* nodePool: {
|
|
21
|
+
* name: "front-end-pool",
|
|
22
|
+
* size: "s-2vcpu-2gb",
|
|
23
|
+
* nodeCount: 3,
|
|
24
|
+
* },
|
|
25
|
+
* });
|
|
26
|
+
* const bar = new digitalocean.KubernetesNodePool("bar", {
|
|
27
|
+
* clusterId: foo.id,
|
|
28
|
+
* size: "c-2",
|
|
29
|
+
* nodeCount: 2,
|
|
30
|
+
* tags: ["backend"],
|
|
31
|
+
* labels: {
|
|
32
|
+
* service: "backend",
|
|
33
|
+
* priority: "high",
|
|
34
|
+
* },
|
|
35
|
+
* taints: [{
|
|
36
|
+
* key: "workloadKind",
|
|
37
|
+
* value: "database",
|
|
38
|
+
* effect: "NoSchedule",
|
|
39
|
+
* }],
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
42
|
+
* ### Autoscaling Example
|
|
43
|
+
*
|
|
44
|
+
* Node pools may also be configured to [autoscale](https://www.digitalocean.com/docs/kubernetes/how-to/autoscale/).
|
|
45
|
+
* For example:
|
|
46
|
+
*
|
|
47
|
+
* ```typescript
|
|
48
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
49
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
50
|
+
*
|
|
51
|
+
* const autoscale_pool_01 = new digitalocean.KubernetesNodePool("autoscale-pool-01", {
|
|
52
|
+
* clusterId: digitalocean_kubernetes_cluster.foo.id,
|
|
53
|
+
* size: "s-1vcpu-2gb",
|
|
54
|
+
* autoScale: true,
|
|
55
|
+
* minNodes: 1,
|
|
56
|
+
* maxNodes: 5,
|
|
57
|
+
* });
|
|
58
|
+
* ```
|
|
59
|
+
*
|
|
60
|
+
* ## Import
|
|
61
|
+
*
|
|
62
|
+
* If you are importing an existing Kubernetes cluster, just import the cluster. Importing a cluster also imports all of its associated node pools. If you still need to import a single node pool, then import it by using its `id`, e.g.
|
|
63
|
+
*
|
|
64
|
+
* ```sh
|
|
65
|
+
* $ pulumi import digitalocean:index/kubernetesNodePool:KubernetesNodePool mynodepool 9d76f410-9284-4436-9633-4066852442c8
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
68
|
+
* NoteIf the node pool has the `terraform:default-node-pool` tag, then it is a default node pool for an existing cluster. The provider will refuse to import the node pool in that case because the node pool is managed by the `digitalocean_kubernetes_cluster` resource and not by this `digitalocean_kubernetes_node_pool` resource.
|
|
69
|
+
*/
|
|
70
|
+
class KubernetesNodePool extends pulumi.CustomResource {
|
|
71
|
+
constructor(name, argsOrState, opts) {
|
|
72
|
+
let inputs = {};
|
|
73
|
+
opts = opts || {};
|
|
74
|
+
if (opts.id) {
|
|
75
|
+
const state = argsOrState;
|
|
76
|
+
inputs["actualNodeCount"] = state ? state.actualNodeCount : undefined;
|
|
77
|
+
inputs["autoScale"] = state ? state.autoScale : undefined;
|
|
78
|
+
inputs["clusterId"] = state ? state.clusterId : undefined;
|
|
79
|
+
inputs["labels"] = state ? state.labels : undefined;
|
|
80
|
+
inputs["maxNodes"] = state ? state.maxNodes : undefined;
|
|
81
|
+
inputs["minNodes"] = state ? state.minNodes : undefined;
|
|
82
|
+
inputs["name"] = state ? state.name : undefined;
|
|
83
|
+
inputs["nodeCount"] = state ? state.nodeCount : undefined;
|
|
84
|
+
inputs["nodes"] = state ? state.nodes : undefined;
|
|
85
|
+
inputs["size"] = state ? state.size : undefined;
|
|
86
|
+
inputs["tags"] = state ? state.tags : undefined;
|
|
87
|
+
inputs["taints"] = state ? state.taints : undefined;
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
const args = argsOrState;
|
|
91
|
+
if ((!args || args.clusterId === undefined) && !opts.urn) {
|
|
92
|
+
throw new Error("Missing required property 'clusterId'");
|
|
93
|
+
}
|
|
94
|
+
if ((!args || args.size === undefined) && !opts.urn) {
|
|
95
|
+
throw new Error("Missing required property 'size'");
|
|
96
|
+
}
|
|
97
|
+
inputs["autoScale"] = args ? args.autoScale : undefined;
|
|
98
|
+
inputs["clusterId"] = args ? args.clusterId : undefined;
|
|
99
|
+
inputs["labels"] = args ? args.labels : undefined;
|
|
100
|
+
inputs["maxNodes"] = args ? args.maxNodes : undefined;
|
|
101
|
+
inputs["minNodes"] = args ? args.minNodes : undefined;
|
|
102
|
+
inputs["name"] = args ? args.name : undefined;
|
|
103
|
+
inputs["nodeCount"] = args ? args.nodeCount : undefined;
|
|
104
|
+
inputs["size"] = args ? args.size : undefined;
|
|
105
|
+
inputs["tags"] = args ? args.tags : undefined;
|
|
106
|
+
inputs["taints"] = args ? args.taints : undefined;
|
|
107
|
+
inputs["actualNodeCount"] = undefined /*out*/;
|
|
108
|
+
inputs["nodes"] = undefined /*out*/;
|
|
109
|
+
}
|
|
110
|
+
if (!opts.version) {
|
|
111
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
112
|
+
}
|
|
113
|
+
super(KubernetesNodePool.__pulumiType, name, inputs, opts);
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Get an existing KubernetesNodePool resource's state with the given name, ID, and optional extra
|
|
117
|
+
* properties used to qualify the lookup.
|
|
118
|
+
*
|
|
119
|
+
* @param name The _unique_ name of the resulting resource.
|
|
120
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
121
|
+
* @param state Any extra arguments used during the lookup.
|
|
122
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
123
|
+
*/
|
|
124
|
+
static get(name, id, state, opts) {
|
|
125
|
+
return new KubernetesNodePool(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Returns true if the given object is an instance of KubernetesNodePool. This is designed to work even
|
|
129
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
130
|
+
*/
|
|
131
|
+
static isInstance(obj) {
|
|
132
|
+
if (obj === undefined || obj === null) {
|
|
133
|
+
return false;
|
|
134
|
+
}
|
|
135
|
+
return obj['__pulumiType'] === KubernetesNodePool.__pulumiType;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
exports.KubernetesNodePool = KubernetesNodePool;
|
|
139
|
+
/** @internal */
|
|
140
|
+
KubernetesNodePool.__pulumiType = 'digitalocean:index/kubernetesNodePool:KubernetesNodePool';
|
|
141
|
+
//# sourceMappingURL=kubernetesNodePool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kubernetesNodePool.js","sourceRoot":"","sources":["../kubernetesNodePool.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IAqFzD,YAAY,IAAY,EAAE,WAA8D,EAAE,IAAmC;QACzH,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAkD,CAAC;YACjE,MAAM,CAAC,iBAAiB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,MAAM,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,C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