opentelekomcloud.CceAddonV3
Explore with Pulumi AI
Up-to-date reference of API arguments for CCE addons you can get at documentation portal
Manages a V3 CCE Addon resource within OpenTelekomCloud.
Example Usage
Basic addon setting
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const flavorId = config.requireObject("flavorId");
const vpcId = config.requireObject("vpcId");
const subnetId = config.requireObject("subnetId");
const cluster1 = new opentelekomcloud.CceClusterV3("cluster1", {
clusterType: "VirtualMachine",
flavorId: flavorId,
vpcId: vpcId,
subnetId: subnetId,
containerNetworkType: "overlay_l2",
kubernetesSvcIpRange: "10.247.0.0/16",
clusterVersion: "v1.17.9-r0",
});
const addon = new opentelekomcloud.CceAddonV3("addon", {
templateName: "metrics-server",
templateVersion: "1.3.6",
clusterId: cluster1.cceClusterV3Id,
values: {
basic: {
image_version: "v0.6.2",
swr_addr: "100.125.7.25:20202",
swr_user: "cce-addons",
},
custom: {},
},
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
flavor_id = config.require_object("flavorId")
vpc_id = config.require_object("vpcId")
subnet_id = config.require_object("subnetId")
cluster1 = opentelekomcloud.CceClusterV3("cluster1",
cluster_type="VirtualMachine",
flavor_id=flavor_id,
vpc_id=vpc_id,
subnet_id=subnet_id,
container_network_type="overlay_l2",
kubernetes_svc_ip_range="10.247.0.0/16",
cluster_version="v1.17.9-r0")
addon = opentelekomcloud.CceAddonV3("addon",
template_name="metrics-server",
template_version="1.3.6",
cluster_id=cluster1.cce_cluster_v3_id,
values={
"basic": {
"image_version": "v0.6.2",
"swr_addr": "100.125.7.25:20202",
"swr_user": "cce-addons",
},
"custom": {},
})
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, "")
flavorId := cfg.RequireObject("flavorId")
vpcId := cfg.RequireObject("vpcId")
subnetId := cfg.RequireObject("subnetId")
cluster1, err := opentelekomcloud.NewCceClusterV3(ctx, "cluster1", &opentelekomcloud.CceClusterV3Args{
ClusterType: pulumi.String("VirtualMachine"),
FlavorId: pulumi.Any(flavorId),
VpcId: pulumi.Any(vpcId),
SubnetId: pulumi.Any(subnetId),
ContainerNetworkType: pulumi.String("overlay_l2"),
KubernetesSvcIpRange: pulumi.String("10.247.0.0/16"),
ClusterVersion: pulumi.String("v1.17.9-r0"),
})
if err != nil {
return err
}
_, err = opentelekomcloud.NewCceAddonV3(ctx, "addon", &opentelekomcloud.CceAddonV3Args{
TemplateName: pulumi.String("metrics-server"),
TemplateVersion: pulumi.String("1.3.6"),
ClusterId: cluster1.CceClusterV3Id,
Values: &opentelekomcloud.CceAddonV3ValuesArgs{
Basic: pulumi.StringMap{
"image_version": pulumi.String("v0.6.2"),
"swr_addr": pulumi.String("100.125.7.25:20202"),
"swr_user": pulumi.String("cce-addons"),
},
Custom: pulumi.StringMap{},
},
})
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 flavorId = config.RequireObject<dynamic>("flavorId");
var vpcId = config.RequireObject<dynamic>("vpcId");
var subnetId = config.RequireObject<dynamic>("subnetId");
var cluster1 = new Opentelekomcloud.CceClusterV3("cluster1", new()
{
ClusterType = "VirtualMachine",
FlavorId = flavorId,
VpcId = vpcId,
SubnetId = subnetId,
ContainerNetworkType = "overlay_l2",
KubernetesSvcIpRange = "10.247.0.0/16",
ClusterVersion = "v1.17.9-r0",
});
var addon = new Opentelekomcloud.CceAddonV3("addon", new()
{
TemplateName = "metrics-server",
TemplateVersion = "1.3.6",
ClusterId = cluster1.CceClusterV3Id,
Values = new Opentelekomcloud.Inputs.CceAddonV3ValuesArgs
{
Basic =
{
{ "image_version", "v0.6.2" },
{ "swr_addr", "100.125.7.25:20202" },
{ "swr_user", "cce-addons" },
},
Custom = null,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.CceClusterV3;
import com.pulumi.opentelekomcloud.CceClusterV3Args;
import com.pulumi.opentelekomcloud.CceAddonV3;
import com.pulumi.opentelekomcloud.CceAddonV3Args;
import com.pulumi.opentelekomcloud.inputs.CceAddonV3ValuesArgs;
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 flavorId = config.get("flavorId");
final var vpcId = config.get("vpcId");
final var subnetId = config.get("subnetId");
var cluster1 = new CceClusterV3("cluster1", CceClusterV3Args.builder()
.clusterType("VirtualMachine")
.flavorId(flavorId)
.vpcId(vpcId)
.subnetId(subnetId)
.containerNetworkType("overlay_l2")
.kubernetesSvcIpRange("10.247.0.0/16")
.clusterVersion("v1.17.9-r0")
.build());
var addon = new CceAddonV3("addon", CceAddonV3Args.builder()
.templateName("metrics-server")
.templateVersion("1.3.6")
.clusterId(cluster1.cceClusterV3Id())
.values(CceAddonV3ValuesArgs.builder()
.basic(Map.ofEntries(
Map.entry("image_version", "v0.6.2"),
Map.entry("swr_addr", "100.125.7.25:20202"),
Map.entry("swr_user", "cce-addons")
))
.custom()
.build())
.build());
}
}
configuration:
flavorId:
type: dynamic
vpcId:
type: dynamic
subnetId:
type: dynamic
resources:
cluster1:
type: opentelekomcloud:CceClusterV3
properties:
clusterType: VirtualMachine
flavorId: ${flavorId}
vpcId: ${vpcId}
subnetId: ${subnetId}
containerNetworkType: overlay_l2
kubernetesSvcIpRange: 10.247.0.0/16
clusterVersion: v1.17.9-r0
addon:
type: opentelekomcloud:CceAddonV3
properties:
templateName: metrics-server
templateVersion: 1.3.6
clusterId: ${cluster1.cceClusterV3Id}
values:
basic:
image_version: v0.6.2
swr_addr: 100.125.7.25:20202
swr_user: cce-addons
custom: {}
CCE addon management with data sources
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const vpcId = config.requireObject("vpcId");
const networkId = config.requireObject("networkId");
const regionName = config.requireObject("regionName");
const _this = opentelekomcloud.getIdentityProjectV3({});
const autoscalerCceAddonTemplateV3 = opentelekomcloud.getCceAddonTemplateV3({
addonVersion: _var.autoscaler_version,
addonName: "autoscaler",
});
const cluster1 = new opentelekomcloud.CceClusterV3("cluster1", {
clusterType: "VirtualMachine",
flavorId: "cce.s1.small",
vpcId: vpcId,
subnetId: networkId,
clusterVersion: "v1.25",
containerNetworkType: "overlay_l2",
kubernetesSvcIpRange: "10.247.0.0/16",
});
const autoscalerCceAddonV3 = new opentelekomcloud.CceAddonV3("autoscalerCceAddonV3", {
templateName: autoscalerCceAddonTemplateV3.then(autoscalerCceAddonTemplateV3 => autoscalerCceAddonTemplateV3.addonName),
templateVersion: autoscalerCceAddonTemplateV3.then(autoscalerCceAddonTemplateV3 => autoscalerCceAddonTemplateV3.addonVersion),
clusterId: cluster1.cceClusterV3Id,
values: {
basic: {
cceEndpoint: `https://cce.${regionName}.otc.t-systems.com`,
ecsEndpoint: `https://ecs.${regionName}.otc.t-systems.com`,
region: regionName,
swr_addr: autoscalerCceAddonTemplateV3.then(autoscalerCceAddonTemplateV3 => autoscalerCceAddonTemplateV3.swrAddr),
swr_user: autoscalerCceAddonTemplateV3.then(autoscalerCceAddonTemplateV3 => autoscalerCceAddonTemplateV3.swrUser),
},
custom: {
cluster_id: cluster1.cceClusterV3Id,
coresTotal: "32000",
expander: "priority",
logLevel: "4",
maxEmptyBulkDeleteFlag: "10",
maxNodeProvisionTime: "15",
maxNodesTotal: "1000",
memoryTotal: "128000",
scaleDownDelayAfterAdd: "10",
scaleDownDelayAfterDelete: "11",
scaleDownDelayAfterFailure: "3",
scaleDownEnabled: "true",
scaleDownUnneededTime: "10",
scaleDownUtilizationThreshold: "0.5",
scaleUpCpuUtilizationThreshold: "1",
scaleUpMemUtilizationThreshold: "1",
scaleUpUnscheduledPodEnabled: "true",
scaleUpUtilizationEnabled: "true",
tenant_id: _this.then(_this => _this.id),
unremovableNodeRecheckTimeout: "5",
},
flavor: ` {
"description": "Has only one instance",
"name": "Single",
"replicas": 1,
"resources": [
{
"limitsCpu": "1000m",
"limitsMem": "1000Mi",
"name": "autoscaler",
"requestsCpu": "500m",
"requestsMem": "500Mi"
}
]
}
`,
},
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
vpc_id = config.require_object("vpcId")
network_id = config.require_object("networkId")
region_name = config.require_object("regionName")
this = opentelekomcloud.get_identity_project_v3()
autoscaler_cce_addon_template_v3 = opentelekomcloud.get_cce_addon_template_v3(addon_version=var["autoscaler_version"],
addon_name="autoscaler")
cluster1 = opentelekomcloud.CceClusterV3("cluster1",
cluster_type="VirtualMachine",
flavor_id="cce.s1.small",
vpc_id=vpc_id,
subnet_id=network_id,
cluster_version="v1.25",
container_network_type="overlay_l2",
kubernetes_svc_ip_range="10.247.0.0/16")
autoscaler_cce_addon_v3 = opentelekomcloud.CceAddonV3("autoscalerCceAddonV3",
template_name=autoscaler_cce_addon_template_v3.addon_name,
template_version=autoscaler_cce_addon_template_v3.addon_version,
cluster_id=cluster1.cce_cluster_v3_id,
values={
"basic": {
"cceEndpoint": f"https://cce.{region_name}.otc.t-systems.com",
"ecsEndpoint": f"https://ecs.{region_name}.otc.t-systems.com",
"region": region_name,
"swr_addr": autoscaler_cce_addon_template_v3.swr_addr,
"swr_user": autoscaler_cce_addon_template_v3.swr_user,
},
"custom": {
"cluster_id": cluster1.cce_cluster_v3_id,
"coresTotal": "32000",
"expander": "priority",
"logLevel": "4",
"maxEmptyBulkDeleteFlag": "10",
"maxNodeProvisionTime": "15",
"maxNodesTotal": "1000",
"memoryTotal": "128000",
"scaleDownDelayAfterAdd": "10",
"scaleDownDelayAfterDelete": "11",
"scaleDownDelayAfterFailure": "3",
"scaleDownEnabled": "true",
"scaleDownUnneededTime": "10",
"scaleDownUtilizationThreshold": "0.5",
"scaleUpCpuUtilizationThreshold": "1",
"scaleUpMemUtilizationThreshold": "1",
"scaleUpUnscheduledPodEnabled": "true",
"scaleUpUtilizationEnabled": "true",
"tenant_id": this.id,
"unremovableNodeRecheckTimeout": "5",
},
"flavor": """ {
"description": "Has only one instance",
"name": "Single",
"replicas": 1,
"resources": [
{
"limitsCpu": "1000m",
"limitsMem": "1000Mi",
"name": "autoscaler",
"requestsCpu": "500m",
"requestsMem": "500Mi"
}
]
}
""",
})
package main
import (
"fmt"
"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, "")
vpcId := cfg.RequireObject("vpcId")
networkId := cfg.RequireObject("networkId")
regionName := cfg.RequireObject("regionName")
this, err := opentelekomcloud.LookupIdentityProjectV3(ctx, &opentelekomcloud.LookupIdentityProjectV3Args{}, nil)
if err != nil {
return err
}
autoscalerCceAddonTemplateV3, err := opentelekomcloud.GetCceAddonTemplateV3(ctx, &opentelekomcloud.GetCceAddonTemplateV3Args{
AddonVersion: _var.Autoscaler_version,
AddonName: "autoscaler",
}, nil)
if err != nil {
return err
}
cluster1, err := opentelekomcloud.NewCceClusterV3(ctx, "cluster1", &opentelekomcloud.CceClusterV3Args{
ClusterType: pulumi.String("VirtualMachine"),
FlavorId: pulumi.String("cce.s1.small"),
VpcId: pulumi.Any(vpcId),
SubnetId: pulumi.Any(networkId),
ClusterVersion: pulumi.String("v1.25"),
ContainerNetworkType: pulumi.String("overlay_l2"),
KubernetesSvcIpRange: pulumi.String("10.247.0.0/16"),
})
if err != nil {
return err
}
_, err = opentelekomcloud.NewCceAddonV3(ctx, "autoscalerCceAddonV3", &opentelekomcloud.CceAddonV3Args{
TemplateName: pulumi.String(autoscalerCceAddonTemplateV3.AddonName),
TemplateVersion: pulumi.String(autoscalerCceAddonTemplateV3.AddonVersion),
ClusterId: cluster1.CceClusterV3Id,
Values: &opentelekomcloud.CceAddonV3ValuesArgs{
Basic: pulumi.StringMap{
"cceEndpoint": pulumi.Sprintf("https://cce.%v.otc.t-systems.com", regionName),
"ecsEndpoint": pulumi.Sprintf("https://ecs.%v.otc.t-systems.com", regionName),
"region": pulumi.Any(regionName),
"swr_addr": pulumi.String(autoscalerCceAddonTemplateV3.SwrAddr),
"swr_user": pulumi.String(autoscalerCceAddonTemplateV3.SwrUser),
},
Custom: pulumi.StringMap{
"cluster_id": cluster1.CceClusterV3Id,
"coresTotal": pulumi.String("32000"),
"expander": pulumi.String("priority"),
"logLevel": pulumi.String("4"),
"maxEmptyBulkDeleteFlag": pulumi.String("10"),
"maxNodeProvisionTime": pulumi.String("15"),
"maxNodesTotal": pulumi.String("1000"),
"memoryTotal": pulumi.String("128000"),
"scaleDownDelayAfterAdd": pulumi.String("10"),
"scaleDownDelayAfterDelete": pulumi.String("11"),
"scaleDownDelayAfterFailure": pulumi.String("3"),
"scaleDownEnabled": pulumi.String("true"),
"scaleDownUnneededTime": pulumi.String("10"),
"scaleDownUtilizationThreshold": pulumi.String("0.5"),
"scaleUpCpuUtilizationThreshold": pulumi.String("1"),
"scaleUpMemUtilizationThreshold": pulumi.String("1"),
"scaleUpUnscheduledPodEnabled": pulumi.String("true"),
"scaleUpUtilizationEnabled": pulumi.String("true"),
"tenant_id": pulumi.String(this.Id),
"unremovableNodeRecheckTimeout": pulumi.String("5"),
},
Flavor: pulumi.String(` {
"description": "Has only one instance",
"name": "Single",
"replicas": 1,
"resources": [
{
"limitsCpu": "1000m",
"limitsMem": "1000Mi",
"name": "autoscaler",
"requestsCpu": "500m",
"requestsMem": "500Mi"
}
]
}
`),
},
})
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 vpcId = config.RequireObject<dynamic>("vpcId");
var networkId = config.RequireObject<dynamic>("networkId");
var regionName = config.RequireObject<dynamic>("regionName");
var @this = Opentelekomcloud.GetIdentityProjectV3.Invoke();
var autoscalerCceAddonTemplateV3 = Opentelekomcloud.GetCceAddonTemplateV3.Invoke(new()
{
AddonVersion = @var.Autoscaler_version,
AddonName = "autoscaler",
});
var cluster1 = new Opentelekomcloud.CceClusterV3("cluster1", new()
{
ClusterType = "VirtualMachine",
FlavorId = "cce.s1.small",
VpcId = vpcId,
SubnetId = networkId,
ClusterVersion = "v1.25",
ContainerNetworkType = "overlay_l2",
KubernetesSvcIpRange = "10.247.0.0/16",
});
var autoscalerCceAddonV3 = new Opentelekomcloud.CceAddonV3("autoscalerCceAddonV3", new()
{
TemplateName = autoscalerCceAddonTemplateV3.Apply(getCceAddonTemplateV3Result => getCceAddonTemplateV3Result.AddonName),
TemplateVersion = autoscalerCceAddonTemplateV3.Apply(getCceAddonTemplateV3Result => getCceAddonTemplateV3Result.AddonVersion),
ClusterId = cluster1.CceClusterV3Id,
Values = new Opentelekomcloud.Inputs.CceAddonV3ValuesArgs
{
Basic =
{
{ "cceEndpoint", $"https://cce.{regionName}.otc.t-systems.com" },
{ "ecsEndpoint", $"https://ecs.{regionName}.otc.t-systems.com" },
{ "region", regionName },
{ "swr_addr", autoscalerCceAddonTemplateV3.Apply(getCceAddonTemplateV3Result => getCceAddonTemplateV3Result.SwrAddr) },
{ "swr_user", autoscalerCceAddonTemplateV3.Apply(getCceAddonTemplateV3Result => getCceAddonTemplateV3Result.SwrUser) },
},
Custom =
{
{ "cluster_id", cluster1.CceClusterV3Id },
{ "coresTotal", "32000" },
{ "expander", "priority" },
{ "logLevel", "4" },
{ "maxEmptyBulkDeleteFlag", "10" },
{ "maxNodeProvisionTime", "15" },
{ "maxNodesTotal", "1000" },
{ "memoryTotal", "128000" },
{ "scaleDownDelayAfterAdd", "10" },
{ "scaleDownDelayAfterDelete", "11" },
{ "scaleDownDelayAfterFailure", "3" },
{ "scaleDownEnabled", "true" },
{ "scaleDownUnneededTime", "10" },
{ "scaleDownUtilizationThreshold", "0.5" },
{ "scaleUpCpuUtilizationThreshold", "1" },
{ "scaleUpMemUtilizationThreshold", "1" },
{ "scaleUpUnscheduledPodEnabled", "true" },
{ "scaleUpUtilizationEnabled", "true" },
{ "tenant_id", @this.Apply(@this => @this.Apply(getIdentityProjectV3Result => getIdentityProjectV3Result.Id)) },
{ "unremovableNodeRecheckTimeout", "5" },
},
Flavor = @" {
""description"": ""Has only one instance"",
""name"": ""Single"",
""replicas"": 1,
""resources"": [
{
""limitsCpu"": ""1000m"",
""limitsMem"": ""1000Mi"",
""name"": ""autoscaler"",
""requestsCpu"": ""500m"",
""requestsMem"": ""500Mi""
}
]
}
",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
import com.pulumi.opentelekomcloud.inputs.GetIdentityProjectV3Args;
import com.pulumi.opentelekomcloud.inputs.GetCceAddonTemplateV3Args;
import com.pulumi.opentelekomcloud.CceClusterV3;
import com.pulumi.opentelekomcloud.CceClusterV3Args;
import com.pulumi.opentelekomcloud.CceAddonV3;
import com.pulumi.opentelekomcloud.CceAddonV3Args;
import com.pulumi.opentelekomcloud.inputs.CceAddonV3ValuesArgs;
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 vpcId = config.get("vpcId");
final var networkId = config.get("networkId");
final var regionName = config.get("regionName");
final var this = OpentelekomcloudFunctions.getIdentityProjectV3();
final var autoscalerCceAddonTemplateV3 = OpentelekomcloudFunctions.getCceAddonTemplateV3(GetCceAddonTemplateV3Args.builder()
.addonVersion(var_.autoscaler_version())
.addonName("autoscaler")
.build());
var cluster1 = new CceClusterV3("cluster1", CceClusterV3Args.builder()
.clusterType("VirtualMachine")
.flavorId("cce.s1.small")
.vpcId(vpcId)
.subnetId(networkId)
.clusterVersion("v1.25")
.containerNetworkType("overlay_l2")
.kubernetesSvcIpRange("10.247.0.0/16")
.build());
var autoscalerCceAddonV3 = new CceAddonV3("autoscalerCceAddonV3", CceAddonV3Args.builder()
.templateName(autoscalerCceAddonTemplateV3.applyValue(getCceAddonTemplateV3Result -> getCceAddonTemplateV3Result.addonName()))
.templateVersion(autoscalerCceAddonTemplateV3.applyValue(getCceAddonTemplateV3Result -> getCceAddonTemplateV3Result.addonVersion()))
.clusterId(cluster1.cceClusterV3Id())
.values(CceAddonV3ValuesArgs.builder()
.basic(Map.ofEntries(
Map.entry("cceEndpoint", String.format("https://cce.%s.otc.t-systems.com", regionName)),
Map.entry("ecsEndpoint", String.format("https://ecs.%s.otc.t-systems.com", regionName)),
Map.entry("region", regionName),
Map.entry("swr_addr", autoscalerCceAddonTemplateV3.applyValue(getCceAddonTemplateV3Result -> getCceAddonTemplateV3Result.swrAddr())),
Map.entry("swr_user", autoscalerCceAddonTemplateV3.applyValue(getCceAddonTemplateV3Result -> getCceAddonTemplateV3Result.swrUser()))
))
.custom(Map.ofEntries(
Map.entry("cluster_id", cluster1.cceClusterV3Id()),
Map.entry("coresTotal", 32000),
Map.entry("expander", "priority"),
Map.entry("logLevel", 4),
Map.entry("maxEmptyBulkDeleteFlag", 10),
Map.entry("maxNodeProvisionTime", 15),
Map.entry("maxNodesTotal", 1000),
Map.entry("memoryTotal", 128000),
Map.entry("scaleDownDelayAfterAdd", 10),
Map.entry("scaleDownDelayAfterDelete", 11),
Map.entry("scaleDownDelayAfterFailure", 3),
Map.entry("scaleDownEnabled", true),
Map.entry("scaleDownUnneededTime", 10),
Map.entry("scaleDownUtilizationThreshold", 0.5),
Map.entry("scaleUpCpuUtilizationThreshold", 1),
Map.entry("scaleUpMemUtilizationThreshold", 1),
Map.entry("scaleUpUnscheduledPodEnabled", true),
Map.entry("scaleUpUtilizationEnabled", true),
Map.entry("tenant_id", this_.id()),
Map.entry("unremovableNodeRecheckTimeout", 5)
))
.flavor("""
{
"description": "Has only one instance",
"name": "Single",
"replicas": 1,
"resources": [
{
"limitsCpu": "1000m",
"limitsMem": "1000Mi",
"name": "autoscaler",
"requestsCpu": "500m",
"requestsMem": "500Mi"
}
]
}
""")
.build())
.build());
}
}
configuration:
vpcId:
type: dynamic
networkId:
type: dynamic
regionName:
type: dynamic
resources:
cluster1:
type: opentelekomcloud:CceClusterV3
properties:
clusterType: VirtualMachine
flavorId: cce.s1.small
vpcId: ${vpcId}
subnetId: ${networkId}
clusterVersion: v1.25
containerNetworkType: overlay_l2
kubernetesSvcIpRange: 10.247.0.0/16
autoscalerCceAddonV3:
type: opentelekomcloud:CceAddonV3
properties:
templateName: ${autoscalerCceAddonTemplateV3.addonName}
templateVersion: ${autoscalerCceAddonTemplateV3.addonVersion}
clusterId: ${cluster1.cceClusterV3Id}
values:
basic:
cceEndpoint: https://cce.${regionName}.otc.t-systems.com
ecsEndpoint: https://ecs.${regionName}.otc.t-systems.com
region: ${regionName}
swr_addr: ${autoscalerCceAddonTemplateV3.swrAddr}
swr_user: ${autoscalerCceAddonTemplateV3.swrUser}
custom:
cluster_id: ${cluster1.cceClusterV3Id}
coresTotal: 32000
expander: priority
logLevel: 4
maxEmptyBulkDeleteFlag: 10
maxNodeProvisionTime: 15
maxNodesTotal: 1000
memoryTotal: 128000
scaleDownDelayAfterAdd: 10
scaleDownDelayAfterDelete: 11
scaleDownDelayAfterFailure: 3
scaleDownEnabled: true
scaleDownUnneededTime: 10
scaleDownUtilizationThreshold: 0.5
scaleUpCpuUtilizationThreshold: 1
scaleUpMemUtilizationThreshold: 1
scaleUpUnscheduledPodEnabled: true
scaleUpUtilizationEnabled: true
tenant_id: ${this.id}
unremovableNodeRecheckTimeout: 5
flavor: |2
{
"description": "Has only one instance",
"name": "Single",
"replicas": 1,
"resources": [
{
"limitsCpu": "1000m",
"limitsMem": "1000Mi",
"name": "autoscaler",
"requestsCpu": "500m",
"requestsMem": "500Mi"
}
]
}
variables:
this:
fn::invoke:
function: opentelekomcloud:getIdentityProjectV3
arguments: {}
autoscalerCceAddonTemplateV3:
fn::invoke:
function: opentelekomcloud:getCceAddonTemplateV3
arguments:
addonVersion: ${var.autoscaler_version}
addonName: autoscaler
CCE coredns addon with data sources with stub_domains and upstream_nameservers
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const vpcId = config.requireObject("vpcId");
const networkId = config.requireObject("networkId");
const cluster1 = new opentelekomcloud.CceClusterV3("cluster1", {
clusterType: "VirtualMachine",
flavorId: "cce.s1.medium",
vpcId: vpcId,
subnetId: networkId,
clusterVersion: "v1.27",
containerNetworkType: "overlay_l2",
kubernetesSvcIpRange: "10.247.0.0/16",
noAddons: true,
});
const coredns = new opentelekomcloud.CceAddonV3("coredns", {
templateName: "coredns",
templateVersion: "1.28.4",
clusterId: cluster1.cceClusterV3Id,
values: {
basic: {
swr_addr: "100.125.7.25:20202",
swr_user: "hwofficial",
},
custom: {
stub_domains: "{\"test\":[\"10.10.40.10\"], \"test2\":[\"10.10.40.20\"]}",
upstream_nameservers: "[\"8.8.8.8\",\"8.8.4.4\"]",
},
},
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
vpc_id = config.require_object("vpcId")
network_id = config.require_object("networkId")
cluster1 = opentelekomcloud.CceClusterV3("cluster1",
cluster_type="VirtualMachine",
flavor_id="cce.s1.medium",
vpc_id=vpc_id,
subnet_id=network_id,
cluster_version="v1.27",
container_network_type="overlay_l2",
kubernetes_svc_ip_range="10.247.0.0/16",
no_addons=True)
coredns = opentelekomcloud.CceAddonV3("coredns",
template_name="coredns",
template_version="1.28.4",
cluster_id=cluster1.cce_cluster_v3_id,
values={
"basic": {
"swr_addr": "100.125.7.25:20202",
"swr_user": "hwofficial",
},
"custom": {
"stub_domains": "{\"test\":[\"10.10.40.10\"], \"test2\":[\"10.10.40.20\"]}",
"upstream_nameservers": "[\"8.8.8.8\",\"8.8.4.4\"]",
},
})
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, "")
vpcId := cfg.RequireObject("vpcId")
networkId := cfg.RequireObject("networkId")
cluster1, err := opentelekomcloud.NewCceClusterV3(ctx, "cluster1", &opentelekomcloud.CceClusterV3Args{
ClusterType: pulumi.String("VirtualMachine"),
FlavorId: pulumi.String("cce.s1.medium"),
VpcId: pulumi.Any(vpcId),
SubnetId: pulumi.Any(networkId),
ClusterVersion: pulumi.String("v1.27"),
ContainerNetworkType: pulumi.String("overlay_l2"),
KubernetesSvcIpRange: pulumi.String("10.247.0.0/16"),
NoAddons: pulumi.Bool(true),
})
if err != nil {
return err
}
_, err = opentelekomcloud.NewCceAddonV3(ctx, "coredns", &opentelekomcloud.CceAddonV3Args{
TemplateName: pulumi.String("coredns"),
TemplateVersion: pulumi.String("1.28.4"),
ClusterId: cluster1.CceClusterV3Id,
Values: &opentelekomcloud.CceAddonV3ValuesArgs{
Basic: pulumi.StringMap{
"swr_addr": pulumi.String("100.125.7.25:20202"),
"swr_user": pulumi.String("hwofficial"),
},
Custom: pulumi.StringMap{
"stub_domains": pulumi.String("{\"test\":[\"10.10.40.10\"], \"test2\":[\"10.10.40.20\"]}"),
"upstream_nameservers": pulumi.String("[\"8.8.8.8\",\"8.8.4.4\"]"),
},
},
})
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 vpcId = config.RequireObject<dynamic>("vpcId");
var networkId = config.RequireObject<dynamic>("networkId");
var cluster1 = new Opentelekomcloud.CceClusterV3("cluster1", new()
{
ClusterType = "VirtualMachine",
FlavorId = "cce.s1.medium",
VpcId = vpcId,
SubnetId = networkId,
ClusterVersion = "v1.27",
ContainerNetworkType = "overlay_l2",
KubernetesSvcIpRange = "10.247.0.0/16",
NoAddons = true,
});
var coredns = new Opentelekomcloud.CceAddonV3("coredns", new()
{
TemplateName = "coredns",
TemplateVersion = "1.28.4",
ClusterId = cluster1.CceClusterV3Id,
Values = new Opentelekomcloud.Inputs.CceAddonV3ValuesArgs
{
Basic =
{
{ "swr_addr", "100.125.7.25:20202" },
{ "swr_user", "hwofficial" },
},
Custom =
{
{ "stub_domains", "{\"test\":[\"10.10.40.10\"], \"test2\":[\"10.10.40.20\"]}" },
{ "upstream_nameservers", "[\"8.8.8.8\",\"8.8.4.4\"]" },
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.CceClusterV3;
import com.pulumi.opentelekomcloud.CceClusterV3Args;
import com.pulumi.opentelekomcloud.CceAddonV3;
import com.pulumi.opentelekomcloud.CceAddonV3Args;
import com.pulumi.opentelekomcloud.inputs.CceAddonV3ValuesArgs;
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 vpcId = config.get("vpcId");
final var networkId = config.get("networkId");
var cluster1 = new CceClusterV3("cluster1", CceClusterV3Args.builder()
.clusterType("VirtualMachine")
.flavorId("cce.s1.medium")
.vpcId(vpcId)
.subnetId(networkId)
.clusterVersion("v1.27")
.containerNetworkType("overlay_l2")
.kubernetesSvcIpRange("10.247.0.0/16")
.noAddons(true)
.build());
var coredns = new CceAddonV3("coredns", CceAddonV3Args.builder()
.templateName("coredns")
.templateVersion("1.28.4")
.clusterId(cluster1.cceClusterV3Id())
.values(CceAddonV3ValuesArgs.builder()
.basic(Map.ofEntries(
Map.entry("swr_addr", "100.125.7.25:20202"),
Map.entry("swr_user", "hwofficial")
))
.custom(Map.ofEntries(
Map.entry("stub_domains", "{\"test\":[\"10.10.40.10\"], \"test2\":[\"10.10.40.20\"]}"),
Map.entry("upstream_nameservers", "[\"8.8.8.8\",\"8.8.4.4\"]")
))
.build())
.build());
}
}
configuration:
vpcId:
type: dynamic
networkId:
type: dynamic
resources:
cluster1:
type: opentelekomcloud:CceClusterV3
properties:
clusterType: VirtualMachine
flavorId: cce.s1.medium
vpcId: ${vpcId}
subnetId: ${networkId}
clusterVersion: v1.27
containerNetworkType: overlay_l2
kubernetesSvcIpRange: 10.247.0.0/16
noAddons: true
coredns:
type: opentelekomcloud:CceAddonV3
properties:
templateName: coredns
templateVersion: 1.28.4
clusterId: ${cluster1.cceClusterV3Id}
values:
basic:
swr_addr: 100.125.7.25:20202
swr_user: hwofficial
custom:
stub_domains: '{"test":["10.10.40.10"], "test2":["10.10.40.20"]}'
upstream_nameservers: '["8.8.8.8","8.8.4.4"]'
Create CceAddonV3 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CceAddonV3(name: string, args: CceAddonV3Args, opts?: CustomResourceOptions);
@overload
def CceAddonV3(resource_name: str,
args: CceAddonV3Args,
opts: Optional[ResourceOptions] = None)
@overload
def CceAddonV3(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
template_name: Optional[str] = None,
template_version: Optional[str] = None,
values: Optional[CceAddonV3ValuesArgs] = None,
cce_addon_v3_id: Optional[str] = None,
timeouts: Optional[CceAddonV3TimeoutsArgs] = None)
func NewCceAddonV3(ctx *Context, name string, args CceAddonV3Args, opts ...ResourceOption) (*CceAddonV3, error)
public CceAddonV3(string name, CceAddonV3Args args, CustomResourceOptions? opts = null)
public CceAddonV3(String name, CceAddonV3Args args)
public CceAddonV3(String name, CceAddonV3Args args, CustomResourceOptions options)
type: opentelekomcloud:CceAddonV3
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 CceAddonV3Args
- 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 CceAddonV3Args
- 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 CceAddonV3Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CceAddonV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CceAddonV3Args
- 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 cceAddonV3Resource = new Opentelekomcloud.CceAddonV3("cceAddonV3Resource", new()
{
ClusterId = "string",
TemplateName = "string",
TemplateVersion = "string",
Values = new Opentelekomcloud.Inputs.CceAddonV3ValuesArgs
{
Basic =
{
{ "string", "string" },
},
Custom =
{
{ "string", "string" },
},
Flavor = "string",
},
CceAddonV3Id = "string",
Timeouts = new Opentelekomcloud.Inputs.CceAddonV3TimeoutsArgs
{
Create = "string",
Delete = "string",
},
});
example, err := opentelekomcloud.NewCceAddonV3(ctx, "cceAddonV3Resource", &opentelekomcloud.CceAddonV3Args{
ClusterId: pulumi.String("string"),
TemplateName: pulumi.String("string"),
TemplateVersion: pulumi.String("string"),
Values: &opentelekomcloud.CceAddonV3ValuesArgs{
Basic: pulumi.StringMap{
"string": pulumi.String("string"),
},
Custom: pulumi.StringMap{
"string": pulumi.String("string"),
},
Flavor: pulumi.String("string"),
},
CceAddonV3Id: pulumi.String("string"),
Timeouts: &opentelekomcloud.CceAddonV3TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
})
var cceAddonV3Resource = new CceAddonV3("cceAddonV3Resource", CceAddonV3Args.builder()
.clusterId("string")
.templateName("string")
.templateVersion("string")
.values(CceAddonV3ValuesArgs.builder()
.basic(Map.of("string", "string"))
.custom(Map.of("string", "string"))
.flavor("string")
.build())
.cceAddonV3Id("string")
.timeouts(CceAddonV3TimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.build());
cce_addon_v3_resource = opentelekomcloud.CceAddonV3("cceAddonV3Resource",
cluster_id="string",
template_name="string",
template_version="string",
values={
"basic": {
"string": "string",
},
"custom": {
"string": "string",
},
"flavor": "string",
},
cce_addon_v3_id="string",
timeouts={
"create": "string",
"delete": "string",
})
const cceAddonV3Resource = new opentelekomcloud.CceAddonV3("cceAddonV3Resource", {
clusterId: "string",
templateName: "string",
templateVersion: "string",
values: {
basic: {
string: "string",
},
custom: {
string: "string",
},
flavor: "string",
},
cceAddonV3Id: "string",
timeouts: {
create: "string",
"delete": "string",
},
});
type: opentelekomcloud:CceAddonV3
properties:
cceAddonV3Id: string
clusterId: string
templateName: string
templateVersion: string
timeouts:
create: string
delete: string
values:
basic:
string: string
custom:
string: string
flavor: string
CceAddonV3 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 CceAddonV3 resource accepts the following input properties:
- Cluster
Id string - ID of cluster to install the add-on on.
- Template
Name string - Name of the add-on template to be installed, for example,
coredns
. - Template
Version string - Version number of the add-on to be installed or upgraded, for example,
v1.0.0
. - Values
Cce
Addon V3Values - Parameters of the template to be installed or upgraded.
- Cce
Addon stringV3Id - Timeouts
Cce
Addon V3Timeouts
- Cluster
Id string - ID of cluster to install the add-on on.
- Template
Name string - Name of the add-on template to be installed, for example,
coredns
. - Template
Version string - Version number of the add-on to be installed or upgraded, for example,
v1.0.0
. - Values
Cce
Addon V3Values Args - Parameters of the template to be installed or upgraded.
- Cce
Addon stringV3Id - Timeouts
Cce
Addon V3Timeouts Args
- cluster
Id String - ID of cluster to install the add-on on.
- template
Name String - Name of the add-on template to be installed, for example,
coredns
. - template
Version String - Version number of the add-on to be installed or upgraded, for example,
v1.0.0
. - values
Cce
Addon V3Values - Parameters of the template to be installed or upgraded.
- cce
Addon StringV3Id - timeouts
Cce
Addon V3Timeouts
- cluster
Id string - ID of cluster to install the add-on on.
- template
Name string - Name of the add-on template to be installed, for example,
coredns
. - template
Version string - Version number of the add-on to be installed or upgraded, for example,
v1.0.0
. - values
Cce
Addon V3Values - Parameters of the template to be installed or upgraded.
- cce
Addon stringV3Id - timeouts
Cce
Addon V3Timeouts
- cluster_
id str - ID of cluster to install the add-on on.
- template_
name str - Name of the add-on template to be installed, for example,
coredns
. - template_
version str - Version number of the add-on to be installed or upgraded, for example,
v1.0.0
. - values
Cce
Addon V3Values Args - Parameters of the template to be installed or upgraded.
- cce_
addon_ strv3_ id - timeouts
Cce
Addon V3Timeouts Args
- cluster
Id String - ID of cluster to install the add-on on.
- template
Name String - Name of the add-on template to be installed, for example,
coredns
. - template
Version String - Version number of the add-on to be installed or upgraded, for example,
v1.0.0
. - values Property Map
- Parameters of the template to be installed or upgraded.
- cce
Addon StringV3Id - timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the CceAddonV3 resource produces the following output properties:
- Description string
- Installed add-on description
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Installed add-on name.
- Description string
- Installed add-on description
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Installed add-on name.
- description String
- Installed add-on description
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Installed add-on name.
- description string
- Installed add-on description
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Installed add-on name.
- description str
- Installed add-on description
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Installed add-on name.
- description String
- Installed add-on description
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Installed add-on name.
Look up Existing CceAddonV3 Resource
Get an existing CceAddonV3 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?: CceAddonV3State, opts?: CustomResourceOptions): CceAddonV3
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cce_addon_v3_id: Optional[str] = None,
cluster_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
template_name: Optional[str] = None,
template_version: Optional[str] = None,
timeouts: Optional[CceAddonV3TimeoutsArgs] = None,
values: Optional[CceAddonV3ValuesArgs] = None) -> CceAddonV3
func GetCceAddonV3(ctx *Context, name string, id IDInput, state *CceAddonV3State, opts ...ResourceOption) (*CceAddonV3, error)
public static CceAddonV3 Get(string name, Input<string> id, CceAddonV3State? state, CustomResourceOptions? opts = null)
public static CceAddonV3 get(String name, Output<String> id, CceAddonV3State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:CceAddonV3 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
Addon stringV3Id - Cluster
Id string - ID of cluster to install the add-on on.
- Description string
- Installed add-on description
- Name string
- Installed add-on name.
- Template
Name string - Name of the add-on template to be installed, for example,
coredns
. - Template
Version string - Version number of the add-on to be installed or upgraded, for example,
v1.0.0
. - Timeouts
Cce
Addon V3Timeouts - Values
Cce
Addon V3Values - Parameters of the template to be installed or upgraded.
- Cce
Addon stringV3Id - Cluster
Id string - ID of cluster to install the add-on on.
- Description string
- Installed add-on description
- Name string
- Installed add-on name.
- Template
Name string - Name of the add-on template to be installed, for example,
coredns
. - Template
Version string - Version number of the add-on to be installed or upgraded, for example,
v1.0.0
. - Timeouts
Cce
Addon V3Timeouts Args - Values
Cce
Addon V3Values Args - Parameters of the template to be installed or upgraded.
- cce
Addon StringV3Id - cluster
Id String - ID of cluster to install the add-on on.
- description String
- Installed add-on description
- name String
- Installed add-on name.
- template
Name String - Name of the add-on template to be installed, for example,
coredns
. - template
Version String - Version number of the add-on to be installed or upgraded, for example,
v1.0.0
. - timeouts
Cce
Addon V3Timeouts - values
Cce
Addon V3Values - Parameters of the template to be installed or upgraded.
- cce
Addon stringV3Id - cluster
Id string - ID of cluster to install the add-on on.
- description string
- Installed add-on description
- name string
- Installed add-on name.
- template
Name string - Name of the add-on template to be installed, for example,
coredns
. - template
Version string - Version number of the add-on to be installed or upgraded, for example,
v1.0.0
. - timeouts
Cce
Addon V3Timeouts - values
Cce
Addon V3Values - Parameters of the template to be installed or upgraded.
- cce_
addon_ strv3_ id - cluster_
id str - ID of cluster to install the add-on on.
- description str
- Installed add-on description
- name str
- Installed add-on name.
- template_
name str - Name of the add-on template to be installed, for example,
coredns
. - template_
version str - Version number of the add-on to be installed or upgraded, for example,
v1.0.0
. - timeouts
Cce
Addon V3Timeouts Args - values
Cce
Addon V3Values Args - Parameters of the template to be installed or upgraded.
- cce
Addon StringV3Id - cluster
Id String - ID of cluster to install the add-on on.
- description String
- Installed add-on description
- name String
- Installed add-on name.
- template
Name String - Name of the add-on template to be installed, for example,
coredns
. - template
Version String - Version number of the add-on to be installed or upgraded, for example,
v1.0.0
. - timeouts Property Map
- values Property Map
- Parameters of the template to be installed or upgraded.
Supporting Types
CceAddonV3Timeouts, CceAddonV3TimeoutsArgs
CceAddonV3Values, CceAddonV3ValuesArgs
- Basic Dictionary<string, string>
- Basic add-on information.
- Custom Dictionary<string, string>
- Custom parameters of the add-on.
- Flavor string
Specifies the json string vary depending on the add-on.
Arguments which can be passed to the
basic
andcustom
addon parameters depends on the addon type and version. For more detailed description of addons for k8s versionv1.17.9
see addons description. For more detailed description of addons for k8s versionv1.19.8
see addons description. For more detailed description of addons for k8s versionv1.25
see addons description. For more detailed description of addons for k8s versionv1.28
see addons description.
- Basic map[string]string
- Basic add-on information.
- Custom map[string]string
- Custom parameters of the add-on.
- Flavor string
Specifies the json string vary depending on the add-on.
Arguments which can be passed to the
basic
andcustom
addon parameters depends on the addon type and version. For more detailed description of addons for k8s versionv1.17.9
see addons description. For more detailed description of addons for k8s versionv1.19.8
see addons description. For more detailed description of addons for k8s versionv1.25
see addons description. For more detailed description of addons for k8s versionv1.28
see addons description.
- basic Map<String,String>
- Basic add-on information.
- custom Map<String,String>
- Custom parameters of the add-on.
- flavor String
Specifies the json string vary depending on the add-on.
Arguments which can be passed to the
basic
andcustom
addon parameters depends on the addon type and version. For more detailed description of addons for k8s versionv1.17.9
see addons description. For more detailed description of addons for k8s versionv1.19.8
see addons description. For more detailed description of addons for k8s versionv1.25
see addons description. For more detailed description of addons for k8s versionv1.28
see addons description.
- basic {[key: string]: string}
- Basic add-on information.
- custom {[key: string]: string}
- Custom parameters of the add-on.
- flavor string
Specifies the json string vary depending on the add-on.
Arguments which can be passed to the
basic
andcustom
addon parameters depends on the addon type and version. For more detailed description of addons for k8s versionv1.17.9
see addons description. For more detailed description of addons for k8s versionv1.19.8
see addons description. For more detailed description of addons for k8s versionv1.25
see addons description. For more detailed description of addons for k8s versionv1.28
see addons description.
- basic Mapping[str, str]
- Basic add-on information.
- custom Mapping[str, str]
- Custom parameters of the add-on.
- flavor str
Specifies the json string vary depending on the add-on.
Arguments which can be passed to the
basic
andcustom
addon parameters depends on the addon type and version. For more detailed description of addons for k8s versionv1.17.9
see addons description. For more detailed description of addons for k8s versionv1.19.8
see addons description. For more detailed description of addons for k8s versionv1.25
see addons description. For more detailed description of addons for k8s versionv1.28
see addons description.
- basic Map<String>
- Basic add-on information.
- custom Map<String>
- Custom parameters of the add-on.
- flavor String
Specifies the json string vary depending on the add-on.
Arguments which can be passed to the
basic
andcustom
addon parameters depends on the addon type and version. For more detailed description of addons for k8s versionv1.17.9
see addons description. For more detailed description of addons for k8s versionv1.19.8
see addons description. For more detailed description of addons for k8s versionv1.25
see addons description. For more detailed description of addons for k8s versionv1.28
see addons description.
Import
CCE addons can be imported using the cluster_id/addon_id
, e.g.
$ pulumi import opentelekomcloud:index/cceAddonV3:CceAddonV3 autoscaler c1881895-cdcb-4d23-96cb-032e6a3ee667/ea257959-eeb1-4c10-8d33-26f0409a755d
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.