@pulumiverse/scaleway 1.40.0 → 1.41.0
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/appleSiliconServer.d.ts +3 -2
- package/appleSiliconServer.js +3 -2
- package/appleSiliconServer.js.map +1 -1
- package/applesilicon/server.d.ts +3 -2
- package/applesilicon/server.js +3 -2
- package/applesilicon/server.js.map +1 -1
- package/audittrail/getEvent.d.ts +106 -32
- package/audittrail/getEvent.js +106 -32
- package/audittrail/getEvent.js.map +1 -1
- package/cockpitAlertManager.d.ts +64 -13
- package/cockpitAlertManager.js +41 -6
- package/cockpitAlertManager.js.map +1 -1
- package/container.d.ts +36 -0
- package/container.js +36 -0
- package/container.js.map +1 -1
- package/containerToken.d.ts +3 -0
- package/containerToken.js +3 -0
- package/containerToken.js.map +1 -1
- package/containers/container.d.ts +36 -0
- package/containers/container.js +36 -0
- package/containers/container.js.map +1 -1
- package/containers/token.d.ts +3 -0
- package/containers/token.js +3 -0
- package/containers/token.js.map +1 -1
- package/databaseInstance.d.ts +2 -0
- package/databaseInstance.js +2 -0
- package/databaseInstance.js.map +1 -1
- package/databases/instance.d.ts +2 -0
- package/databases/instance.js +2 -0
- package/databases/instance.js.map +1 -1
- package/functionToken.d.ts +3 -0
- package/functionToken.js +3 -0
- package/functionToken.js.map +1 -1
- package/functions/token.d.ts +3 -0
- package/functions/token.js +3 -0
- package/functions/token.js.map +1 -1
- package/getK8sVersion.d.ts +10 -12
- package/getK8sVersion.js +10 -12
- package/getK8sVersion.js.map +1 -1
- package/getKubernetesCluster.d.ts +50 -2
- package/getKubernetesCluster.js +50 -2
- package/getKubernetesCluster.js.map +1 -1
- package/getKubernetesNodePool.d.ts +52 -2
- package/getKubernetesNodePool.js +52 -2
- package/getKubernetesNodePool.js.map +1 -1
- package/getSecretVersion.d.ts +2 -0
- package/getSecretVersion.js.map +1 -1
- package/instance/server.d.ts +1 -1
- package/instanceServer.d.ts +1 -1
- package/job/definition.d.ts +12 -0
- package/job/definition.js +2 -0
- package/job/definition.js.map +1 -1
- package/jobDefinition.d.ts +12 -0
- package/jobDefinition.js +2 -0
- package/jobDefinition.js.map +1 -1
- package/kubernetes/acl.d.ts +2 -4
- package/kubernetes/acl.js +2 -4
- package/kubernetes/acl.js.map +1 -1
- package/kubernetes/cluster.d.ts +57 -64
- package/kubernetes/cluster.js +57 -64
- package/kubernetes/cluster.js.map +1 -1
- package/kubernetes/getCluster.d.ts +50 -2
- package/kubernetes/getCluster.js +50 -2
- package/kubernetes/getCluster.js.map +1 -1
- package/kubernetes/getPool.d.ts +52 -2
- package/kubernetes/getPool.js +52 -2
- package/kubernetes/getPool.js.map +1 -1
- package/kubernetes/getVersion.d.ts +10 -12
- package/kubernetes/getVersion.js +10 -12
- package/kubernetes/getVersion.js.map +1 -1
- package/kubernetesCluster.d.ts +57 -64
- package/kubernetesCluster.js +57 -64
- package/kubernetesCluster.js.map +1 -1
- package/loadbalancerCertificate.d.ts +10 -0
- package/loadbalancerCertificate.js +10 -0
- package/loadbalancerCertificate.js.map +1 -1
- package/loadbalancers/certificate.d.ts +11 -0
- package/loadbalancers/certificate.js +11 -0
- package/loadbalancers/certificate.js.map +1 -1
- package/observability/alertManager.d.ts +64 -13
- package/observability/alertManager.js +41 -6
- package/observability/alertManager.js.map +1 -1
- package/observability/getPreconfiguredAlert.d.ts +185 -0
- package/observability/getPreconfiguredAlert.js +146 -0
- package/observability/getPreconfiguredAlert.js.map +1 -0
- package/observability/index.d.ts +3 -0
- package/observability/index.js +4 -1
- package/observability/index.js.map +1 -1
- package/package.json +2 -2
- package/secretVersion.d.ts +29 -5
- package/secretVersion.js +5 -4
- package/secretVersion.js.map +1 -1
- package/secrets/getVersion.d.ts +2 -0
- package/secrets/getVersion.js.map +1 -1
- package/secrets/version.d.ts +29 -5
- package/secrets/version.js +5 -4
- package/secrets/version.js.map +1 -1
- package/types/output.d.ts +52 -0
|
@@ -1,29 +1,28 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
3
|
+
* The `scaleway.kubernetes.getVersion` data source is used to retrieve information about a Kubernetes version.
|
|
4
|
+
*
|
|
5
|
+
* Refer to the Kubernetes [documentation](https://www.scaleway.com/en/docs/compute/kubernetes/) and [API documentation](https://www.scaleway.com/en/developers/api/kubernetes/) for more information.
|
|
5
6
|
*
|
|
6
7
|
* You can also use the [scaleway-cli](https://github.com/scaleway/scaleway-cli) with `scw k8s version list` to list all available versions.
|
|
7
8
|
*
|
|
8
9
|
* ## Example Usage
|
|
9
10
|
*
|
|
10
|
-
* ### Use the latest version
|
|
11
|
-
*
|
|
12
11
|
* ```typescript
|
|
13
12
|
* import * as pulumi from "@pulumi/pulumi";
|
|
14
13
|
* import * as scaleway from "@pulumiverse/scaleway";
|
|
15
14
|
*
|
|
15
|
+
* // Use the latest version
|
|
16
16
|
* const latest = scaleway.kubernetes.getVersion({
|
|
17
17
|
* name: "latest",
|
|
18
18
|
* });
|
|
19
19
|
* ```
|
|
20
20
|
*
|
|
21
|
-
* ### Use a specific version
|
|
22
|
-
*
|
|
23
21
|
* ```typescript
|
|
24
22
|
* import * as pulumi from "@pulumi/pulumi";
|
|
25
23
|
* import * as scaleway from "@pulumiverse/scaleway";
|
|
26
24
|
*
|
|
25
|
+
* // Use a specific version
|
|
27
26
|
* const byName = scaleway.kubernetes.getVersion({
|
|
28
27
|
* name: "1.26.0",
|
|
29
28
|
* });
|
|
@@ -68,30 +67,29 @@ export interface GetVersionResult {
|
|
|
68
67
|
readonly region?: string;
|
|
69
68
|
}
|
|
70
69
|
/**
|
|
71
|
-
*
|
|
72
|
-
*
|
|
70
|
+
* The `scaleway.kubernetes.getVersion` data source is used to retrieve information about a Kubernetes version.
|
|
71
|
+
*
|
|
72
|
+
* Refer to the Kubernetes [documentation](https://www.scaleway.com/en/docs/compute/kubernetes/) and [API documentation](https://www.scaleway.com/en/developers/api/kubernetes/) for more information.
|
|
73
73
|
*
|
|
74
74
|
* You can also use the [scaleway-cli](https://github.com/scaleway/scaleway-cli) with `scw k8s version list` to list all available versions.
|
|
75
75
|
*
|
|
76
76
|
* ## Example Usage
|
|
77
77
|
*
|
|
78
|
-
* ### Use the latest version
|
|
79
|
-
*
|
|
80
78
|
* ```typescript
|
|
81
79
|
* import * as pulumi from "@pulumi/pulumi";
|
|
82
80
|
* import * as scaleway from "@pulumiverse/scaleway";
|
|
83
81
|
*
|
|
82
|
+
* // Use the latest version
|
|
84
83
|
* const latest = scaleway.kubernetes.getVersion({
|
|
85
84
|
* name: "latest",
|
|
86
85
|
* });
|
|
87
86
|
* ```
|
|
88
87
|
*
|
|
89
|
-
* ### Use a specific version
|
|
90
|
-
*
|
|
91
88
|
* ```typescript
|
|
92
89
|
* import * as pulumi from "@pulumi/pulumi";
|
|
93
90
|
* import * as scaleway from "@pulumiverse/scaleway";
|
|
94
91
|
*
|
|
92
|
+
* // Use a specific version
|
|
95
93
|
* const byName = scaleway.kubernetes.getVersion({
|
|
96
94
|
* name: "1.26.0",
|
|
97
95
|
* });
|
package/kubernetes/getVersion.js
CHANGED
|
@@ -6,30 +6,29 @@ exports.getVersionOutput = exports.getVersion = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* The `scaleway.kubernetes.getVersion` data source is used to retrieve information about a Kubernetes version.
|
|
10
|
+
*
|
|
11
|
+
* Refer to the Kubernetes [documentation](https://www.scaleway.com/en/docs/compute/kubernetes/) and [API documentation](https://www.scaleway.com/en/developers/api/kubernetes/) for more information.
|
|
11
12
|
*
|
|
12
13
|
* You can also use the [scaleway-cli](https://github.com/scaleway/scaleway-cli) with `scw k8s version list` to list all available versions.
|
|
13
14
|
*
|
|
14
15
|
* ## Example Usage
|
|
15
16
|
*
|
|
16
|
-
* ### Use the latest version
|
|
17
|
-
*
|
|
18
17
|
* ```typescript
|
|
19
18
|
* import * as pulumi from "@pulumi/pulumi";
|
|
20
19
|
* import * as scaleway from "@pulumiverse/scaleway";
|
|
21
20
|
*
|
|
21
|
+
* // Use the latest version
|
|
22
22
|
* const latest = scaleway.kubernetes.getVersion({
|
|
23
23
|
* name: "latest",
|
|
24
24
|
* });
|
|
25
25
|
* ```
|
|
26
26
|
*
|
|
27
|
-
* ### Use a specific version
|
|
28
|
-
*
|
|
29
27
|
* ```typescript
|
|
30
28
|
* import * as pulumi from "@pulumi/pulumi";
|
|
31
29
|
* import * as scaleway from "@pulumiverse/scaleway";
|
|
32
30
|
*
|
|
31
|
+
* // Use a specific version
|
|
33
32
|
* const byName = scaleway.kubernetes.getVersion({
|
|
34
33
|
* name: "1.26.0",
|
|
35
34
|
* });
|
|
@@ -44,30 +43,29 @@ function getVersion(args, opts) {
|
|
|
44
43
|
}
|
|
45
44
|
exports.getVersion = getVersion;
|
|
46
45
|
/**
|
|
47
|
-
*
|
|
48
|
-
*
|
|
46
|
+
* The `scaleway.kubernetes.getVersion` data source is used to retrieve information about a Kubernetes version.
|
|
47
|
+
*
|
|
48
|
+
* Refer to the Kubernetes [documentation](https://www.scaleway.com/en/docs/compute/kubernetes/) and [API documentation](https://www.scaleway.com/en/developers/api/kubernetes/) for more information.
|
|
49
49
|
*
|
|
50
50
|
* You can also use the [scaleway-cli](https://github.com/scaleway/scaleway-cli) with `scw k8s version list` to list all available versions.
|
|
51
51
|
*
|
|
52
52
|
* ## Example Usage
|
|
53
53
|
*
|
|
54
|
-
* ### Use the latest version
|
|
55
|
-
*
|
|
56
54
|
* ```typescript
|
|
57
55
|
* import * as pulumi from "@pulumi/pulumi";
|
|
58
56
|
* import * as scaleway from "@pulumiverse/scaleway";
|
|
59
57
|
*
|
|
58
|
+
* // Use the latest version
|
|
60
59
|
* const latest = scaleway.kubernetes.getVersion({
|
|
61
60
|
* name: "latest",
|
|
62
61
|
* });
|
|
63
62
|
* ```
|
|
64
63
|
*
|
|
65
|
-
* ### Use a specific version
|
|
66
|
-
*
|
|
67
64
|
* ```typescript
|
|
68
65
|
* import * as pulumi from "@pulumi/pulumi";
|
|
69
66
|
* import * as scaleway from "@pulumiverse/scaleway";
|
|
70
67
|
*
|
|
68
|
+
* // Use a specific version
|
|
71
69
|
* const byName = scaleway.kubernetes.getVersion({
|
|
72
70
|
* name: "1.26.0",
|
|
73
71
|
* });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getVersion.js","sourceRoot":"","sources":["../../kubernetes/getVersion.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"getVersion.js","sourceRoot":"","sources":["../../kubernetes/getVersion.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IACxE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,2CAA2C,EAAE;QACtE,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,gCAMC;AAwCD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAAiC;IAC1F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,2CAA2C,EAAE;QAC5E,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,4CAMC"}
|
package/kubernetesCluster.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* The `scaleway.kubernetes.Cluster` resource allows you to create and manage Scaleway Kubernetes clusters.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* Refer to the Kubernetes [documentation](https://www.scaleway.com/en/docs/compute/kubernetes/) and [API documentation](https://www.scaleway.com/en/developers/api/kubernetes/) for more information.
|
|
8
8
|
*
|
|
9
|
-
*
|
|
9
|
+
* ## Example Usage
|
|
10
10
|
*
|
|
11
11
|
* ```typescript
|
|
12
12
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -28,32 +28,6 @@ import * as outputs from "./types/output";
|
|
|
28
28
|
* });
|
|
29
29
|
* ```
|
|
30
30
|
*
|
|
31
|
-
* ### Multicloud
|
|
32
|
-
*
|
|
33
|
-
* ```typescript
|
|
34
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
35
|
-
* import * as scaleway from "@pulumiverse/scaleway";
|
|
36
|
-
*
|
|
37
|
-
* const cluster = new scaleway.kubernetes.Cluster("cluster", {
|
|
38
|
-
* name: "tf-cluster",
|
|
39
|
-
* type: "multicloud",
|
|
40
|
-
* version: "1.32.3",
|
|
41
|
-
* cni: "kilo",
|
|
42
|
-
* deleteAdditionalResources: false,
|
|
43
|
-
* });
|
|
44
|
-
* const pool = new scaleway.kubernetes.Pool("pool", {
|
|
45
|
-
* clusterId: cluster.id,
|
|
46
|
-
* name: "tf-pool",
|
|
47
|
-
* nodeType: "external",
|
|
48
|
-
* size: 0,
|
|
49
|
-
* minSize: 0,
|
|
50
|
-
* });
|
|
51
|
-
* ```
|
|
52
|
-
*
|
|
53
|
-
* For a detailed example of how to add or run Elastic Metal servers instead of Instances on your cluster, please refer to this guide.
|
|
54
|
-
*
|
|
55
|
-
* ### With additional configuration
|
|
56
|
-
*
|
|
57
31
|
* ```typescript
|
|
58
32
|
* import * as pulumi from "@pulumi/pulumi";
|
|
59
33
|
* import * as scaleway from "@pulumiverse/scaleway";
|
|
@@ -89,47 +63,13 @@ import * as outputs from "./types/output";
|
|
|
89
63
|
* });
|
|
90
64
|
* ```
|
|
91
65
|
*
|
|
92
|
-
* ### With the kubernetes provider
|
|
93
|
-
*
|
|
94
|
-
* ```typescript
|
|
95
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
96
|
-
* import * as _null from "@pulumi/null";
|
|
97
|
-
* import * as scaleway from "@pulumiverse/scaleway";
|
|
98
|
-
*
|
|
99
|
-
* const pn = new scaleway.network.PrivateNetwork("pn", {});
|
|
100
|
-
* const cluster = new scaleway.kubernetes.Cluster("cluster", {
|
|
101
|
-
* name: "tf-cluster",
|
|
102
|
-
* version: "1.29.1",
|
|
103
|
-
* cni: "cilium",
|
|
104
|
-
* privateNetworkId: pn.id,
|
|
105
|
-
* deleteAdditionalResources: false,
|
|
106
|
-
* });
|
|
107
|
-
* const pool = new scaleway.kubernetes.Pool("pool", {
|
|
108
|
-
* clusterId: cluster.id,
|
|
109
|
-
* name: "tf-pool",
|
|
110
|
-
* nodeType: "DEV1-M",
|
|
111
|
-
* size: 1,
|
|
112
|
-
* });
|
|
113
|
-
* const kubeconfig = new _null.Resource("kubeconfig", {triggers: {
|
|
114
|
-
* host: cluster.kubeconfigs.apply(kubeconfigs => kubeconfigs[0].host),
|
|
115
|
-
* token: cluster.kubeconfigs.apply(kubeconfigs => kubeconfigs[0].token),
|
|
116
|
-
* clusterCaCertificate: cluster.kubeconfigs.apply(kubeconfigs => kubeconfigs[0].clusterCaCertificate),
|
|
117
|
-
* }}, {
|
|
118
|
-
* dependsOn: [pool],
|
|
119
|
-
* });
|
|
120
|
-
* ```
|
|
121
|
-
*
|
|
122
|
-
* The `nullResource` is needed because when the cluster is created, its status is `poolRequired`, but the kubeconfig can already be downloaded.
|
|
123
|
-
* It leads the `kubernetes` provider to start creating its objects, but the DNS entry for the Kubernetes master is not yet ready, that's why it's needed to wait for at least a pool.
|
|
124
|
-
*
|
|
125
|
-
* ### With the Helm provider
|
|
126
|
-
*
|
|
127
66
|
* ```typescript
|
|
128
67
|
* import * as pulumi from "@pulumi/pulumi";
|
|
129
68
|
* import * as _null from "@pulumi/null";
|
|
130
69
|
* import * as helm from "@pulumi/helm";
|
|
131
70
|
* import * as scaleway from "@pulumiverse/scaleway";
|
|
132
71
|
*
|
|
72
|
+
* // Example with an Helm provider
|
|
133
73
|
* const pn = new scaleway.network.PrivateNetwork("pn", {});
|
|
134
74
|
* const cluster = new scaleway.kubernetes.Cluster("cluster", {
|
|
135
75
|
* name: "tf-cluster",
|
|
@@ -185,6 +125,59 @@ import * as outputs from "./types/output";
|
|
|
185
125
|
* });
|
|
186
126
|
* ```
|
|
187
127
|
*
|
|
128
|
+
* ```typescript
|
|
129
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
130
|
+
* import * as _null from "@pulumi/null";
|
|
131
|
+
* import * as scaleway from "@pulumiverse/scaleway";
|
|
132
|
+
*
|
|
133
|
+
* // Example with the kubernetes provider
|
|
134
|
+
* const pn = new scaleway.network.PrivateNetwork("pn", {});
|
|
135
|
+
* const cluster = new scaleway.kubernetes.Cluster("cluster", {
|
|
136
|
+
* name: "tf-cluster",
|
|
137
|
+
* version: "1.29.1",
|
|
138
|
+
* cni: "cilium",
|
|
139
|
+
* privateNetworkId: pn.id,
|
|
140
|
+
* deleteAdditionalResources: false,
|
|
141
|
+
* });
|
|
142
|
+
* const pool = new scaleway.kubernetes.Pool("pool", {
|
|
143
|
+
* clusterId: cluster.id,
|
|
144
|
+
* name: "tf-pool",
|
|
145
|
+
* nodeType: "DEV1-M",
|
|
146
|
+
* size: 1,
|
|
147
|
+
* });
|
|
148
|
+
* // The `null_resource` is needed because when the cluster is created, its status is `pool_required`, but the kubeconfig can already be downloaded.
|
|
149
|
+
* // It leads the `kubernetes` provider to start creating its objects, but the DNS entry for the Kubernetes master is not yet ready, that's why it's needed to wait for at least a pool.
|
|
150
|
+
* const kubeconfig = new _null.Resource("kubeconfig", {triggers: {
|
|
151
|
+
* host: cluster.kubeconfigs.apply(kubeconfigs => kubeconfigs[0].host),
|
|
152
|
+
* token: cluster.kubeconfigs.apply(kubeconfigs => kubeconfigs[0].token),
|
|
153
|
+
* clusterCaCertificate: cluster.kubeconfigs.apply(kubeconfigs => kubeconfigs[0].clusterCaCertificate),
|
|
154
|
+
* }}, {
|
|
155
|
+
* dependsOn: [pool],
|
|
156
|
+
* });
|
|
157
|
+
* ```
|
|
158
|
+
*
|
|
159
|
+
* ```typescript
|
|
160
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
161
|
+
* import * as scaleway from "@pulumiverse/scaleway";
|
|
162
|
+
*
|
|
163
|
+
* // Multicloud Kubernetes Cluster Example
|
|
164
|
+
* // For a detailed example of how to add or run Elastic Metal servers instead of Instances on your cluster, please refer to [this guide](../guides/multicloud_cluster_with_baremetal_servers.md).
|
|
165
|
+
* const cluster = new scaleway.kubernetes.Cluster("cluster", {
|
|
166
|
+
* name: "tf-cluster",
|
|
167
|
+
* type: "multicloud",
|
|
168
|
+
* version: "1.32.3",
|
|
169
|
+
* cni: "kilo",
|
|
170
|
+
* deleteAdditionalResources: false,
|
|
171
|
+
* });
|
|
172
|
+
* const pool = new scaleway.kubernetes.Pool("pool", {
|
|
173
|
+
* clusterId: cluster.id,
|
|
174
|
+
* name: "tf-pool",
|
|
175
|
+
* nodeType: "external",
|
|
176
|
+
* size: 0,
|
|
177
|
+
* minSize: 0,
|
|
178
|
+
* });
|
|
179
|
+
* ```
|
|
180
|
+
*
|
|
188
181
|
* ## Deprecation of defaultPool
|
|
189
182
|
*
|
|
190
183
|
* `defaultPool` is deprecated in favour the `scaleway.kubernetes.Pool` resource. Here is a migration example.
|
package/kubernetesCluster.js
CHANGED
|
@@ -6,11 +6,11 @@ exports.KubernetesCluster = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* The `scaleway.kubernetes.Cluster` resource allows you to create and manage Scaleway Kubernetes clusters.
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
* Refer to the Kubernetes [documentation](https://www.scaleway.com/en/docs/compute/kubernetes/) and [API documentation](https://www.scaleway.com/en/developers/api/kubernetes/) for more information.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
13
|
+
* ## Example Usage
|
|
14
14
|
*
|
|
15
15
|
* ```typescript
|
|
16
16
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -32,32 +32,6 @@ const utilities = require("./utilities");
|
|
|
32
32
|
* });
|
|
33
33
|
* ```
|
|
34
34
|
*
|
|
35
|
-
* ### Multicloud
|
|
36
|
-
*
|
|
37
|
-
* ```typescript
|
|
38
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
39
|
-
* import * as scaleway from "@pulumiverse/scaleway";
|
|
40
|
-
*
|
|
41
|
-
* const cluster = new scaleway.kubernetes.Cluster("cluster", {
|
|
42
|
-
* name: "tf-cluster",
|
|
43
|
-
* type: "multicloud",
|
|
44
|
-
* version: "1.32.3",
|
|
45
|
-
* cni: "kilo",
|
|
46
|
-
* deleteAdditionalResources: false,
|
|
47
|
-
* });
|
|
48
|
-
* const pool = new scaleway.kubernetes.Pool("pool", {
|
|
49
|
-
* clusterId: cluster.id,
|
|
50
|
-
* name: "tf-pool",
|
|
51
|
-
* nodeType: "external",
|
|
52
|
-
* size: 0,
|
|
53
|
-
* minSize: 0,
|
|
54
|
-
* });
|
|
55
|
-
* ```
|
|
56
|
-
*
|
|
57
|
-
* For a detailed example of how to add or run Elastic Metal servers instead of Instances on your cluster, please refer to this guide.
|
|
58
|
-
*
|
|
59
|
-
* ### With additional configuration
|
|
60
|
-
*
|
|
61
35
|
* ```typescript
|
|
62
36
|
* import * as pulumi from "@pulumi/pulumi";
|
|
63
37
|
* import * as scaleway from "@pulumiverse/scaleway";
|
|
@@ -93,47 +67,13 @@ const utilities = require("./utilities");
|
|
|
93
67
|
* });
|
|
94
68
|
* ```
|
|
95
69
|
*
|
|
96
|
-
* ### With the kubernetes provider
|
|
97
|
-
*
|
|
98
|
-
* ```typescript
|
|
99
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
100
|
-
* import * as _null from "@pulumi/null";
|
|
101
|
-
* import * as scaleway from "@pulumiverse/scaleway";
|
|
102
|
-
*
|
|
103
|
-
* const pn = new scaleway.network.PrivateNetwork("pn", {});
|
|
104
|
-
* const cluster = new scaleway.kubernetes.Cluster("cluster", {
|
|
105
|
-
* name: "tf-cluster",
|
|
106
|
-
* version: "1.29.1",
|
|
107
|
-
* cni: "cilium",
|
|
108
|
-
* privateNetworkId: pn.id,
|
|
109
|
-
* deleteAdditionalResources: false,
|
|
110
|
-
* });
|
|
111
|
-
* const pool = new scaleway.kubernetes.Pool("pool", {
|
|
112
|
-
* clusterId: cluster.id,
|
|
113
|
-
* name: "tf-pool",
|
|
114
|
-
* nodeType: "DEV1-M",
|
|
115
|
-
* size: 1,
|
|
116
|
-
* });
|
|
117
|
-
* const kubeconfig = new _null.Resource("kubeconfig", {triggers: {
|
|
118
|
-
* host: cluster.kubeconfigs.apply(kubeconfigs => kubeconfigs[0].host),
|
|
119
|
-
* token: cluster.kubeconfigs.apply(kubeconfigs => kubeconfigs[0].token),
|
|
120
|
-
* clusterCaCertificate: cluster.kubeconfigs.apply(kubeconfigs => kubeconfigs[0].clusterCaCertificate),
|
|
121
|
-
* }}, {
|
|
122
|
-
* dependsOn: [pool],
|
|
123
|
-
* });
|
|
124
|
-
* ```
|
|
125
|
-
*
|
|
126
|
-
* The `nullResource` is needed because when the cluster is created, its status is `poolRequired`, but the kubeconfig can already be downloaded.
|
|
127
|
-
* It leads the `kubernetes` provider to start creating its objects, but the DNS entry for the Kubernetes master is not yet ready, that's why it's needed to wait for at least a pool.
|
|
128
|
-
*
|
|
129
|
-
* ### With the Helm provider
|
|
130
|
-
*
|
|
131
70
|
* ```typescript
|
|
132
71
|
* import * as pulumi from "@pulumi/pulumi";
|
|
133
72
|
* import * as _null from "@pulumi/null";
|
|
134
73
|
* import * as helm from "@pulumi/helm";
|
|
135
74
|
* import * as scaleway from "@pulumiverse/scaleway";
|
|
136
75
|
*
|
|
76
|
+
* // Example with an Helm provider
|
|
137
77
|
* const pn = new scaleway.network.PrivateNetwork("pn", {});
|
|
138
78
|
* const cluster = new scaleway.kubernetes.Cluster("cluster", {
|
|
139
79
|
* name: "tf-cluster",
|
|
@@ -189,6 +129,59 @@ const utilities = require("./utilities");
|
|
|
189
129
|
* });
|
|
190
130
|
* ```
|
|
191
131
|
*
|
|
132
|
+
* ```typescript
|
|
133
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
134
|
+
* import * as _null from "@pulumi/null";
|
|
135
|
+
* import * as scaleway from "@pulumiverse/scaleway";
|
|
136
|
+
*
|
|
137
|
+
* // Example with the kubernetes provider
|
|
138
|
+
* const pn = new scaleway.network.PrivateNetwork("pn", {});
|
|
139
|
+
* const cluster = new scaleway.kubernetes.Cluster("cluster", {
|
|
140
|
+
* name: "tf-cluster",
|
|
141
|
+
* version: "1.29.1",
|
|
142
|
+
* cni: "cilium",
|
|
143
|
+
* privateNetworkId: pn.id,
|
|
144
|
+
* deleteAdditionalResources: false,
|
|
145
|
+
* });
|
|
146
|
+
* const pool = new scaleway.kubernetes.Pool("pool", {
|
|
147
|
+
* clusterId: cluster.id,
|
|
148
|
+
* name: "tf-pool",
|
|
149
|
+
* nodeType: "DEV1-M",
|
|
150
|
+
* size: 1,
|
|
151
|
+
* });
|
|
152
|
+
* // The `null_resource` is needed because when the cluster is created, its status is `pool_required`, but the kubeconfig can already be downloaded.
|
|
153
|
+
* // It leads the `kubernetes` provider to start creating its objects, but the DNS entry for the Kubernetes master is not yet ready, that's why it's needed to wait for at least a pool.
|
|
154
|
+
* const kubeconfig = new _null.Resource("kubeconfig", {triggers: {
|
|
155
|
+
* host: cluster.kubeconfigs.apply(kubeconfigs => kubeconfigs[0].host),
|
|
156
|
+
* token: cluster.kubeconfigs.apply(kubeconfigs => kubeconfigs[0].token),
|
|
157
|
+
* clusterCaCertificate: cluster.kubeconfigs.apply(kubeconfigs => kubeconfigs[0].clusterCaCertificate),
|
|
158
|
+
* }}, {
|
|
159
|
+
* dependsOn: [pool],
|
|
160
|
+
* });
|
|
161
|
+
* ```
|
|
162
|
+
*
|
|
163
|
+
* ```typescript
|
|
164
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
165
|
+
* import * as scaleway from "@pulumiverse/scaleway";
|
|
166
|
+
*
|
|
167
|
+
* // Multicloud Kubernetes Cluster Example
|
|
168
|
+
* // For a detailed example of how to add or run Elastic Metal servers instead of Instances on your cluster, please refer to [this guide](../guides/multicloud_cluster_with_baremetal_servers.md).
|
|
169
|
+
* const cluster = new scaleway.kubernetes.Cluster("cluster", {
|
|
170
|
+
* name: "tf-cluster",
|
|
171
|
+
* type: "multicloud",
|
|
172
|
+
* version: "1.32.3",
|
|
173
|
+
* cni: "kilo",
|
|
174
|
+
* deleteAdditionalResources: false,
|
|
175
|
+
* });
|
|
176
|
+
* const pool = new scaleway.kubernetes.Pool("pool", {
|
|
177
|
+
* clusterId: cluster.id,
|
|
178
|
+
* name: "tf-pool",
|
|
179
|
+
* nodeType: "external",
|
|
180
|
+
* size: 0,
|
|
181
|
+
* minSize: 0,
|
|
182
|
+
* });
|
|
183
|
+
* ```
|
|
184
|
+
*
|
|
192
185
|
* ## Deprecation of defaultPool
|
|
193
186
|
*
|
|
194
187
|
* `defaultPool` is deprecated in favour the `scaleway.kubernetes.Pool` resource. Here is a migration example.
|
package/kubernetesCluster.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kubernetesCluster.js","sourceRoot":"","sources":["../kubernetesCluster.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"kubernetesCluster.js","sourceRoot":"","sources":["../kubernetesCluster.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwOG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IACxD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,yJAAyJ,CAAC,CAAA;QAC1K,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,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;IA+ID,yIAAyI;IACzI,YAAY,IAAY,EAAE,WAA4D,EAAE,IAAmC;QACvH,MAAM,CAAC,GAAG,CA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cAAc,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACrD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACvD,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACrD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC;QAChE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;;AAvPL,8CAwPC;AAzOG,gBAAgB;AACO,8BAAY,GAAG,oDAAoD,CAAC"}
|
|
@@ -2,6 +2,16 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
|
+
* ## Import
|
|
6
|
+
*
|
|
7
|
+
* Load Balancer certificates can be imported using the `{zone}/{id}`, e.g.
|
|
8
|
+
*
|
|
9
|
+
* bash
|
|
10
|
+
*
|
|
11
|
+
* ```sh
|
|
12
|
+
* $ pulumi import scaleway:index/loadbalancerCertificate:LoadbalancerCertificate cert01 fr-par-1/11111111-1111-1111-1111-111111111111
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
5
15
|
* @deprecated scaleway.index/loadbalancercertificate.LoadbalancerCertificate has been deprecated in favor of scaleway.loadbalancers/certificate.Certificate
|
|
6
16
|
*/
|
|
7
17
|
export declare class LoadbalancerCertificate extends pulumi.CustomResource {
|
|
@@ -6,6 +6,16 @@ exports.LoadbalancerCertificate = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
+
* ## Import
|
|
10
|
+
*
|
|
11
|
+
* Load Balancer certificates can be imported using the `{zone}/{id}`, e.g.
|
|
12
|
+
*
|
|
13
|
+
* bash
|
|
14
|
+
*
|
|
15
|
+
* ```sh
|
|
16
|
+
* $ pulumi import scaleway:index/loadbalancerCertificate:LoadbalancerCertificate cert01 fr-par-1/11111111-1111-1111-1111-111111111111
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
9
19
|
* @deprecated scaleway.index/loadbalancercertificate.LoadbalancerCertificate has been deprecated in favor of scaleway.loadbalancers/certificate.Certificate
|
|
10
20
|
*/
|
|
11
21
|
class LoadbalancerCertificate extends pulumi.CustomResource {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadbalancerCertificate.js","sourceRoot":"","sources":["../loadbalancerCertificate.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"loadbalancerCertificate.js","sourceRoot":"","sources":["../loadbalancerCertificate.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;GAYG;AACH,MAAa,uBAAwB,SAAQ,MAAM,CAAC,cAAc;IAC9D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoC,EAAE,IAAmC;QAClI,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,sLAAsL,CAAC,CAAA;QACvM,OAAO,IAAI,uBAAuB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAA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AAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvC,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;aACvD;YACD,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,EAAE,iBAAiB,CAAC;YAC9D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACpD,cAAc,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACrD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,yBAAyB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACjE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,uBAAuB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5E,CAAC;;AAlHL,0DAmHC;AApGG,gBAAgB;AACO,oCAAY,GAAG,gEAAgE,CAAC"}
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import * as inputs from "../types/input";
|
|
3
3
|
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* ## Import
|
|
6
|
+
*
|
|
7
|
+
* Load Balancer certificates can be imported using the `{zone}/{id}`, e.g.
|
|
8
|
+
*
|
|
9
|
+
* bash
|
|
10
|
+
*
|
|
11
|
+
* ```sh
|
|
12
|
+
* $ pulumi import scaleway:loadbalancers/certificate:Certificate cert01 fr-par-1/11111111-1111-1111-1111-111111111111
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
4
15
|
export declare class Certificate extends pulumi.CustomResource {
|
|
5
16
|
/**
|
|
6
17
|
* Get an existing Certificate resource's state with the given name, ID, and optional extra
|
|
@@ -5,6 +5,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.Certificate = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Import
|
|
10
|
+
*
|
|
11
|
+
* Load Balancer certificates can be imported using the `{zone}/{id}`, e.g.
|
|
12
|
+
*
|
|
13
|
+
* bash
|
|
14
|
+
*
|
|
15
|
+
* ```sh
|
|
16
|
+
* $ pulumi import scaleway:loadbalancers/certificate:Certificate cert01 fr-par-1/11111111-1111-1111-1111-111111111111
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
8
19
|
class Certificate extends pulumi.CustomResource {
|
|
9
20
|
/**
|
|
10
21
|
* Get an existing Certificate resource's state with the given name, ID, and optional extra
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"certificate.js","sourceRoot":"","sources":["../../loadbalancers/certificate.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAClE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,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