flexibleengine.CceNodePoolV3
Explore with Pulumi AI
Add a node pool to a container cluster.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const config = new pulumi.Config();
const clusterId = config.requireObject("clusterId");
const keyPair = config.requireObject("keyPair");
const availabilityZone = config.requireObject("availabilityZone");
const nodePool = new flexibleengine.CceNodePoolV3("nodePool", {
clusterId: clusterId,
os: "EulerOS 2.5",
initialNodeCount: 2,
flavorId: "s3.large.4",
availabilityZone: availabilityZone,
keyPair: _var.keypair,
scaleEnable: true,
minNodeCount: 1,
maxNodeCount: 10,
scaleDownCooldownTime: 100,
priority: 1,
type: "vm",
rootVolume: {
size: 40,
volumetype: "SAS",
},
dataVolumes: [{
size: 100,
volumetype: "SAS",
}],
});
import pulumi
import pulumi_flexibleengine as flexibleengine
config = pulumi.Config()
cluster_id = config.require_object("clusterId")
key_pair = config.require_object("keyPair")
availability_zone = config.require_object("availabilityZone")
node_pool = flexibleengine.CceNodePoolV3("nodePool",
cluster_id=cluster_id,
os="EulerOS 2.5",
initial_node_count=2,
flavor_id="s3.large.4",
availability_zone=availability_zone,
key_pair=var["keypair"],
scale_enable=True,
min_node_count=1,
max_node_count=10,
scale_down_cooldown_time=100,
priority=1,
type="vm",
root_volume={
"size": 40,
"volumetype": "SAS",
},
data_volumes=[{
"size": 100,
"volumetype": "SAS",
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"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")
keyPair := cfg.RequireObject("keyPair")
availabilityZone := cfg.RequireObject("availabilityZone")
_, err := flexibleengine.NewCceNodePoolV3(ctx, "nodePool", &flexibleengine.CceNodePoolV3Args{
ClusterId: pulumi.Any(clusterId),
Os: pulumi.String("EulerOS 2.5"),
InitialNodeCount: pulumi.Float64(2),
FlavorId: pulumi.String("s3.large.4"),
AvailabilityZone: pulumi.Any(availabilityZone),
KeyPair: pulumi.Any(_var.Keypair),
ScaleEnable: pulumi.Bool(true),
MinNodeCount: pulumi.Float64(1),
MaxNodeCount: pulumi.Float64(10),
ScaleDownCooldownTime: pulumi.Float64(100),
Priority: pulumi.Float64(1),
Type: pulumi.String("vm"),
RootVolume: &flexibleengine.CceNodePoolV3RootVolumeArgs{
Size: pulumi.Float64(40),
Volumetype: pulumi.String("SAS"),
},
DataVolumes: flexibleengine.CceNodePoolV3DataVolumeArray{
&flexibleengine.CceNodePoolV3DataVolumeArgs{
Size: pulumi.Float64(100),
Volumetype: pulumi.String("SAS"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var clusterId = config.RequireObject<dynamic>("clusterId");
var keyPair = config.RequireObject<dynamic>("keyPair");
var availabilityZone = config.RequireObject<dynamic>("availabilityZone");
var nodePool = new Flexibleengine.CceNodePoolV3("nodePool", new()
{
ClusterId = clusterId,
Os = "EulerOS 2.5",
InitialNodeCount = 2,
FlavorId = "s3.large.4",
AvailabilityZone = availabilityZone,
KeyPair = @var.Keypair,
ScaleEnable = true,
MinNodeCount = 1,
MaxNodeCount = 10,
ScaleDownCooldownTime = 100,
Priority = 1,
Type = "vm",
RootVolume = new Flexibleengine.Inputs.CceNodePoolV3RootVolumeArgs
{
Size = 40,
Volumetype = "SAS",
},
DataVolumes = new[]
{
new Flexibleengine.Inputs.CceNodePoolV3DataVolumeArgs
{
Size = 100,
Volumetype = "SAS",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.CceNodePoolV3;
import com.pulumi.flexibleengine.CceNodePoolV3Args;
import com.pulumi.flexibleengine.inputs.CceNodePoolV3RootVolumeArgs;
import com.pulumi.flexibleengine.inputs.CceNodePoolV3DataVolumeArgs;
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 keyPair = config.get("keyPair");
final var availabilityZone = config.get("availabilityZone");
var nodePool = new CceNodePoolV3("nodePool", CceNodePoolV3Args.builder()
.clusterId(clusterId)
.os("EulerOS 2.5")
.initialNodeCount(2)
.flavorId("s3.large.4")
.availabilityZone(availabilityZone)
.keyPair(var_.keypair())
.scaleEnable(true)
.minNodeCount(1)
.maxNodeCount(10)
.scaleDownCooldownTime(100)
.priority(1)
.type("vm")
.rootVolume(CceNodePoolV3RootVolumeArgs.builder()
.size(40)
.volumetype("SAS")
.build())
.dataVolumes(CceNodePoolV3DataVolumeArgs.builder()
.size(100)
.volumetype("SAS")
.build())
.build());
}
}
configuration:
clusterId:
type: dynamic
keyPair:
type: dynamic
availabilityZone:
type: dynamic
resources:
nodePool:
type: flexibleengine:CceNodePoolV3
properties:
clusterId: ${clusterId}
os: EulerOS 2.5
initialNodeCount: 2
flavorId: s3.large.4
availabilityZone: ${availabilityZone}
keyPair: ${var.keypair}
scaleEnable: true
minNodeCount: 1
maxNodeCount: 10
scaleDownCooldownTime: 100
priority: 1
type: vm
rootVolume:
size: 40
volumetype: SAS
dataVolumes:
- size: 100
volumetype: SAS
Create CceNodePoolV3 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CceNodePoolV3(name: string, args: CceNodePoolV3Args, opts?: CustomResourceOptions);
@overload
def CceNodePoolV3(resource_name: str,
args: CceNodePoolV3Args,
opts: Optional[ResourceOptions] = None)
@overload
def CceNodePoolV3(resource_name: str,
opts: Optional[ResourceOptions] = None,
flavor_id: Optional[str] = None,
root_volume: Optional[CceNodePoolV3RootVolumeArgs] = None,
cluster_id: Optional[str] = None,
data_volumes: Optional[Sequence[CceNodePoolV3DataVolumeArgs]] = None,
initial_node_count: Optional[float] = None,
os: Optional[str] = None,
priority: Optional[float] = None,
ecs_group_id: Optional[str] = None,
key_pair: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
max_node_count: Optional[float] = None,
max_pods: Optional[float] = None,
min_node_count: Optional[float] = None,
name: Optional[str] = None,
availability_zone: Optional[str] = None,
password: Optional[str] = None,
postinstall: Optional[str] = None,
preinstall: Optional[str] = None,
extend_param: Optional[Mapping[str, str]] = None,
region: Optional[str] = None,
cce_node_pool_v3_id: Optional[str] = None,
runtime: Optional[str] = None,
scale_down_cooldown_time: Optional[float] = None,
scale_enable: Optional[bool] = None,
scall_enable: Optional[bool] = None,
security_groups: Optional[Sequence[str]] = None,
subnet_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
taints: Optional[Sequence[CceNodePoolV3TaintArgs]] = None,
timeouts: Optional[CceNodePoolV3TimeoutsArgs] = None,
type: Optional[str] = None)
func NewCceNodePoolV3(ctx *Context, name string, args CceNodePoolV3Args, opts ...ResourceOption) (*CceNodePoolV3, error)
public CceNodePoolV3(string name, CceNodePoolV3Args args, CustomResourceOptions? opts = null)
public CceNodePoolV3(String name, CceNodePoolV3Args args)
public CceNodePoolV3(String name, CceNodePoolV3Args args, CustomResourceOptions options)
type: flexibleengine:CceNodePoolV3
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 CceNodePoolV3Args
- 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 CceNodePoolV3Args
- 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 CceNodePoolV3Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CceNodePoolV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CceNodePoolV3Args
- 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 cceNodePoolV3Resource = new Flexibleengine.CceNodePoolV3("cceNodePoolV3Resource", new()
{
FlavorId = "string",
RootVolume = new Flexibleengine.Inputs.CceNodePoolV3RootVolumeArgs
{
Size = 0,
Volumetype = "string",
ExtendParams =
{
{ "string", "string" },
},
KmsKeyId = "string",
},
ClusterId = "string",
DataVolumes = new[]
{
new Flexibleengine.Inputs.CceNodePoolV3DataVolumeArgs
{
Size = 0,
Volumetype = "string",
ExtendParams =
{
{ "string", "string" },
},
KmsKeyId = "string",
},
},
InitialNodeCount = 0,
Os = "string",
Priority = 0,
EcsGroupId = "string",
KeyPair = "string",
Labels =
{
{ "string", "string" },
},
MaxNodeCount = 0,
MaxPods = 0,
MinNodeCount = 0,
Name = "string",
AvailabilityZone = "string",
Password = "string",
Postinstall = "string",
Preinstall = "string",
ExtendParam =
{
{ "string", "string" },
},
Region = "string",
CceNodePoolV3Id = "string",
Runtime = "string",
ScaleDownCooldownTime = 0,
ScaleEnable = false,
SecurityGroups = new[]
{
"string",
},
SubnetId = "string",
Tags =
{
{ "string", "string" },
},
Taints = new[]
{
new Flexibleengine.Inputs.CceNodePoolV3TaintArgs
{
Effect = "string",
Key = "string",
Value = "string",
},
},
Timeouts = new Flexibleengine.Inputs.CceNodePoolV3TimeoutsArgs
{
Create = "string",
Delete = "string",
},
Type = "string",
});
example, err := flexibleengine.NewCceNodePoolV3(ctx, "cceNodePoolV3Resource", &flexibleengine.CceNodePoolV3Args{
FlavorId: pulumi.String("string"),
RootVolume: &flexibleengine.CceNodePoolV3RootVolumeArgs{
Size: pulumi.Float64(0),
Volumetype: pulumi.String("string"),
ExtendParams: pulumi.StringMap{
"string": pulumi.String("string"),
},
KmsKeyId: pulumi.String("string"),
},
ClusterId: pulumi.String("string"),
DataVolumes: flexibleengine.CceNodePoolV3DataVolumeArray{
&flexibleengine.CceNodePoolV3DataVolumeArgs{
Size: pulumi.Float64(0),
Volumetype: pulumi.String("string"),
ExtendParams: pulumi.StringMap{
"string": pulumi.String("string"),
},
KmsKeyId: pulumi.String("string"),
},
},
InitialNodeCount: pulumi.Float64(0),
Os: pulumi.String("string"),
Priority: pulumi.Float64(0),
EcsGroupId: pulumi.String("string"),
KeyPair: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
MaxNodeCount: pulumi.Float64(0),
MaxPods: pulumi.Float64(0),
MinNodeCount: pulumi.Float64(0),
Name: pulumi.String("string"),
AvailabilityZone: pulumi.String("string"),
Password: pulumi.String("string"),
Postinstall: pulumi.String("string"),
Preinstall: pulumi.String("string"),
ExtendParam: pulumi.StringMap{
"string": pulumi.String("string"),
},
Region: pulumi.String("string"),
CceNodePoolV3Id: pulumi.String("string"),
Runtime: pulumi.String("string"),
ScaleDownCooldownTime: pulumi.Float64(0),
ScaleEnable: pulumi.Bool(false),
SecurityGroups: pulumi.StringArray{
pulumi.String("string"),
},
SubnetId: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Taints: flexibleengine.CceNodePoolV3TaintArray{
&flexibleengine.CceNodePoolV3TaintArgs{
Effect: pulumi.String("string"),
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Timeouts: &flexibleengine.CceNodePoolV3TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
Type: pulumi.String("string"),
})
var cceNodePoolV3Resource = new CceNodePoolV3("cceNodePoolV3Resource", CceNodePoolV3Args.builder()
.flavorId("string")
.rootVolume(CceNodePoolV3RootVolumeArgs.builder()
.size(0)
.volumetype("string")
.extendParams(Map.of("string", "string"))
.kmsKeyId("string")
.build())
.clusterId("string")
.dataVolumes(CceNodePoolV3DataVolumeArgs.builder()
.size(0)
.volumetype("string")
.extendParams(Map.of("string", "string"))
.kmsKeyId("string")
.build())
.initialNodeCount(0)
.os("string")
.priority(0)
.ecsGroupId("string")
.keyPair("string")
.labels(Map.of("string", "string"))
.maxNodeCount(0)
.maxPods(0)
.minNodeCount(0)
.name("string")
.availabilityZone("string")
.password("string")
.postinstall("string")
.preinstall("string")
.extendParam(Map.of("string", "string"))
.region("string")
.cceNodePoolV3Id("string")
.runtime("string")
.scaleDownCooldownTime(0)
.scaleEnable(false)
.securityGroups("string")
.subnetId("string")
.tags(Map.of("string", "string"))
.taints(CceNodePoolV3TaintArgs.builder()
.effect("string")
.key("string")
.value("string")
.build())
.timeouts(CceNodePoolV3TimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.type("string")
.build());
cce_node_pool_v3_resource = flexibleengine.CceNodePoolV3("cceNodePoolV3Resource",
flavor_id="string",
root_volume={
"size": 0,
"volumetype": "string",
"extend_params": {
"string": "string",
},
"kms_key_id": "string",
},
cluster_id="string",
data_volumes=[{
"size": 0,
"volumetype": "string",
"extend_params": {
"string": "string",
},
"kms_key_id": "string",
}],
initial_node_count=0,
os="string",
priority=0,
ecs_group_id="string",
key_pair="string",
labels={
"string": "string",
},
max_node_count=0,
max_pods=0,
min_node_count=0,
name="string",
availability_zone="string",
password="string",
postinstall="string",
preinstall="string",
extend_param={
"string": "string",
},
region="string",
cce_node_pool_v3_id="string",
runtime="string",
scale_down_cooldown_time=0,
scale_enable=False,
security_groups=["string"],
subnet_id="string",
tags={
"string": "string",
},
taints=[{
"effect": "string",
"key": "string",
"value": "string",
}],
timeouts={
"create": "string",
"delete": "string",
},
type="string")
const cceNodePoolV3Resource = new flexibleengine.CceNodePoolV3("cceNodePoolV3Resource", {
flavorId: "string",
rootVolume: {
size: 0,
volumetype: "string",
extendParams: {
string: "string",
},
kmsKeyId: "string",
},
clusterId: "string",
dataVolumes: [{
size: 0,
volumetype: "string",
extendParams: {
string: "string",
},
kmsKeyId: "string",
}],
initialNodeCount: 0,
os: "string",
priority: 0,
ecsGroupId: "string",
keyPair: "string",
labels: {
string: "string",
},
maxNodeCount: 0,
maxPods: 0,
minNodeCount: 0,
name: "string",
availabilityZone: "string",
password: "string",
postinstall: "string",
preinstall: "string",
extendParam: {
string: "string",
},
region: "string",
cceNodePoolV3Id: "string",
runtime: "string",
scaleDownCooldownTime: 0,
scaleEnable: false,
securityGroups: ["string"],
subnetId: "string",
tags: {
string: "string",
},
taints: [{
effect: "string",
key: "string",
value: "string",
}],
timeouts: {
create: "string",
"delete": "string",
},
type: "string",
});
type: flexibleengine:CceNodePoolV3
properties:
availabilityZone: string
cceNodePoolV3Id: string
clusterId: string
dataVolumes:
- extendParams:
string: string
kmsKeyId: string
size: 0
volumetype: string
ecsGroupId: string
extendParam:
string: string
flavorId: string
initialNodeCount: 0
keyPair: string
labels:
string: string
maxNodeCount: 0
maxPods: 0
minNodeCount: 0
name: string
os: string
password: string
postinstall: string
preinstall: string
priority: 0
region: string
rootVolume:
extendParams:
string: string
kmsKeyId: string
size: 0
volumetype: string
runtime: string
scaleDownCooldownTime: 0
scaleEnable: false
securityGroups:
- string
subnetId: string
tags:
string: string
taints:
- effect: string
key: string
value: string
timeouts:
create: string
delete: string
type: string
CceNodePoolV3 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 CceNodePoolV3 resource accepts the following input properties:
- Cluster
Id string - ID of the cluster. Changing this parameter will create a new resource.
- Data
Volumes List<CceNode Pool V3Data Volume> - Represents the data disk to be created. The object structure is documented below. Changing this parameter will create a new resource.
- Flavor
Id string - Specifies the flavor id. Changing this parameter will create a new resource.
- Initial
Node doubleCount - Specifies the initial number of expected nodes in the node pool. This parameter can be also used to manually scale the node count afterwards.
- Root
Volume CceNode Pool V3Root Volume - It corresponds to the system disk related configuration. The object structure is documented below. Changing this parameter will create a new resource.
- Availability
Zone string - specify the name of the available partition (AZ). Default value is random to create nodes in a random AZ in the node pool. Changing this parameter will create a new resource.
- Cce
Node stringPool V3Id - Specifies a resource ID in UUID format.
- Ecs
Group stringId - Specifies the ECS group ID. If specified, the node will be created under the cloud server group. Changing this parameter will create a new resource.
- Extend
Param Dictionary<string, string> - Key
Pair string - Key pair name when logging in to select the key pair mode.
This parameter and
password
are alternative. Changing this parameter will create a new resource. - Labels Dictionary<string, string>
- Tags of a Kubernetes node, key/value pair format.
- Max
Node doubleCount - Maximum number of nodes allowed if auto scaling is enabled.
- Max
Pods double - The maximum number of instances a node is allowed to create. Changing this parameter will create a new resource.
- Min
Node doubleCount - Minimum number of nodes allowed if auto scaling is enabled.
- Name string
- Node Pool Name.
- Os string
- Operating System of the node. The value can be EulerOS 2.5 and CentOS 7.6. Changing this parameter will create a new resource.
- Password string
- root password when logging in to select the password mode.
This parameter must be salted and alternative to
key_pair
. Changing this parameter will create a new resource. - Postinstall string
- Script required after the installation. The input value can be a Base64 encoded string or not. Changing this parameter will create a new resource.
- Preinstall string
- Script required before installation. The input value can be a Base64 encoded string or not. Changing this parameter will create a new resource.
- Priority double
- Weight of a node pool. A node pool with a higher weight has a higher priority during scaling.
- Region string
- Specifies the region in which to create the CCE node pool resource. If omitted, the provider-level region will be used. Changing this will create a new CCE node pool resource.
- Runtime string
- Specifies the runtime of the CCE node pool. Valid values are docker and containerd. Changing this creates a new resource.
- Scale
Down doubleCooldown Time - Interval between two scaling operations, in minutes.
- Scale
Enable bool - Whether to enable auto scaling. If Autoscaler is enabled, install the autoscaler add-on to use the auto scaling feature.
- Scall
Enable bool - Security
Groups List<string> - Specifies the list of custom security group IDs for the node pool. If specified, the nodes will be put in these security groups. When specifying a security group, do not modify the rules of the port on which CCE running depends. Changing this parameter will create a new resource.
- Subnet
Id string - The ID of the VPC Subnet to which the NIC belongs. Changing this parameter will create a new resource.
- Dictionary<string, string>
- Tags of a VM node, key/value pair format.
- Taints
List<Cce
Node Pool V3Taint> - You can add taints to created nodes to configure anti-affinity. The object structure is documented below.
- Timeouts
Cce
Node Pool V3Timeouts - Type string
- Node Pool type. Possible values are: "vm" and "ElasticBMS".
- Cluster
Id string - ID of the cluster. Changing this parameter will create a new resource.
- Data
Volumes []CceNode Pool V3Data Volume Args - Represents the data disk to be created. The object structure is documented below. Changing this parameter will create a new resource.
- Flavor
Id string - Specifies the flavor id. Changing this parameter will create a new resource.
- Initial
Node float64Count - Specifies the initial number of expected nodes in the node pool. This parameter can be also used to manually scale the node count afterwards.
- Root
Volume CceNode Pool V3Root Volume Args - It corresponds to the system disk related configuration. The object structure is documented below. Changing this parameter will create a new resource.
- Availability
Zone string - specify the name of the available partition (AZ). Default value is random to create nodes in a random AZ in the node pool. Changing this parameter will create a new resource.
- Cce
Node stringPool V3Id - Specifies a resource ID in UUID format.
- Ecs
Group stringId - Specifies the ECS group ID. If specified, the node will be created under the cloud server group. Changing this parameter will create a new resource.
- Extend
Param map[string]string - Key
Pair string - Key pair name when logging in to select the key pair mode.
This parameter and
password
are alternative. Changing this parameter will create a new resource. - Labels map[string]string
- Tags of a Kubernetes node, key/value pair format.
- Max
Node float64Count - Maximum number of nodes allowed if auto scaling is enabled.
- Max
Pods float64 - The maximum number of instances a node is allowed to create. Changing this parameter will create a new resource.
- Min
Node float64Count - Minimum number of nodes allowed if auto scaling is enabled.
- Name string
- Node Pool Name.
- Os string
- Operating System of the node. The value can be EulerOS 2.5 and CentOS 7.6. Changing this parameter will create a new resource.
- Password string
- root password when logging in to select the password mode.
This parameter must be salted and alternative to
key_pair
. Changing this parameter will create a new resource. - Postinstall string
- Script required after the installation. The input value can be a Base64 encoded string or not. Changing this parameter will create a new resource.
- Preinstall string
- Script required before installation. The input value can be a Base64 encoded string or not. Changing this parameter will create a new resource.
- Priority float64
- Weight of a node pool. A node pool with a higher weight has a higher priority during scaling.
- Region string
- Specifies the region in which to create the CCE node pool resource. If omitted, the provider-level region will be used. Changing this will create a new CCE node pool resource.
- Runtime string
- Specifies the runtime of the CCE node pool. Valid values are docker and containerd. Changing this creates a new resource.
- Scale
Down float64Cooldown Time - Interval between two scaling operations, in minutes.
- Scale
Enable bool - Whether to enable auto scaling. If Autoscaler is enabled, install the autoscaler add-on to use the auto scaling feature.
- Scall
Enable bool - Security
Groups []string - Specifies the list of custom security group IDs for the node pool. If specified, the nodes will be put in these security groups. When specifying a security group, do not modify the rules of the port on which CCE running depends. Changing this parameter will create a new resource.
- Subnet
Id string - The ID of the VPC Subnet to which the NIC belongs. Changing this parameter will create a new resource.
- map[string]string
- Tags of a VM node, key/value pair format.
- Taints
[]Cce
Node Pool V3Taint Args - You can add taints to created nodes to configure anti-affinity. The object structure is documented below.
- Timeouts
Cce
Node Pool V3Timeouts Args - Type string
- Node Pool type. Possible values are: "vm" and "ElasticBMS".
- cluster
Id String - ID of the cluster. Changing this parameter will create a new resource.
- data
Volumes List<CceNode Pool V3Data Volume> - Represents the data disk to be created. The object structure is documented below. Changing this parameter will create a new resource.
- flavor
Id String - Specifies the flavor id. Changing this parameter will create a new resource.
- initial
Node DoubleCount - Specifies the initial number of expected nodes in the node pool. This parameter can be also used to manually scale the node count afterwards.
- root
Volume CceNode Pool V3Root Volume - It corresponds to the system disk related configuration. The object structure is documented below. Changing this parameter will create a new resource.
- availability
Zone String - specify the name of the available partition (AZ). Default value is random to create nodes in a random AZ in the node pool. Changing this parameter will create a new resource.
- cce
Node StringPool V3Id - Specifies a resource ID in UUID format.
- ecs
Group StringId - Specifies the ECS group ID. If specified, the node will be created under the cloud server group. Changing this parameter will create a new resource.
- extend
Param Map<String,String> - key
Pair String - Key pair name when logging in to select the key pair mode.
This parameter and
password
are alternative. Changing this parameter will create a new resource. - labels Map<String,String>
- Tags of a Kubernetes node, key/value pair format.
- max
Node DoubleCount - Maximum number of nodes allowed if auto scaling is enabled.
- max
Pods Double - The maximum number of instances a node is allowed to create. Changing this parameter will create a new resource.
- min
Node DoubleCount - Minimum number of nodes allowed if auto scaling is enabled.
- name String
- Node Pool Name.
- os String
- Operating System of the node. The value can be EulerOS 2.5 and CentOS 7.6. Changing this parameter will create a new resource.
- password String
- root password when logging in to select the password mode.
This parameter must be salted and alternative to
key_pair
. Changing this parameter will create a new resource. - postinstall String
- Script required after the installation. The input value can be a Base64 encoded string or not. Changing this parameter will create a new resource.
- preinstall String
- Script required before installation. The input value can be a Base64 encoded string or not. Changing this parameter will create a new resource.
- priority Double
- Weight of a node pool. A node pool with a higher weight has a higher priority during scaling.
- region String
- Specifies the region in which to create the CCE node pool resource. If omitted, the provider-level region will be used. Changing this will create a new CCE node pool resource.
- runtime String
- Specifies the runtime of the CCE node pool. Valid values are docker and containerd. Changing this creates a new resource.
- scale
Down DoubleCooldown Time - Interval between two scaling operations, in minutes.
- scale
Enable Boolean - Whether to enable auto scaling. If Autoscaler is enabled, install the autoscaler add-on to use the auto scaling feature.
- scall
Enable Boolean - security
Groups List<String> - Specifies the list of custom security group IDs for the node pool. If specified, the nodes will be put in these security groups. When specifying a security group, do not modify the rules of the port on which CCE running depends. Changing this parameter will create a new resource.
- subnet
Id String - The ID of the VPC Subnet to which the NIC belongs. Changing this parameter will create a new resource.
- Map<String,String>
- Tags of a VM node, key/value pair format.
- taints
List<Cce
Node Pool V3Taint> - You can add taints to created nodes to configure anti-affinity. The object structure is documented below.
- timeouts
Cce
Node Pool V3Timeouts - type String
- Node Pool type. Possible values are: "vm" and "ElasticBMS".
- cluster
Id string - ID of the cluster. Changing this parameter will create a new resource.
- data
Volumes CceNode Pool V3Data Volume[] - Represents the data disk to be created. The object structure is documented below. Changing this parameter will create a new resource.
- flavor
Id string - Specifies the flavor id. Changing this parameter will create a new resource.
- initial
Node numberCount - Specifies the initial number of expected nodes in the node pool. This parameter can be also used to manually scale the node count afterwards.
- root
Volume CceNode Pool V3Root Volume - It corresponds to the system disk related configuration. The object structure is documented below. Changing this parameter will create a new resource.
- availability
Zone string - specify the name of the available partition (AZ). Default value is random to create nodes in a random AZ in the node pool. Changing this parameter will create a new resource.
- cce
Node stringPool V3Id - Specifies a resource ID in UUID format.
- ecs
Group stringId - Specifies the ECS group ID. If specified, the node will be created under the cloud server group. Changing this parameter will create a new resource.
- extend
Param {[key: string]: string} - key
Pair string - Key pair name when logging in to select the key pair mode.
This parameter and
password
are alternative. Changing this parameter will create a new resource. - labels {[key: string]: string}
- Tags of a Kubernetes node, key/value pair format.
- max
Node numberCount - Maximum number of nodes allowed if auto scaling is enabled.
- max
Pods number - The maximum number of instances a node is allowed to create. Changing this parameter will create a new resource.
- min
Node numberCount - Minimum number of nodes allowed if auto scaling is enabled.
- name string
- Node Pool Name.
- os string
- Operating System of the node. The value can be EulerOS 2.5 and CentOS 7.6. Changing this parameter will create a new resource.
- password string
- root password when logging in to select the password mode.
This parameter must be salted and alternative to
key_pair
. Changing this parameter will create a new resource. - postinstall string
- Script required after the installation. The input value can be a Base64 encoded string or not. Changing this parameter will create a new resource.
- preinstall string
- Script required before installation. The input value can be a Base64 encoded string or not. Changing this parameter will create a new resource.
- priority number
- Weight of a node pool. A node pool with a higher weight has a higher priority during scaling.
- region string
- Specifies the region in which to create the CCE node pool resource. If omitted, the provider-level region will be used. Changing this will create a new CCE node pool resource.
- runtime string
- Specifies the runtime of the CCE node pool. Valid values are docker and containerd. Changing this creates a new resource.
- scale
Down numberCooldown Time - Interval between two scaling operations, in minutes.
- scale
Enable boolean - Whether to enable auto scaling. If Autoscaler is enabled, install the autoscaler add-on to use the auto scaling feature.
- scall
Enable boolean - security
Groups string[] - Specifies the list of custom security group IDs for the node pool. If specified, the nodes will be put in these security groups. When specifying a security group, do not modify the rules of the port on which CCE running depends. Changing this parameter will create a new resource.
- subnet
Id string - The ID of the VPC Subnet to which the NIC belongs. Changing this parameter will create a new resource.
- {[key: string]: string}
- Tags of a VM node, key/value pair format.
- taints
Cce
Node Pool V3Taint[] - You can add taints to created nodes to configure anti-affinity. The object structure is documented below.
- timeouts
Cce
Node Pool V3Timeouts - type string
- Node Pool type. Possible values are: "vm" and "ElasticBMS".
- cluster_
id str - ID of the cluster. Changing this parameter will create a new resource.
- data_
volumes Sequence[CceNode Pool V3Data Volume Args] - Represents the data disk to be created. The object structure is documented below. Changing this parameter will create a new resource.
- flavor_
id str - Specifies the flavor id. Changing this parameter will create a new resource.
- initial_
node_ floatcount - Specifies the initial number of expected nodes in the node pool. This parameter can be also used to manually scale the node count afterwards.
- root_
volume CceNode Pool V3Root Volume Args - It corresponds to the system disk related configuration. The object structure is documented below. Changing this parameter will create a new resource.
- availability_
zone str - specify the name of the available partition (AZ). Default value is random to create nodes in a random AZ in the node pool. Changing this parameter will create a new resource.
- cce_
node_ strpool_ v3_ id - Specifies a resource ID in UUID format.
- ecs_
group_ strid - Specifies the ECS group ID. If specified, the node will be created under the cloud server group. Changing this parameter will create a new resource.
- extend_
param Mapping[str, str] - key_
pair str - Key pair name when logging in to select the key pair mode.
This parameter and
password
are alternative. Changing this parameter will create a new resource. - labels Mapping[str, str]
- Tags of a Kubernetes node, key/value pair format.
- max_
node_ floatcount - Maximum number of nodes allowed if auto scaling is enabled.
- max_
pods float - The maximum number of instances a node is allowed to create. Changing this parameter will create a new resource.
- min_
node_ floatcount - Minimum number of nodes allowed if auto scaling is enabled.
- name str
- Node Pool Name.
- os str
- Operating System of the node. The value can be EulerOS 2.5 and CentOS 7.6. Changing this parameter will create a new resource.
- password str
- root password when logging in to select the password mode.
This parameter must be salted and alternative to
key_pair
. Changing this parameter will create a new resource. - postinstall str
- Script required after the installation. The input value can be a Base64 encoded string or not. Changing this parameter will create a new resource.
- preinstall str
- Script required before installation. The input value can be a Base64 encoded string or not. Changing this parameter will create a new resource.
- priority float
- Weight of a node pool. A node pool with a higher weight has a higher priority during scaling.
- region str
- Specifies the region in which to create the CCE node pool resource. If omitted, the provider-level region will be used. Changing this will create a new CCE node pool resource.
- runtime str
- Specifies the runtime of the CCE node pool. Valid values are docker and containerd. Changing this creates a new resource.
- scale_
down_ floatcooldown_ time - Interval between two scaling operations, in minutes.
- scale_
enable bool - Whether to enable auto scaling. If Autoscaler is enabled, install the autoscaler add-on to use the auto scaling feature.
- scall_
enable bool - security_
groups Sequence[str] - Specifies the list of custom security group IDs for the node pool. If specified, the nodes will be put in these security groups. When specifying a security group, do not modify the rules of the port on which CCE running depends. Changing this parameter will create a new resource.
- subnet_
id str - The ID of the VPC Subnet to which the NIC belongs. Changing this parameter will create a new resource.
- Mapping[str, str]
- Tags of a VM node, key/value pair format.
- taints
Sequence[Cce
Node Pool V3Taint Args] - You can add taints to created nodes to configure anti-affinity. The object structure is documented below.
- timeouts
Cce
Node Pool V3Timeouts Args - type str
- Node Pool type. Possible values are: "vm" and "ElasticBMS".
- cluster
Id String - ID of the cluster. Changing this parameter will create a new resource.
- data
Volumes List<Property Map> - Represents the data disk to be created. The object structure is documented below. Changing this parameter will create a new resource.
- flavor
Id String - Specifies the flavor id. Changing this parameter will create a new resource.
- initial
Node NumberCount - Specifies the initial number of expected nodes in the node pool. This parameter can be also used to manually scale the node count afterwards.
- root
Volume Property Map - It corresponds to the system disk related configuration. The object structure is documented below. Changing this parameter will create a new resource.
- availability
Zone String - specify the name of the available partition (AZ). Default value is random to create nodes in a random AZ in the node pool. Changing this parameter will create a new resource.
- cce
Node StringPool V3Id - Specifies a resource ID in UUID format.
- ecs
Group StringId - Specifies the ECS group ID. If specified, the node will be created under the cloud server group. Changing this parameter will create a new resource.
- extend
Param Map<String> - key
Pair String - Key pair name when logging in to select the key pair mode.
This parameter and
password
are alternative. Changing this parameter will create a new resource. - labels Map<String>
- Tags of a Kubernetes node, key/value pair format.
- max
Node NumberCount - Maximum number of nodes allowed if auto scaling is enabled.
- max
Pods Number - The maximum number of instances a node is allowed to create. Changing this parameter will create a new resource.
- min
Node NumberCount - Minimum number of nodes allowed if auto scaling is enabled.
- name String
- Node Pool Name.
- os String
- Operating System of the node. The value can be EulerOS 2.5 and CentOS 7.6. Changing this parameter will create a new resource.
- password String
- root password when logging in to select the password mode.
This parameter must be salted and alternative to
key_pair
. Changing this parameter will create a new resource. - postinstall String
- Script required after the installation. The input value can be a Base64 encoded string or not. Changing this parameter will create a new resource.
- preinstall String
- Script required before installation. The input value can be a Base64 encoded string or not. Changing this parameter will create a new resource.
- priority Number
- Weight of a node pool. A node pool with a higher weight has a higher priority during scaling.
- region String
- Specifies the region in which to create the CCE node pool resource. If omitted, the provider-level region will be used. Changing this will create a new CCE node pool resource.
- runtime String
- Specifies the runtime of the CCE node pool. Valid values are docker and containerd. Changing this creates a new resource.
- scale
Down NumberCooldown Time - Interval between two scaling operations, in minutes.
- scale
Enable Boolean - Whether to enable auto scaling. If Autoscaler is enabled, install the autoscaler add-on to use the auto scaling feature.
- scall
Enable Boolean - security
Groups List<String> - Specifies the list of custom security group IDs for the node pool. If specified, the nodes will be put in these security groups. When specifying a security group, do not modify the rules of the port on which CCE running depends. Changing this parameter will create a new resource.
- subnet
Id String - The ID of the VPC Subnet to which the NIC belongs. Changing this parameter will create a new resource.
- Map<String>
- Tags of a VM node, key/value pair format.
- taints List<Property Map>
- You can add taints to created nodes to configure anti-affinity. The object structure is documented below.
- timeouts Property Map
- type String
- Node Pool type. Possible values are: "vm" and "ElasticBMS".
Outputs
All input properties are implicitly available as output properties. Additionally, the CceNodePoolV3 resource produces the following output properties:
- Billing
Mode double - Billing mode of a node.
- Current
Node doubleCount - The current number of the nodes.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Node status information.
- Billing
Mode float64 - Billing mode of a node.
- Current
Node float64Count - The current number of the nodes.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Node status information.
- billing
Mode Double - Billing mode of a node.
- current
Node DoubleCount - The current number of the nodes.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- Node status information.
- billing
Mode number - Billing mode of a node.
- current
Node numberCount - The current number of the nodes.
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- Node status information.
- billing_
mode float - Billing mode of a node.
- current_
node_ floatcount - The current number of the nodes.
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- Node status information.
- billing
Mode Number - Billing mode of a node.
- current
Node NumberCount - The current number of the nodes.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- Node status information.
Look up Existing CceNodePoolV3 Resource
Get an existing CceNodePoolV3 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?: CceNodePoolV3State, opts?: CustomResourceOptions): CceNodePoolV3
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
availability_zone: Optional[str] = None,
billing_mode: Optional[float] = None,
cce_node_pool_v3_id: Optional[str] = None,
cluster_id: Optional[str] = None,
current_node_count: Optional[float] = None,
data_volumes: Optional[Sequence[CceNodePoolV3DataVolumeArgs]] = None,
ecs_group_id: Optional[str] = None,
extend_param: Optional[Mapping[str, str]] = None,
flavor_id: Optional[str] = None,
initial_node_count: Optional[float] = None,
key_pair: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
max_node_count: Optional[float] = None,
max_pods: Optional[float] = None,
min_node_count: Optional[float] = None,
name: Optional[str] = None,
os: Optional[str] = None,
password: Optional[str] = None,
postinstall: Optional[str] = None,
preinstall: Optional[str] = None,
priority: Optional[float] = None,
region: Optional[str] = None,
root_volume: Optional[CceNodePoolV3RootVolumeArgs] = None,
runtime: Optional[str] = None,
scale_down_cooldown_time: Optional[float] = None,
scale_enable: Optional[bool] = None,
scall_enable: Optional[bool] = None,
security_groups: Optional[Sequence[str]] = None,
status: Optional[str] = None,
subnet_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
taints: Optional[Sequence[CceNodePoolV3TaintArgs]] = None,
timeouts: Optional[CceNodePoolV3TimeoutsArgs] = None,
type: Optional[str] = None) -> CceNodePoolV3
func GetCceNodePoolV3(ctx *Context, name string, id IDInput, state *CceNodePoolV3State, opts ...ResourceOption) (*CceNodePoolV3, error)
public static CceNodePoolV3 Get(string name, Input<string> id, CceNodePoolV3State? state, CustomResourceOptions? opts = null)
public static CceNodePoolV3 get(String name, Output<String> id, CceNodePoolV3State state, CustomResourceOptions options)
resources: _: type: flexibleengine:CceNodePoolV3 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.
- Availability
Zone string - specify the name of the available partition (AZ). Default value is random to create nodes in a random AZ in the node pool. Changing this parameter will create a new resource.
- Billing
Mode double - Billing mode of a node.
- Cce
Node stringPool V3Id - Specifies a resource ID in UUID format.
- Cluster
Id string - ID of the cluster. Changing this parameter will create a new resource.
- Current
Node doubleCount - The current number of the nodes.
- Data
Volumes List<CceNode Pool V3Data Volume> - Represents the data disk to be created. The object structure is documented below. Changing this parameter will create a new resource.
- Ecs
Group stringId - Specifies the ECS group ID. If specified, the node will be created under the cloud server group. Changing this parameter will create a new resource.
- Extend
Param Dictionary<string, string> - Flavor
Id string - Specifies the flavor id. Changing this parameter will create a new resource.
- Initial
Node doubleCount - Specifies the initial number of expected nodes in the node pool. This parameter can be also used to manually scale the node count afterwards.
- Key
Pair string - Key pair name when logging in to select the key pair mode.
This parameter and
password
are alternative. Changing this parameter will create a new resource. - Labels Dictionary<string, string>
- Tags of a Kubernetes node, key/value pair format.
- Max
Node doubleCount - Maximum number of nodes allowed if auto scaling is enabled.
- Max
Pods double - The maximum number of instances a node is allowed to create. Changing this parameter will create a new resource.
- Min
Node doubleCount - Minimum number of nodes allowed if auto scaling is enabled.
- Name string
- Node Pool Name.
- Os string
- Operating System of the node. The value can be EulerOS 2.5 and CentOS 7.6. Changing this parameter will create a new resource.
- Password string
- root password when logging in to select the password mode.
This parameter must be salted and alternative to
key_pair
. Changing this parameter will create a new resource. - Postinstall string
- Script required after the installation. The input value can be a Base64 encoded string or not. Changing this parameter will create a new resource.
- Preinstall string
- Script required before installation. The input value can be a Base64 encoded string or not. Changing this parameter will create a new resource.
- Priority double
- Weight of a node pool. A node pool with a higher weight has a higher priority during scaling.
- Region string
- Specifies the region in which to create the CCE node pool resource. If omitted, the provider-level region will be used. Changing this will create a new CCE node pool resource.
- Root
Volume CceNode Pool V3Root Volume - It corresponds to the system disk related configuration. The object structure is documented below. Changing this parameter will create a new resource.
- Runtime string
- Specifies the runtime of the CCE node pool. Valid values are docker and containerd. Changing this creates a new resource.
- Scale
Down doubleCooldown Time - Interval between two scaling operations, in minutes.
- Scale
Enable bool - Whether to enable auto scaling. If Autoscaler is enabled, install the autoscaler add-on to use the auto scaling feature.
- Scall
Enable bool - Security
Groups List<string> - Specifies the list of custom security group IDs for the node pool. If specified, the nodes will be put in these security groups. When specifying a security group, do not modify the rules of the port on which CCE running depends. Changing this parameter will create a new resource.
- Status string
- Node status information.
- Subnet
Id string - The ID of the VPC Subnet to which the NIC belongs. Changing this parameter will create a new resource.
- Dictionary<string, string>
- Tags of a VM node, key/value pair format.
- Taints
List<Cce
Node Pool V3Taint> - You can add taints to created nodes to configure anti-affinity. The object structure is documented below.
- Timeouts
Cce
Node Pool V3Timeouts - Type string
- Node Pool type. Possible values are: "vm" and "ElasticBMS".
- Availability
Zone string - specify the name of the available partition (AZ). Default value is random to create nodes in a random AZ in the node pool. Changing this parameter will create a new resource.
- Billing
Mode float64 - Billing mode of a node.
- Cce
Node stringPool V3Id - Specifies a resource ID in UUID format.
- Cluster
Id string - ID of the cluster. Changing this parameter will create a new resource.
- Current
Node float64Count - The current number of the nodes.
- Data
Volumes []CceNode Pool V3Data Volume Args - Represents the data disk to be created. The object structure is documented below. Changing this parameter will create a new resource.
- Ecs
Group stringId - Specifies the ECS group ID. If specified, the node will be created under the cloud server group. Changing this parameter will create a new resource.
- Extend
Param map[string]string - Flavor
Id string - Specifies the flavor id. Changing this parameter will create a new resource.
- Initial
Node float64Count - Specifies the initial number of expected nodes in the node pool. This parameter can be also used to manually scale the node count afterwards.
- Key
Pair string - Key pair name when logging in to select the key pair mode.
This parameter and
password
are alternative. Changing this parameter will create a new resource. - Labels map[string]string
- Tags of a Kubernetes node, key/value pair format.
- Max
Node float64Count - Maximum number of nodes allowed if auto scaling is enabled.
- Max
Pods float64 - The maximum number of instances a node is allowed to create. Changing this parameter will create a new resource.
- Min
Node float64Count - Minimum number of nodes allowed if auto scaling is enabled.
- Name string
- Node Pool Name.
- Os string
- Operating System of the node. The value can be EulerOS 2.5 and CentOS 7.6. Changing this parameter will create a new resource.
- Password string
- root password when logging in to select the password mode.
This parameter must be salted and alternative to
key_pair
. Changing this parameter will create a new resource. - Postinstall string
- Script required after the installation. The input value can be a Base64 encoded string or not. Changing this parameter will create a new resource.
- Preinstall string
- Script required before installation. The input value can be a Base64 encoded string or not. Changing this parameter will create a new resource.
- Priority float64
- Weight of a node pool. A node pool with a higher weight has a higher priority during scaling.
- Region string
- Specifies the region in which to create the CCE node pool resource. If omitted, the provider-level region will be used. Changing this will create a new CCE node pool resource.
- Root
Volume CceNode Pool V3Root Volume Args - It corresponds to the system disk related configuration. The object structure is documented below. Changing this parameter will create a new resource.
- Runtime string
- Specifies the runtime of the CCE node pool. Valid values are docker and containerd. Changing this creates a new resource.
- Scale
Down float64Cooldown Time - Interval between two scaling operations, in minutes.
- Scale
Enable bool - Whether to enable auto scaling. If Autoscaler is enabled, install the autoscaler add-on to use the auto scaling feature.
- Scall
Enable bool - Security
Groups []string - Specifies the list of custom security group IDs for the node pool. If specified, the nodes will be put in these security groups. When specifying a security group, do not modify the rules of the port on which CCE running depends. Changing this parameter will create a new resource.
- Status string
- Node status information.
- Subnet
Id string - The ID of the VPC Subnet to which the NIC belongs. Changing this parameter will create a new resource.
- map[string]string
- Tags of a VM node, key/value pair format.
- Taints
[]Cce
Node Pool V3Taint Args - You can add taints to created nodes to configure anti-affinity. The object structure is documented below.
- Timeouts
Cce
Node Pool V3Timeouts Args - Type string
- Node Pool type. Possible values are: "vm" and "ElasticBMS".
- availability
Zone String - specify the name of the available partition (AZ). Default value is random to create nodes in a random AZ in the node pool. Changing this parameter will create a new resource.
- billing
Mode Double - Billing mode of a node.
- cce
Node StringPool V3Id - Specifies a resource ID in UUID format.
- cluster
Id String - ID of the cluster. Changing this parameter will create a new resource.
- current
Node DoubleCount - The current number of the nodes.
- data
Volumes List<CceNode Pool V3Data Volume> - Represents the data disk to be created. The object structure is documented below. Changing this parameter will create a new resource.
- ecs
Group StringId - Specifies the ECS group ID. If specified, the node will be created under the cloud server group. Changing this parameter will create a new resource.
- extend
Param Map<String,String> - flavor
Id String - Specifies the flavor id. Changing this parameter will create a new resource.
- initial
Node DoubleCount - Specifies the initial number of expected nodes in the node pool. This parameter can be also used to manually scale the node count afterwards.
- key
Pair String - Key pair name when logging in to select the key pair mode.
This parameter and
password
are alternative. Changing this parameter will create a new resource. - labels Map<String,String>
- Tags of a Kubernetes node, key/value pair format.
- max
Node DoubleCount - Maximum number of nodes allowed if auto scaling is enabled.
- max
Pods Double - The maximum number of instances a node is allowed to create. Changing this parameter will create a new resource.
- min
Node DoubleCount - Minimum number of nodes allowed if auto scaling is enabled.
- name String
- Node Pool Name.
- os String
- Operating System of the node. The value can be EulerOS 2.5 and CentOS 7.6. Changing this parameter will create a new resource.
- password String
- root password when logging in to select the password mode.
This parameter must be salted and alternative to
key_pair
. Changing this parameter will create a new resource. - postinstall String
- Script required after the installation. The input value can be a Base64 encoded string or not. Changing this parameter will create a new resource.
- preinstall String
- Script required before installation. The input value can be a Base64 encoded string or not. Changing this parameter will create a new resource.
- priority Double
- Weight of a node pool. A node pool with a higher weight has a higher priority during scaling.
- region String
- Specifies the region in which to create the CCE node pool resource. If omitted, the provider-level region will be used. Changing this will create a new CCE node pool resource.
- root
Volume CceNode Pool V3Root Volume - It corresponds to the system disk related configuration. The object structure is documented below. Changing this parameter will create a new resource.
- runtime String
- Specifies the runtime of the CCE node pool. Valid values are docker and containerd. Changing this creates a new resource.
- scale
Down DoubleCooldown Time - Interval between two scaling operations, in minutes.
- scale
Enable Boolean - Whether to enable auto scaling. If Autoscaler is enabled, install the autoscaler add-on to use the auto scaling feature.
- scall
Enable Boolean - security
Groups List<String> - Specifies the list of custom security group IDs for the node pool. If specified, the nodes will be put in these security groups. When specifying a security group, do not modify the rules of the port on which CCE running depends. Changing this parameter will create a new resource.
- status String
- Node status information.
- subnet
Id String - The ID of the VPC Subnet to which the NIC belongs. Changing this parameter will create a new resource.
- Map<String,String>
- Tags of a VM node, key/value pair format.
- taints
List<Cce
Node Pool V3Taint> - You can add taints to created nodes to configure anti-affinity. The object structure is documented below.
- timeouts
Cce
Node Pool V3Timeouts - type String
- Node Pool type. Possible values are: "vm" and "ElasticBMS".
- availability
Zone string - specify the name of the available partition (AZ). Default value is random to create nodes in a random AZ in the node pool. Changing this parameter will create a new resource.
- billing
Mode number - Billing mode of a node.
- cce
Node stringPool V3Id - Specifies a resource ID in UUID format.
- cluster
Id string - ID of the cluster. Changing this parameter will create a new resource.
- current
Node numberCount - The current number of the nodes.
- data
Volumes CceNode Pool V3Data Volume[] - Represents the data disk to be created. The object structure is documented below. Changing this parameter will create a new resource.
- ecs
Group stringId - Specifies the ECS group ID. If specified, the node will be created under the cloud server group. Changing this parameter will create a new resource.
- extend
Param {[key: string]: string} - flavor
Id string - Specifies the flavor id. Changing this parameter will create a new resource.
- initial
Node numberCount - Specifies the initial number of expected nodes in the node pool. This parameter can be also used to manually scale the node count afterwards.
- key
Pair string - Key pair name when logging in to select the key pair mode.
This parameter and
password
are alternative. Changing this parameter will create a new resource. - labels {[key: string]: string}
- Tags of a Kubernetes node, key/value pair format.
- max
Node numberCount - Maximum number of nodes allowed if auto scaling is enabled.
- max
Pods number - The maximum number of instances a node is allowed to create. Changing this parameter will create a new resource.
- min
Node numberCount - Minimum number of nodes allowed if auto scaling is enabled.
- name string
- Node Pool Name.
- os string
- Operating System of the node. The value can be EulerOS 2.5 and CentOS 7.6. Changing this parameter will create a new resource.
- password string
- root password when logging in to select the password mode.
This parameter must be salted and alternative to
key_pair
. Changing this parameter will create a new resource. - postinstall string
- Script required after the installation. The input value can be a Base64 encoded string or not. Changing this parameter will create a new resource.
- preinstall string
- Script required before installation. The input value can be a Base64 encoded string or not. Changing this parameter will create a new resource.
- priority number
- Weight of a node pool. A node pool with a higher weight has a higher priority during scaling.
- region string
- Specifies the region in which to create the CCE node pool resource. If omitted, the provider-level region will be used. Changing this will create a new CCE node pool resource.
- root
Volume CceNode Pool V3Root Volume - It corresponds to the system disk related configuration. The object structure is documented below. Changing this parameter will create a new resource.
- runtime string
- Specifies the runtime of the CCE node pool. Valid values are docker and containerd. Changing this creates a new resource.
- scale
Down numberCooldown Time - Interval between two scaling operations, in minutes.
- scale
Enable boolean - Whether to enable auto scaling. If Autoscaler is enabled, install the autoscaler add-on to use the auto scaling feature.
- scall
Enable boolean - security
Groups string[] - Specifies the list of custom security group IDs for the node pool. If specified, the nodes will be put in these security groups. When specifying a security group, do not modify the rules of the port on which CCE running depends. Changing this parameter will create a new resource.
- status string
- Node status information.
- subnet
Id string - The ID of the VPC Subnet to which the NIC belongs. Changing this parameter will create a new resource.
- {[key: string]: string}
- Tags of a VM node, key/value pair format.
- taints
Cce
Node Pool V3Taint[] - You can add taints to created nodes to configure anti-affinity. The object structure is documented below.
- timeouts
Cce
Node Pool V3Timeouts - type string
- Node Pool type. Possible values are: "vm" and "ElasticBMS".
- availability_
zone str - specify the name of the available partition (AZ). Default value is random to create nodes in a random AZ in the node pool. Changing this parameter will create a new resource.
- billing_
mode float - Billing mode of a node.
- cce_
node_ strpool_ v3_ id - Specifies a resource ID in UUID format.
- cluster_
id str - ID of the cluster. Changing this parameter will create a new resource.
- current_
node_ floatcount - The current number of the nodes.
- data_
volumes Sequence[CceNode Pool V3Data Volume Args] - Represents the data disk to be created. The object structure is documented below. Changing this parameter will create a new resource.
- ecs_
group_ strid - Specifies the ECS group ID. If specified, the node will be created under the cloud server group. Changing this parameter will create a new resource.
- extend_
param Mapping[str, str] - flavor_
id str - Specifies the flavor id. Changing this parameter will create a new resource.
- initial_
node_ floatcount - Specifies the initial number of expected nodes in the node pool. This parameter can be also used to manually scale the node count afterwards.
- key_
pair str - Key pair name when logging in to select the key pair mode.
This parameter and
password
are alternative. Changing this parameter will create a new resource. - labels Mapping[str, str]
- Tags of a Kubernetes node, key/value pair format.
- max_
node_ floatcount - Maximum number of nodes allowed if auto scaling is enabled.
- max_
pods float - The maximum number of instances a node is allowed to create. Changing this parameter will create a new resource.
- min_
node_ floatcount - Minimum number of nodes allowed if auto scaling is enabled.
- name str
- Node Pool Name.
- os str
- Operating System of the node. The value can be EulerOS 2.5 and CentOS 7.6. Changing this parameter will create a new resource.
- password str
- root password when logging in to select the password mode.
This parameter must be salted and alternative to
key_pair
. Changing this parameter will create a new resource. - postinstall str
- Script required after the installation. The input value can be a Base64 encoded string or not. Changing this parameter will create a new resource.
- preinstall str
- Script required before installation. The input value can be a Base64 encoded string or not. Changing this parameter will create a new resource.
- priority float
- Weight of a node pool. A node pool with a higher weight has a higher priority during scaling.
- region str
- Specifies the region in which to create the CCE node pool resource. If omitted, the provider-level region will be used. Changing this will create a new CCE node pool resource.
- root_
volume CceNode Pool V3Root Volume Args - It corresponds to the system disk related configuration. The object structure is documented below. Changing this parameter will create a new resource.
- runtime str
- Specifies the runtime of the CCE node pool. Valid values are docker and containerd. Changing this creates a new resource.
- scale_
down_ floatcooldown_ time - Interval between two scaling operations, in minutes.
- scale_
enable bool - Whether to enable auto scaling. If Autoscaler is enabled, install the autoscaler add-on to use the auto scaling feature.
- scall_
enable bool - security_
groups Sequence[str] - Specifies the list of custom security group IDs for the node pool. If specified, the nodes will be put in these security groups. When specifying a security group, do not modify the rules of the port on which CCE running depends. Changing this parameter will create a new resource.
- status str
- Node status information.
- subnet_
id str - The ID of the VPC Subnet to which the NIC belongs. Changing this parameter will create a new resource.
- Mapping[str, str]
- Tags of a VM node, key/value pair format.
- taints
Sequence[Cce
Node Pool V3Taint Args] - You can add taints to created nodes to configure anti-affinity. The object structure is documented below.
- timeouts
Cce
Node Pool V3Timeouts Args - type str
- Node Pool type. Possible values are: "vm" and "ElasticBMS".
- availability
Zone String - specify the name of the available partition (AZ). Default value is random to create nodes in a random AZ in the node pool. Changing this parameter will create a new resource.
- billing
Mode Number - Billing mode of a node.
- cce
Node StringPool V3Id - Specifies a resource ID in UUID format.
- cluster
Id String - ID of the cluster. Changing this parameter will create a new resource.
- current
Node NumberCount - The current number of the nodes.
- data
Volumes List<Property Map> - Represents the data disk to be created. The object structure is documented below. Changing this parameter will create a new resource.
- ecs
Group StringId - Specifies the ECS group ID. If specified, the node will be created under the cloud server group. Changing this parameter will create a new resource.
- extend
Param Map<String> - flavor
Id String - Specifies the flavor id. Changing this parameter will create a new resource.
- initial
Node NumberCount - Specifies the initial number of expected nodes in the node pool. This parameter can be also used to manually scale the node count afterwards.
- key
Pair String - Key pair name when logging in to select the key pair mode.
This parameter and
password
are alternative. Changing this parameter will create a new resource. - labels Map<String>
- Tags of a Kubernetes node, key/value pair format.
- max
Node NumberCount - Maximum number of nodes allowed if auto scaling is enabled.
- max
Pods Number - The maximum number of instances a node is allowed to create. Changing this parameter will create a new resource.
- min
Node NumberCount - Minimum number of nodes allowed if auto scaling is enabled.
- name String
- Node Pool Name.
- os String
- Operating System of the node. The value can be EulerOS 2.5 and CentOS 7.6. Changing this parameter will create a new resource.
- password String
- root password when logging in to select the password mode.
This parameter must be salted and alternative to
key_pair
. Changing this parameter will create a new resource. - postinstall String
- Script required after the installation. The input value can be a Base64 encoded string or not. Changing this parameter will create a new resource.
- preinstall String
- Script required before installation. The input value can be a Base64 encoded string or not. Changing this parameter will create a new resource.
- priority Number
- Weight of a node pool. A node pool with a higher weight has a higher priority during scaling.
- region String
- Specifies the region in which to create the CCE node pool resource. If omitted, the provider-level region will be used. Changing this will create a new CCE node pool resource.
- root
Volume Property Map - It corresponds to the system disk related configuration. The object structure is documented below. Changing this parameter will create a new resource.
- runtime String
- Specifies the runtime of the CCE node pool. Valid values are docker and containerd. Changing this creates a new resource.
- scale
Down NumberCooldown Time - Interval between two scaling operations, in minutes.
- scale
Enable Boolean - Whether to enable auto scaling. If Autoscaler is enabled, install the autoscaler add-on to use the auto scaling feature.
- scall
Enable Boolean - security
Groups List<String> - Specifies the list of custom security group IDs for the node pool. If specified, the nodes will be put in these security groups. When specifying a security group, do not modify the rules of the port on which CCE running depends. Changing this parameter will create a new resource.
- status String
- Node status information.
- subnet
Id String - The ID of the VPC Subnet to which the NIC belongs. Changing this parameter will create a new resource.
- Map<String>
- Tags of a VM node, key/value pair format.
- taints List<Property Map>
- You can add taints to created nodes to configure anti-affinity. The object structure is documented below.
- timeouts Property Map
- type String
- Node Pool type. Possible values are: "vm" and "ElasticBMS".
Supporting Types
CceNodePoolV3DataVolume, CceNodePoolV3DataVolumeArgs
- Size double
- Specifies the disk size in GB. Changing this will create a new CCE node pool resource.
- Volumetype string
- Specifies the disk type. Changing this will create a new CCE node pool resource.
- Extend
Params Dictionary<string, string> - Specifies the disk expansion parameters in key/value pair format. Changing this will create a new CCE node pool resource.
- Kms
Key stringId Specifies the KMS key ID. This is used to encrypt the volume. Changing this will create a new CCE node pool resource.
You need to create an agency (EVSAccessKMS) when disk encryption is used in the current project for the first time ever. The account and permission of the created agency are
op_svc_evs
and KMS Administrator, respectively.
- Size float64
- Specifies the disk size in GB. Changing this will create a new CCE node pool resource.
- Volumetype string
- Specifies the disk type. Changing this will create a new CCE node pool resource.
- Extend
Params map[string]string - Specifies the disk expansion parameters in key/value pair format. Changing this will create a new CCE node pool resource.
- Kms
Key stringId Specifies the KMS key ID. This is used to encrypt the volume. Changing this will create a new CCE node pool resource.
You need to create an agency (EVSAccessKMS) when disk encryption is used in the current project for the first time ever. The account and permission of the created agency are
op_svc_evs
and KMS Administrator, respectively.
- size Double
- Specifies the disk size in GB. Changing this will create a new CCE node pool resource.
- volumetype String
- Specifies the disk type. Changing this will create a new CCE node pool resource.
- extend
Params Map<String,String> - Specifies the disk expansion parameters in key/value pair format. Changing this will create a new CCE node pool resource.
- kms
Key StringId Specifies the KMS key ID. This is used to encrypt the volume. Changing this will create a new CCE node pool resource.
You need to create an agency (EVSAccessKMS) when disk encryption is used in the current project for the first time ever. The account and permission of the created agency are
op_svc_evs
and KMS Administrator, respectively.
- size number
- Specifies the disk size in GB. Changing this will create a new CCE node pool resource.
- volumetype string
- Specifies the disk type. Changing this will create a new CCE node pool resource.
- extend
Params {[key: string]: string} - Specifies the disk expansion parameters in key/value pair format. Changing this will create a new CCE node pool resource.
- kms
Key stringId Specifies the KMS key ID. This is used to encrypt the volume. Changing this will create a new CCE node pool resource.
You need to create an agency (EVSAccessKMS) when disk encryption is used in the current project for the first time ever. The account and permission of the created agency are
op_svc_evs
and KMS Administrator, respectively.
- size float
- Specifies the disk size in GB. Changing this will create a new CCE node pool resource.
- volumetype str
- Specifies the disk type. Changing this will create a new CCE node pool resource.
- extend_
params Mapping[str, str] - Specifies the disk expansion parameters in key/value pair format. Changing this will create a new CCE node pool resource.
- kms_
key_ strid Specifies the KMS key ID. This is used to encrypt the volume. Changing this will create a new CCE node pool resource.
You need to create an agency (EVSAccessKMS) when disk encryption is used in the current project for the first time ever. The account and permission of the created agency are
op_svc_evs
and KMS Administrator, respectively.
- size Number
- Specifies the disk size in GB. Changing this will create a new CCE node pool resource.
- volumetype String
- Specifies the disk type. Changing this will create a new CCE node pool resource.
- extend
Params Map<String> - Specifies the disk expansion parameters in key/value pair format. Changing this will create a new CCE node pool resource.
- kms
Key StringId Specifies the KMS key ID. This is used to encrypt the volume. Changing this will create a new CCE node pool resource.
You need to create an agency (EVSAccessKMS) when disk encryption is used in the current project for the first time ever. The account and permission of the created agency are
op_svc_evs
and KMS Administrator, respectively.
CceNodePoolV3RootVolume, CceNodePoolV3RootVolumeArgs
- Size double
- Specifies the disk size in GB. Changing this will create a new CCE node pool resource.
- Volumetype string
- Specifies the disk type. Changing this will create a new CCE node pool resource.
- Extend
Params Dictionary<string, string> - Specifies the disk expansion parameters in key/value pair format. Changing this will create a new CCE node pool resource.
- Kms
Key stringId Specifies the KMS key ID. This is used to encrypt the volume. Changing this will create a new CCE node pool resource.
You need to create an agency (EVSAccessKMS) when disk encryption is used in the current project for the first time ever. The account and permission of the created agency are
op_svc_evs
and KMS Administrator, respectively.
- Size float64
- Specifies the disk size in GB. Changing this will create a new CCE node pool resource.
- Volumetype string
- Specifies the disk type. Changing this will create a new CCE node pool resource.
- Extend
Params map[string]string - Specifies the disk expansion parameters in key/value pair format. Changing this will create a new CCE node pool resource.
- Kms
Key stringId Specifies the KMS key ID. This is used to encrypt the volume. Changing this will create a new CCE node pool resource.
You need to create an agency (EVSAccessKMS) when disk encryption is used in the current project for the first time ever. The account and permission of the created agency are
op_svc_evs
and KMS Administrator, respectively.
- size Double
- Specifies the disk size in GB. Changing this will create a new CCE node pool resource.
- volumetype String
- Specifies the disk type. Changing this will create a new CCE node pool resource.
- extend
Params Map<String,String> - Specifies the disk expansion parameters in key/value pair format. Changing this will create a new CCE node pool resource.
- kms
Key StringId Specifies the KMS key ID. This is used to encrypt the volume. Changing this will create a new CCE node pool resource.
You need to create an agency (EVSAccessKMS) when disk encryption is used in the current project for the first time ever. The account and permission of the created agency are
op_svc_evs
and KMS Administrator, respectively.
- size number
- Specifies the disk size in GB. Changing this will create a new CCE node pool resource.
- volumetype string
- Specifies the disk type. Changing this will create a new CCE node pool resource.
- extend
Params {[key: string]: string} - Specifies the disk expansion parameters in key/value pair format. Changing this will create a new CCE node pool resource.
- kms
Key stringId Specifies the KMS key ID. This is used to encrypt the volume. Changing this will create a new CCE node pool resource.
You need to create an agency (EVSAccessKMS) when disk encryption is used in the current project for the first time ever. The account and permission of the created agency are
op_svc_evs
and KMS Administrator, respectively.
- size float
- Specifies the disk size in GB. Changing this will create a new CCE node pool resource.
- volumetype str
- Specifies the disk type. Changing this will create a new CCE node pool resource.
- extend_
params Mapping[str, str] - Specifies the disk expansion parameters in key/value pair format. Changing this will create a new CCE node pool resource.
- kms_
key_ strid Specifies the KMS key ID. This is used to encrypt the volume. Changing this will create a new CCE node pool resource.
You need to create an agency (EVSAccessKMS) when disk encryption is used in the current project for the first time ever. The account and permission of the created agency are
op_svc_evs
and KMS Administrator, respectively.
- size Number
- Specifies the disk size in GB. Changing this will create a new CCE node pool resource.
- volumetype String
- Specifies the disk type. Changing this will create a new CCE node pool resource.
- extend
Params Map<String> - Specifies the disk expansion parameters in key/value pair format. Changing this will create a new CCE node pool resource.
- kms
Key StringId Specifies the KMS key ID. This is used to encrypt the volume. Changing this will create a new CCE node pool resource.
You need to create an agency (EVSAccessKMS) when disk encryption is used in the current project for the first time ever. The account and permission of the created agency are
op_svc_evs
and KMS Administrator, respectively.
CceNodePoolV3Taint, CceNodePoolV3TaintArgs
- Effect string
- Available options are NoSchedule, PreferNoSchedule and NoExecute.
- Key string
- A key must contain 1 to 63 characters starting with a letter or digit. Only letters, digits, hyphens (-), underscores (_), and periods (.) are allowed. A DNS subdomain name can be used as the prefix of a key.
- Value string
- A value must start with a letter or digit and can contain a maximum of 63 characters, including letters, digits, hyphens (-), underscores (_), and periods (.).
- Effect string
- Available options are NoSchedule, PreferNoSchedule and NoExecute.
- Key string
- A key must contain 1 to 63 characters starting with a letter or digit. Only letters, digits, hyphens (-), underscores (_), and periods (.) are allowed. A DNS subdomain name can be used as the prefix of a key.
- Value string
- A value must start with a letter or digit and can contain a maximum of 63 characters, including letters, digits, hyphens (-), underscores (_), and periods (.).
- effect String
- Available options are NoSchedule, PreferNoSchedule and NoExecute.
- key String
- A key must contain 1 to 63 characters starting with a letter or digit. Only letters, digits, hyphens (-), underscores (_), and periods (.) are allowed. A DNS subdomain name can be used as the prefix of a key.
- value String
- A value must start with a letter or digit and can contain a maximum of 63 characters, including letters, digits, hyphens (-), underscores (_), and periods (.).
- effect string
- Available options are NoSchedule, PreferNoSchedule and NoExecute.
- key string
- A key must contain 1 to 63 characters starting with a letter or digit. Only letters, digits, hyphens (-), underscores (_), and periods (.) are allowed. A DNS subdomain name can be used as the prefix of a key.
- value string
- A value must start with a letter or digit and can contain a maximum of 63 characters, including letters, digits, hyphens (-), underscores (_), and periods (.).
- effect str
- Available options are NoSchedule, PreferNoSchedule and NoExecute.
- key str
- A key must contain 1 to 63 characters starting with a letter or digit. Only letters, digits, hyphens (-), underscores (_), and periods (.) are allowed. A DNS subdomain name can be used as the prefix of a key.
- value str
- A value must start with a letter or digit and can contain a maximum of 63 characters, including letters, digits, hyphens (-), underscores (_), and periods (.).
- effect String
- Available options are NoSchedule, PreferNoSchedule and NoExecute.
- key String
- A key must contain 1 to 63 characters starting with a letter or digit. Only letters, digits, hyphens (-), underscores (_), and periods (.) are allowed. A DNS subdomain name can be used as the prefix of a key.
- value String
- A value must start with a letter or digit and can contain a maximum of 63 characters, including letters, digits, hyphens (-), underscores (_), and periods (.).
CceNodePoolV3Timeouts, CceNodePoolV3TimeoutsArgs
Import
Node_pool can be imported using the cluster ID and node_pool ID, e.g.
$ pulumi import flexibleengine:index/cceNodePoolV3:CceNodePoolV3 node_pool_1 <cluster_id>/<id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.