Up-to-date reference of API arguments for CCE node pool configuration you can get at documentation portal
Provides a node pool configuration resource of a CCE container cluster.
Example Usage
Basic example
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const clusterId = config.requireObject<any>("clusterId");
const nodepoolId = config.requireObject<any>("nodepoolId");
const nodePoolConfig = new opentelekomcloud.CceNodePoolConfigV3("node_pool_config", {
clusterId: clusterId,
nodepoolId: nodepoolId,
name: "configuration",
packages: [{
name: "kubelet",
configurations: [{
name: "system-reserved-mem",
value: "600",
}],
}],
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
cluster_id = config.require_object("clusterId")
nodepool_id = config.require_object("nodepoolId")
node_pool_config = opentelekomcloud.CceNodePoolConfigV3("node_pool_config",
cluster_id=cluster_id,
nodepool_id=nodepool_id,
name="configuration",
packages=[{
"name": "kubelet",
"configurations": [{
"name": "system-reserved-mem",
"value": "600",
}],
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
clusterId := cfg.RequireObject("clusterId")
nodepoolId := cfg.RequireObject("nodepoolId")
_, err := opentelekomcloud.NewCceNodePoolConfigV3(ctx, "node_pool_config", &opentelekomcloud.CceNodePoolConfigV3Args{
ClusterId: pulumi.Any(clusterId),
NodepoolId: pulumi.Any(nodepoolId),
Name: pulumi.String("configuration"),
Packages: opentelekomcloud.CceNodePoolConfigV3PackageArray{
&opentelekomcloud.CceNodePoolConfigV3PackageArgs{
Name: pulumi.String("kubelet"),
Configurations: opentelekomcloud.CceNodePoolConfigV3PackageConfigurationArray{
&opentelekomcloud.CceNodePoolConfigV3PackageConfigurationArgs{
Name: pulumi.String("system-reserved-mem"),
Value: pulumi.String("600"),
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var clusterId = config.RequireObject<dynamic>("clusterId");
var nodepoolId = config.RequireObject<dynamic>("nodepoolId");
var nodePoolConfig = new Opentelekomcloud.CceNodePoolConfigV3("node_pool_config", new()
{
ClusterId = clusterId,
NodepoolId = nodepoolId,
Name = "configuration",
Packages = new[]
{
new Opentelekomcloud.Inputs.CceNodePoolConfigV3PackageArgs
{
Name = "kubelet",
Configurations = new[]
{
new Opentelekomcloud.Inputs.CceNodePoolConfigV3PackageConfigurationArgs
{
Name = "system-reserved-mem",
Value = "600",
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.CceNodePoolConfigV3;
import com.pulumi.opentelekomcloud.CceNodePoolConfigV3Args;
import com.pulumi.opentelekomcloud.inputs.CceNodePoolConfigV3PackageArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var clusterId = config.get("clusterId");
final var nodepoolId = config.get("nodepoolId");
var nodePoolConfig = new CceNodePoolConfigV3("nodePoolConfig", CceNodePoolConfigV3Args.builder()
.clusterId(clusterId)
.nodepoolId(nodepoolId)
.name("configuration")
.packages(CceNodePoolConfigV3PackageArgs.builder()
.name("kubelet")
.configurations(CceNodePoolConfigV3PackageConfigurationArgs.builder()
.name("system-reserved-mem")
.value("600")
.build())
.build())
.build());
}
}
configuration:
clusterId:
type: dynamic
nodepoolId:
type: dynamic
resources:
nodePoolConfig:
type: opentelekomcloud:CceNodePoolConfigV3
name: node_pool_config
properties:
clusterId: ${clusterId}
nodepoolId: ${nodepoolId}
name: configuration
packages:
- name: kubelet
configurations:
- name: system-reserved-mem
value: 600
Create CceNodePoolConfigV3 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CceNodePoolConfigV3(name: string, args: CceNodePoolConfigV3Args, opts?: CustomResourceOptions);@overload
def CceNodePoolConfigV3(resource_name: str,
args: CceNodePoolConfigV3Args,
opts: Optional[ResourceOptions] = None)
@overload
def CceNodePoolConfigV3(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
nodepool_id: Optional[str] = None,
packages: Optional[Sequence[CceNodePoolConfigV3PackageArgs]] = None,
cce_node_pool_config_v3_id: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
timeouts: Optional[CceNodePoolConfigV3TimeoutsArgs] = None)func NewCceNodePoolConfigV3(ctx *Context, name string, args CceNodePoolConfigV3Args, opts ...ResourceOption) (*CceNodePoolConfigV3, error)public CceNodePoolConfigV3(string name, CceNodePoolConfigV3Args args, CustomResourceOptions? opts = null)
public CceNodePoolConfigV3(String name, CceNodePoolConfigV3Args args)
public CceNodePoolConfigV3(String name, CceNodePoolConfigV3Args args, CustomResourceOptions options)
type: opentelekomcloud:CceNodePoolConfigV3
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CceNodePoolConfigV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CceNodePoolConfigV3Args
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CceNodePoolConfigV3Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CceNodePoolConfigV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CceNodePoolConfigV3Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var cceNodePoolConfigV3Resource = new Opentelekomcloud.CceNodePoolConfigV3("cceNodePoolConfigV3Resource", new()
{
ClusterId = "string",
NodepoolId = "string",
Packages = new[]
{
new Opentelekomcloud.Inputs.CceNodePoolConfigV3PackageArgs
{
Configurations = new[]
{
new Opentelekomcloud.Inputs.CceNodePoolConfigV3PackageConfigurationArgs
{
Name = "string",
Value = "string",
},
},
Name = "string",
},
},
CceNodePoolConfigV3Id = "string",
Labels =
{
{ "string", "string" },
},
Name = "string",
Timeouts = new Opentelekomcloud.Inputs.CceNodePoolConfigV3TimeoutsArgs
{
Create = "string",
Default = "string",
Delete = "string",
Update = "string",
},
});
example, err := opentelekomcloud.NewCceNodePoolConfigV3(ctx, "cceNodePoolConfigV3Resource", &opentelekomcloud.CceNodePoolConfigV3Args{
ClusterId: pulumi.String("string"),
NodepoolId: pulumi.String("string"),
Packages: opentelekomcloud.CceNodePoolConfigV3PackageArray{
&opentelekomcloud.CceNodePoolConfigV3PackageArgs{
Configurations: opentelekomcloud.CceNodePoolConfigV3PackageConfigurationArray{
&opentelekomcloud.CceNodePoolConfigV3PackageConfigurationArgs{
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
},
},
CceNodePoolConfigV3Id: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
Timeouts: &opentelekomcloud.CceNodePoolConfigV3TimeoutsArgs{
Create: pulumi.String("string"),
Default: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var cceNodePoolConfigV3Resource = new CceNodePoolConfigV3("cceNodePoolConfigV3Resource", CceNodePoolConfigV3Args.builder()
.clusterId("string")
.nodepoolId("string")
.packages(CceNodePoolConfigV3PackageArgs.builder()
.configurations(CceNodePoolConfigV3PackageConfigurationArgs.builder()
.name("string")
.value("string")
.build())
.name("string")
.build())
.cceNodePoolConfigV3Id("string")
.labels(Map.of("string", "string"))
.name("string")
.timeouts(CceNodePoolConfigV3TimeoutsArgs.builder()
.create("string")
.default_("string")
.delete("string")
.update("string")
.build())
.build());
cce_node_pool_config_v3_resource = opentelekomcloud.CceNodePoolConfigV3("cceNodePoolConfigV3Resource",
cluster_id="string",
nodepool_id="string",
packages=[{
"configurations": [{
"name": "string",
"value": "string",
}],
"name": "string",
}],
cce_node_pool_config_v3_id="string",
labels={
"string": "string",
},
name="string",
timeouts={
"create": "string",
"default": "string",
"delete": "string",
"update": "string",
})
const cceNodePoolConfigV3Resource = new opentelekomcloud.CceNodePoolConfigV3("cceNodePoolConfigV3Resource", {
clusterId: "string",
nodepoolId: "string",
packages: [{
configurations: [{
name: "string",
value: "string",
}],
name: "string",
}],
cceNodePoolConfigV3Id: "string",
labels: {
string: "string",
},
name: "string",
timeouts: {
create: "string",
"default": "string",
"delete": "string",
update: "string",
},
});
type: opentelekomcloud:CceNodePoolConfigV3
properties:
cceNodePoolConfigV3Id: string
clusterId: string
labels:
string: string
name: string
nodepoolId: string
packages:
- configurations:
- name: string
value: string
name: string
timeouts:
create: string
default: string
delete: string
update: string
CceNodePoolConfigV3 Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CceNodePoolConfigV3 resource accepts the following input properties:
- Cluster
Id string - Specifies the ID of the CCE cluster.
- Nodepool
Id string - Specifies the node pool ID.
- Packages
List<Cce
Node Pool Config V3Package> - Specifies the vomponent configuration item details. The packages structure is documented below.
- Cce
Node stringPool Config V3Id - Specifies a resource ID in UUID format.
- Labels Dictionary<string, string>
- Specifies the configuration labels in a key-value pair.
- Name string
- Specifies the configuration name.
- Timeouts
Cce
Node Pool Config V3Timeouts
- Cluster
Id string - Specifies the ID of the CCE cluster.
- Nodepool
Id string - Specifies the node pool ID.
- Packages
[]Cce
Node Pool Config V3Package Args - Specifies the vomponent configuration item details. The packages structure is documented below.
- Cce
Node stringPool Config V3Id - Specifies a resource ID in UUID format.
- Labels map[string]string
- Specifies the configuration labels in a key-value pair.
- Name string
- Specifies the configuration name.
- Timeouts
Cce
Node Pool Config V3Timeouts Args
- cluster
Id String - Specifies the ID of the CCE cluster.
- nodepool
Id String - Specifies the node pool ID.
- packages
List<Cce
Node Pool Config V3Package> - Specifies the vomponent configuration item details. The packages structure is documented below.
- cce
Node StringPool Config V3Id - Specifies a resource ID in UUID format.
- labels Map<String,String>
- Specifies the configuration labels in a key-value pair.
- name String
- Specifies the configuration name.
- timeouts
Cce
Node Pool Config V3Timeouts
- cluster
Id string - Specifies the ID of the CCE cluster.
- nodepool
Id string - Specifies the node pool ID.
- packages
Cce
Node Pool Config V3Package[] - Specifies the vomponent configuration item details. The packages structure is documented below.
- cce
Node stringPool Config V3Id - Specifies a resource ID in UUID format.
- labels {[key: string]: string}
- Specifies the configuration labels in a key-value pair.
- name string
- Specifies the configuration name.
- timeouts
Cce
Node Pool Config V3Timeouts
- cluster_
id str - Specifies the ID of the CCE cluster.
- nodepool_
id str - Specifies the node pool ID.
- packages
Sequence[Cce
Node Pool Config V3Package Args] - Specifies the vomponent configuration item details. The packages structure is documented below.
- cce_
node_ strpool_ config_ v3_ id - Specifies a resource ID in UUID format.
- labels Mapping[str, str]
- Specifies the configuration labels in a key-value pair.
- name str
- Specifies the configuration name.
- timeouts
Cce
Node Pool Config V3Timeouts Args
- cluster
Id String - Specifies the ID of the CCE cluster.
- nodepool
Id String - Specifies the node pool ID.
- packages List<Property Map>
- Specifies the vomponent configuration item details. The packages structure is documented below.
- cce
Node StringPool Config V3Id - Specifies a resource ID in UUID format.
- labels Map<String>
- Specifies the configuration labels in a key-value pair.
- name String
- Specifies the configuration name.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the CceNodePoolConfigV3 resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing CceNodePoolConfigV3 Resource
Get an existing CceNodePoolConfigV3 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CceNodePoolConfigV3State, opts?: CustomResourceOptions): CceNodePoolConfigV3@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cce_node_pool_config_v3_id: Optional[str] = None,
cluster_id: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
nodepool_id: Optional[str] = None,
packages: Optional[Sequence[CceNodePoolConfigV3PackageArgs]] = None,
timeouts: Optional[CceNodePoolConfigV3TimeoutsArgs] = None) -> CceNodePoolConfigV3func GetCceNodePoolConfigV3(ctx *Context, name string, id IDInput, state *CceNodePoolConfigV3State, opts ...ResourceOption) (*CceNodePoolConfigV3, error)public static CceNodePoolConfigV3 Get(string name, Input<string> id, CceNodePoolConfigV3State? state, CustomResourceOptions? opts = null)public static CceNodePoolConfigV3 get(String name, Output<String> id, CceNodePoolConfigV3State state, CustomResourceOptions options)resources: _: type: opentelekomcloud:CceNodePoolConfigV3 get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Cce
Node stringPool Config V3Id - Specifies a resource ID in UUID format.
- Cluster
Id string - Specifies the ID of the CCE cluster.
- Labels Dictionary<string, string>
- Specifies the configuration labels in a key-value pair.
- Name string
- Specifies the configuration name.
- Nodepool
Id string - Specifies the node pool ID.
- Packages
List<Cce
Node Pool Config V3Package> - Specifies the vomponent configuration item details. The packages structure is documented below.
- Timeouts
Cce
Node Pool Config V3Timeouts
- Cce
Node stringPool Config V3Id - Specifies a resource ID in UUID format.
- Cluster
Id string - Specifies the ID of the CCE cluster.
- Labels map[string]string
- Specifies the configuration labels in a key-value pair.
- Name string
- Specifies the configuration name.
- Nodepool
Id string - Specifies the node pool ID.
- Packages
[]Cce
Node Pool Config V3Package Args - Specifies the vomponent configuration item details. The packages structure is documented below.
- Timeouts
Cce
Node Pool Config V3Timeouts Args
- cce
Node StringPool Config V3Id - Specifies a resource ID in UUID format.
- cluster
Id String - Specifies the ID of the CCE cluster.
- labels Map<String,String>
- Specifies the configuration labels in a key-value pair.
- name String
- Specifies the configuration name.
- nodepool
Id String - Specifies the node pool ID.
- packages
List<Cce
Node Pool Config V3Package> - Specifies the vomponent configuration item details. The packages structure is documented below.
- timeouts
Cce
Node Pool Config V3Timeouts
- cce
Node stringPool Config V3Id - Specifies a resource ID in UUID format.
- cluster
Id string - Specifies the ID of the CCE cluster.
- labels {[key: string]: string}
- Specifies the configuration labels in a key-value pair.
- name string
- Specifies the configuration name.
- nodepool
Id string - Specifies the node pool ID.
- packages
Cce
Node Pool Config V3Package[] - Specifies the vomponent configuration item details. The packages structure is documented below.
- timeouts
Cce
Node Pool Config V3Timeouts
- cce_
node_ strpool_ config_ v3_ id - Specifies a resource ID in UUID format.
- cluster_
id str - Specifies the ID of the CCE cluster.
- labels Mapping[str, str]
- Specifies the configuration labels in a key-value pair.
- name str
- Specifies the configuration name.
- nodepool_
id str - Specifies the node pool ID.
- packages
Sequence[Cce
Node Pool Config V3Package Args] - Specifies the vomponent configuration item details. The packages structure is documented below.
- timeouts
Cce
Node Pool Config V3Timeouts Args
- cce
Node StringPool Config V3Id - Specifies a resource ID in UUID format.
- cluster
Id String - Specifies the ID of the CCE cluster.
- labels Map<String>
- Specifies the configuration labels in a key-value pair.
- name String
- Specifies the configuration name.
- nodepool
Id String - Specifies the node pool ID.
- packages List<Property Map>
- Specifies the vomponent configuration item details. The packages structure is documented below.
- timeouts Property Map
Supporting Types
CceNodePoolConfigV3Package, CceNodePoolConfigV3PackageArgs
- Configurations
List<Cce
Node Pool Config V3Package Configuration> - Specifies configuration items. The structure is documented below:
- Name string
- Specifies the component/package name.
- Configurations
[]Cce
Node Pool Config V3Package Configuration - Specifies configuration items. The structure is documented below:
- Name string
- Specifies the component/package name.
- configurations
List<Cce
Node Pool Config V3Package Configuration> - Specifies configuration items. The structure is documented below:
- name String
- Specifies the component/package name.
- configurations
Cce
Node Pool Config V3Package Configuration[] - Specifies configuration items. The structure is documented below:
- name string
- Specifies the component/package name.
- configurations
Sequence[Cce
Node Pool Config V3Package Configuration] - Specifies configuration items. The structure is documented below:
- name str
- Specifies the component/package name.
- configurations List<Property Map>
- Specifies configuration items. The structure is documented below:
- name String
- Specifies the component/package name.
CceNodePoolConfigV3PackageConfiguration, CceNodePoolConfigV3PackageConfigurationArgs
- Name string
- Specifies the configuration item name one wishes to override. This configuration item will be ignored if unsupported component or parameter is specified.
- Value string
Specifies the configuration item value. This configuration item will be ignored if unsupported component or parameter is specified.
Note: Supported values for package names and their corresponding configurable items can be found at this page in CCE user guide
- Name string
- Specifies the configuration item name one wishes to override. This configuration item will be ignored if unsupported component or parameter is specified.
- Value string
Specifies the configuration item value. This configuration item will be ignored if unsupported component or parameter is specified.
Note: Supported values for package names and their corresponding configurable items can be found at this page in CCE user guide
- name String
- Specifies the configuration item name one wishes to override. This configuration item will be ignored if unsupported component or parameter is specified.
- value String
Specifies the configuration item value. This configuration item will be ignored if unsupported component or parameter is specified.
Note: Supported values for package names and their corresponding configurable items can be found at this page in CCE user guide
- name string
- Specifies the configuration item name one wishes to override. This configuration item will be ignored if unsupported component or parameter is specified.
- value string
Specifies the configuration item value. This configuration item will be ignored if unsupported component or parameter is specified.
Note: Supported values for package names and their corresponding configurable items can be found at this page in CCE user guide
- name str
- Specifies the configuration item name one wishes to override. This configuration item will be ignored if unsupported component or parameter is specified.
- value str
Specifies the configuration item value. This configuration item will be ignored if unsupported component or parameter is specified.
Note: Supported values for package names and their corresponding configurable items can be found at this page in CCE user guide
- name String
- Specifies the configuration item name one wishes to override. This configuration item will be ignored if unsupported component or parameter is specified.
- value String
Specifies the configuration item value. This configuration item will be ignored if unsupported component or parameter is specified.
Note: Supported values for package names and their corresponding configurable items can be found at this page in CCE user guide
CceNodePoolConfigV3Timeouts, CceNodePoolConfigV3TimeoutsArgs
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloudTerraform Provider.
