1. Packages
  2. Bytepluscc Provider
  3. API Docs
  4. vke
  5. Addon
bytepluscc v0.0.11 published on Wednesday, Jan 21, 2026 by Byteplus
bytepluscc logo
bytepluscc v0.0.11 published on Wednesday, Jan 21, 2026 by Byteplus

    集群中支持安装多种类型的组件,包括 网络、存储、监控、DNS、安全、镜像、GPU 等,满足您多种业务场景需求。您可按需部署、升级或卸载组件。

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
    
    const vKEAddonDemo = new bytepluscc.vke.Addon("VKEAddonDemo", {
        clusterId: "cd35mtki***",
        deployMode: "Unmanaged",
        deployNodeType: "Node",
        name: "csi-nas",
        version: "v1.2.7",
        config: "{\"CsiNasDriver\":{\"Resources\":{\"Requests\":{\"Cpu\":\"0.01\",\"Memory\":\"20Mi\"},\"Limits\":{\"Cpu\":\"0.9\",\"Memory\":\"1900Mi\"}}},\"CsiProvisioner\":{\"Resources\":{\"Requests\":{\"Cpu\":\"0.01\",\"Memory\":\"20Mi\"},\"Limits\":{\"Cpu\":\"0.5\",\"Memory\":\"4Gi\"}}},\"LivenessProbe\":{\"Resources\":{\"Requests\":{\"Cpu\":\"0.01\",\"Memory\":\"20Mi\"},\"Limits\":{\"Cpu\":\"0.1\",\"Memory\":\"100Mi\"}}}}",
    });
    
    import pulumi
    import pulumi_bytepluscc as bytepluscc
    
    v_ke_addon_demo = bytepluscc.vke.Addon("VKEAddonDemo",
        cluster_id="cd35mtki***",
        deploy_mode="Unmanaged",
        deploy_node_type="Node",
        name="csi-nas",
        version="v1.2.7",
        config="{\"CsiNasDriver\":{\"Resources\":{\"Requests\":{\"Cpu\":\"0.01\",\"Memory\":\"20Mi\"},\"Limits\":{\"Cpu\":\"0.9\",\"Memory\":\"1900Mi\"}}},\"CsiProvisioner\":{\"Resources\":{\"Requests\":{\"Cpu\":\"0.01\",\"Memory\":\"20Mi\"},\"Limits\":{\"Cpu\":\"0.5\",\"Memory\":\"4Gi\"}}},\"LivenessProbe\":{\"Resources\":{\"Requests\":{\"Cpu\":\"0.01\",\"Memory\":\"20Mi\"},\"Limits\":{\"Cpu\":\"0.1\",\"Memory\":\"100Mi\"}}}}")
    
    package main
    
    import (
    	"github.com/byteplus-sdk/pulumi-bytepluscc/sdk/go/bytepluscc/vke"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vke.NewAddon(ctx, "VKEAddonDemo", &vke.AddonArgs{
    			ClusterId:      pulumi.String("cd35mtki***"),
    			DeployMode:     pulumi.String("Unmanaged"),
    			DeployNodeType: pulumi.String("Node"),
    			Name:           pulumi.String("csi-nas"),
    			Version:        pulumi.String("v1.2.7"),
    			Config:         pulumi.String("{\"CsiNasDriver\":{\"Resources\":{\"Requests\":{\"Cpu\":\"0.01\",\"Memory\":\"20Mi\"},\"Limits\":{\"Cpu\":\"0.9\",\"Memory\":\"1900Mi\"}}},\"CsiProvisioner\":{\"Resources\":{\"Requests\":{\"Cpu\":\"0.01\",\"Memory\":\"20Mi\"},\"Limits\":{\"Cpu\":\"0.5\",\"Memory\":\"4Gi\"}}},\"LivenessProbe\":{\"Resources\":{\"Requests\":{\"Cpu\":\"0.01\",\"Memory\":\"20Mi\"},\"Limits\":{\"Cpu\":\"0.1\",\"Memory\":\"100Mi\"}}}}"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Bytepluscc = Byteplus.Pulumi.Bytepluscc;
    
    return await Deployment.RunAsync(() => 
    {
        var vKEAddonDemo = new Bytepluscc.Vke.Addon("VKEAddonDemo", new()
        {
            ClusterId = "cd35mtki***",
            DeployMode = "Unmanaged",
            DeployNodeType = "Node",
            Name = "csi-nas",
            Version = "v1.2.7",
            Config = "{\"CsiNasDriver\":{\"Resources\":{\"Requests\":{\"Cpu\":\"0.01\",\"Memory\":\"20Mi\"},\"Limits\":{\"Cpu\":\"0.9\",\"Memory\":\"1900Mi\"}}},\"CsiProvisioner\":{\"Resources\":{\"Requests\":{\"Cpu\":\"0.01\",\"Memory\":\"20Mi\"},\"Limits\":{\"Cpu\":\"0.5\",\"Memory\":\"4Gi\"}}},\"LivenessProbe\":{\"Resources\":{\"Requests\":{\"Cpu\":\"0.01\",\"Memory\":\"20Mi\"},\"Limits\":{\"Cpu\":\"0.1\",\"Memory\":\"100Mi\"}}}}",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.byteplus.bytepluscc.vke.Addon;
    import com.byteplus.bytepluscc.vke.AddonArgs;
    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) {
            var vKEAddonDemo = new Addon("vKEAddonDemo", AddonArgs.builder()
                .clusterId("cd35mtki***")
                .deployMode("Unmanaged")
                .deployNodeType("Node")
                .name("csi-nas")
                .version("v1.2.7")
                .config("{\"CsiNasDriver\":{\"Resources\":{\"Requests\":{\"Cpu\":\"0.01\",\"Memory\":\"20Mi\"},\"Limits\":{\"Cpu\":\"0.9\",\"Memory\":\"1900Mi\"}}},\"CsiProvisioner\":{\"Resources\":{\"Requests\":{\"Cpu\":\"0.01\",\"Memory\":\"20Mi\"},\"Limits\":{\"Cpu\":\"0.5\",\"Memory\":\"4Gi\"}}},\"LivenessProbe\":{\"Resources\":{\"Requests\":{\"Cpu\":\"0.01\",\"Memory\":\"20Mi\"},\"Limits\":{\"Cpu\":\"0.1\",\"Memory\":\"100Mi\"}}}}")
                .build());
    
        }
    }
    
    resources:
      vKEAddonDemo:
        type: bytepluscc:vke:Addon
        name: VKEAddonDemo
        properties:
          clusterId: cd35mtki***
          deployMode: Unmanaged
          deployNodeType: Node
          name: csi-nas
          version: v1.2.7
          config: '{"CsiNasDriver":{"Resources":{"Requests":{"Cpu":"0.01","Memory":"20Mi"},"Limits":{"Cpu":"0.9","Memory":"1900Mi"}}},"CsiProvisioner":{"Resources":{"Requests":{"Cpu":"0.01","Memory":"20Mi"},"Limits":{"Cpu":"0.5","Memory":"4Gi"}}},"LivenessProbe":{"Resources":{"Requests":{"Cpu":"0.01","Memory":"20Mi"},"Limits":{"Cpu":"0.1","Memory":"100Mi"}}}}'
    

    Create Addon Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Addon(name: string, args?: AddonArgs, opts?: CustomResourceOptions);
    @overload
    def Addon(resource_name: str,
              args: Optional[AddonArgs] = None,
              opts: Optional[ResourceOptions] = None)
    
    @overload
    def Addon(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              cluster_id: Optional[str] = None,
              config: Optional[str] = None,
              deploy_mode: Optional[str] = None,
              deploy_node_type: Optional[str] = None,
              name: Optional[str] = None,
              status: Optional[AddonStatusArgs] = None,
              version: Optional[str] = None)
    func NewAddon(ctx *Context, name string, args *AddonArgs, opts ...ResourceOption) (*Addon, error)
    public Addon(string name, AddonArgs? args = null, CustomResourceOptions? opts = null)
    public Addon(String name, AddonArgs args)
    public Addon(String name, AddonArgs args, CustomResourceOptions options)
    
    type: bytepluscc:vke:Addon
    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 AddonArgs
    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 AddonArgs
    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 AddonArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AddonArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AddonArgs
    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 addonResource = new Bytepluscc.Vke.Addon("addonResource", new()
    {
        ClusterId = "string",
        Config = "string",
        DeployMode = "string",
        DeployNodeType = "string",
        Name = "string",
        Status = new Bytepluscc.Vke.Inputs.AddonStatusArgs
        {
            Conditions = new[]
            {
                null,
            },
            Phase = "string",
        },
        Version = "string",
    });
    
    example, err := vke.NewAddon(ctx, "addonResource", &vke.AddonArgs{
    	ClusterId:      pulumi.String("string"),
    	Config:         pulumi.String("string"),
    	DeployMode:     pulumi.String("string"),
    	DeployNodeType: pulumi.String("string"),
    	Name:           pulumi.String("string"),
    	Status: &vke.AddonStatusArgs{
    		Conditions: vke.AddonStatusConditionArray{
    			&vke.AddonStatusConditionArgs{},
    		},
    		Phase: pulumi.String("string"),
    	},
    	Version: pulumi.String("string"),
    })
    
    var addonResource = new Addon("addonResource", AddonArgs.builder()
        .clusterId("string")
        .config("string")
        .deployMode("string")
        .deployNodeType("string")
        .name("string")
        .status(AddonStatusArgs.builder()
            .conditions(AddonStatusConditionArgs.builder()
                .build())
            .phase("string")
            .build())
        .version("string")
        .build());
    
    addon_resource = bytepluscc.vke.Addon("addonResource",
        cluster_id="string",
        config="string",
        deploy_mode="string",
        deploy_node_type="string",
        name="string",
        status={
            "conditions": [{}],
            "phase": "string",
        },
        version="string")
    
    const addonResource = new bytepluscc.vke.Addon("addonResource", {
        clusterId: "string",
        config: "string",
        deployMode: "string",
        deployNodeType: "string",
        name: "string",
        status: {
            conditions: [{}],
            phase: "string",
        },
        version: "string",
    });
    
    type: bytepluscc:vke:Addon
    properties:
        clusterId: string
        config: string
        deployMode: string
        deployNodeType: string
        name: string
        status:
            conditions:
                - {}
            phase: string
        version: string
    

    Addon 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 Addon resource accepts the following input properties:

    ClusterId string
    组件所在集群 ID。
    Config string
    组件配置。
    DeployMode string
    组件部署模式,取值:Unmanaged:非托管模式部署。Managed:托管模式部署。
    DeployNodeType string
    部署节点的类型。仅DeployModes=Unmanaged时,才需要指定该参数。取值:Node:以节点方式部署。VirtualNode:以虚拟节点方式部署。
    Name string
    组件名称。
    Status Byteplus.AddonStatus
    组件状态。
    Version string
    组件版本。
    ClusterId string
    组件所在集群 ID。
    Config string
    组件配置。
    DeployMode string
    组件部署模式,取值:Unmanaged:非托管模式部署。Managed:托管模式部署。
    DeployNodeType string
    部署节点的类型。仅DeployModes=Unmanaged时,才需要指定该参数。取值:Node:以节点方式部署。VirtualNode:以虚拟节点方式部署。
    Name string
    组件名称。
    Status AddonStatusArgs
    组件状态。
    Version string
    组件版本。
    clusterId String
    组件所在集群 ID。
    config String
    组件配置。
    deployMode String
    组件部署模式,取值:Unmanaged:非托管模式部署。Managed:托管模式部署。
    deployNodeType String
    部署节点的类型。仅DeployModes=Unmanaged时,才需要指定该参数。取值:Node:以节点方式部署。VirtualNode:以虚拟节点方式部署。
    name String
    组件名称。
    status AddonStatus
    组件状态。
    version String
    组件版本。
    clusterId string
    组件所在集群 ID。
    config string
    组件配置。
    deployMode string
    组件部署模式,取值:Unmanaged:非托管模式部署。Managed:托管模式部署。
    deployNodeType string
    部署节点的类型。仅DeployModes=Unmanaged时,才需要指定该参数。取值:Node:以节点方式部署。VirtualNode:以虚拟节点方式部署。
    name string
    组件名称。
    status AddonStatus
    组件状态。
    version string
    组件版本。
    cluster_id str
    组件所在集群 ID。
    config str
    组件配置。
    deploy_mode str
    组件部署模式,取值:Unmanaged:非托管模式部署。Managed:托管模式部署。
    deploy_node_type str
    部署节点的类型。仅DeployModes=Unmanaged时,才需要指定该参数。取值:Node:以节点方式部署。VirtualNode:以虚拟节点方式部署。
    name str
    组件名称。
    status AddonStatusArgs
    组件状态。
    version str
    组件版本。
    clusterId String
    组件所在集群 ID。
    config String
    组件配置。
    deployMode String
    组件部署模式,取值:Unmanaged:非托管模式部署。Managed:托管模式部署。
    deployNodeType String
    部署节点的类型。仅DeployModes=Unmanaged时,才需要指定该参数。取值:Node:以节点方式部署。VirtualNode:以虚拟节点方式部署。
    name String
    组件名称。
    status Property Map
    组件状态。
    version String
    组件版本。

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Addon resource produces the following output properties:

    CreatedTime string
    安装组件的时间。标准 RFC3339 格式的 UTC+0 时间。
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedTime string
    更新组件的时间。标准 RFC3339 格式的 UTC+0 时间。
    CreatedTime string
    安装组件的时间。标准 RFC3339 格式的 UTC+0 时间。
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedTime string
    更新组件的时间。标准 RFC3339 格式的 UTC+0 时间。
    createdTime String
    安装组件的时间。标准 RFC3339 格式的 UTC+0 时间。
    id String
    The provider-assigned unique ID for this managed resource.
    updatedTime String
    更新组件的时间。标准 RFC3339 格式的 UTC+0 时间。
    createdTime string
    安装组件的时间。标准 RFC3339 格式的 UTC+0 时间。
    id string
    The provider-assigned unique ID for this managed resource.
    updatedTime string
    更新组件的时间。标准 RFC3339 格式的 UTC+0 时间。
    created_time str
    安装组件的时间。标准 RFC3339 格式的 UTC+0 时间。
    id str
    The provider-assigned unique ID for this managed resource.
    updated_time str
    更新组件的时间。标准 RFC3339 格式的 UTC+0 时间。
    createdTime String
    安装组件的时间。标准 RFC3339 格式的 UTC+0 时间。
    id String
    The provider-assigned unique ID for this managed resource.
    updatedTime String
    更新组件的时间。标准 RFC3339 格式的 UTC+0 时间。

    Look up Existing Addon Resource

    Get an existing Addon 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?: AddonState, opts?: CustomResourceOptions): Addon
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cluster_id: Optional[str] = None,
            config: Optional[str] = None,
            created_time: Optional[str] = None,
            deploy_mode: Optional[str] = None,
            deploy_node_type: Optional[str] = None,
            name: Optional[str] = None,
            status: Optional[AddonStatusArgs] = None,
            updated_time: Optional[str] = None,
            version: Optional[str] = None) -> Addon
    func GetAddon(ctx *Context, name string, id IDInput, state *AddonState, opts ...ResourceOption) (*Addon, error)
    public static Addon Get(string name, Input<string> id, AddonState? state, CustomResourceOptions? opts = null)
    public static Addon get(String name, Output<String> id, AddonState state, CustomResourceOptions options)
    resources:  _:    type: bytepluscc:vke:Addon    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.
    The following state arguments are supported:
    ClusterId string
    组件所在集群 ID。
    Config string
    组件配置。
    CreatedTime string
    安装组件的时间。标准 RFC3339 格式的 UTC+0 时间。
    DeployMode string
    组件部署模式,取值:Unmanaged:非托管模式部署。Managed:托管模式部署。
    DeployNodeType string
    部署节点的类型。仅DeployModes=Unmanaged时,才需要指定该参数。取值:Node:以节点方式部署。VirtualNode:以虚拟节点方式部署。
    Name string
    组件名称。
    Status Byteplus.AddonStatus
    组件状态。
    UpdatedTime string
    更新组件的时间。标准 RFC3339 格式的 UTC+0 时间。
    Version string
    组件版本。
    ClusterId string
    组件所在集群 ID。
    Config string
    组件配置。
    CreatedTime string
    安装组件的时间。标准 RFC3339 格式的 UTC+0 时间。
    DeployMode string
    组件部署模式,取值:Unmanaged:非托管模式部署。Managed:托管模式部署。
    DeployNodeType string
    部署节点的类型。仅DeployModes=Unmanaged时,才需要指定该参数。取值:Node:以节点方式部署。VirtualNode:以虚拟节点方式部署。
    Name string
    组件名称。
    Status AddonStatusArgs
    组件状态。
    UpdatedTime string
    更新组件的时间。标准 RFC3339 格式的 UTC+0 时间。
    Version string
    组件版本。
    clusterId String
    组件所在集群 ID。
    config String
    组件配置。
    createdTime String
    安装组件的时间。标准 RFC3339 格式的 UTC+0 时间。
    deployMode String
    组件部署模式,取值:Unmanaged:非托管模式部署。Managed:托管模式部署。
    deployNodeType String
    部署节点的类型。仅DeployModes=Unmanaged时,才需要指定该参数。取值:Node:以节点方式部署。VirtualNode:以虚拟节点方式部署。
    name String
    组件名称。
    status AddonStatus
    组件状态。
    updatedTime String
    更新组件的时间。标准 RFC3339 格式的 UTC+0 时间。
    version String
    组件版本。
    clusterId string
    组件所在集群 ID。
    config string
    组件配置。
    createdTime string
    安装组件的时间。标准 RFC3339 格式的 UTC+0 时间。
    deployMode string
    组件部署模式,取值:Unmanaged:非托管模式部署。Managed:托管模式部署。
    deployNodeType string
    部署节点的类型。仅DeployModes=Unmanaged时,才需要指定该参数。取值:Node:以节点方式部署。VirtualNode:以虚拟节点方式部署。
    name string
    组件名称。
    status AddonStatus
    组件状态。
    updatedTime string
    更新组件的时间。标准 RFC3339 格式的 UTC+0 时间。
    version string
    组件版本。
    cluster_id str
    组件所在集群 ID。
    config str
    组件配置。
    created_time str
    安装组件的时间。标准 RFC3339 格式的 UTC+0 时间。
    deploy_mode str
    组件部署模式,取值:Unmanaged:非托管模式部署。Managed:托管模式部署。
    deploy_node_type str
    部署节点的类型。仅DeployModes=Unmanaged时,才需要指定该参数。取值:Node:以节点方式部署。VirtualNode:以虚拟节点方式部署。
    name str
    组件名称。
    status AddonStatusArgs
    组件状态。
    updated_time str
    更新组件的时间。标准 RFC3339 格式的 UTC+0 时间。
    version str
    组件版本。
    clusterId String
    组件所在集群 ID。
    config String
    组件配置。
    createdTime String
    安装组件的时间。标准 RFC3339 格式的 UTC+0 时间。
    deployMode String
    组件部署模式,取值:Unmanaged:非托管模式部署。Managed:托管模式部署。
    deployNodeType String
    部署节点的类型。仅DeployModes=Unmanaged时,才需要指定该参数。取值:Node:以节点方式部署。VirtualNode:以虚拟节点方式部署。
    name String
    组件名称。
    status Property Map
    组件状态。
    updatedTime String
    更新组件的时间。标准 RFC3339 格式的 UTC+0 时间。
    version String
    组件版本。

    Supporting Types

    AddonStatus, AddonStatusArgs

    Conditions List<Byteplus.AddonStatusCondition>
    Phase string
    组件的状态,参数值有:Running, Failed, Creating, Deleting, Updating
    Conditions []AddonStatusCondition
    Phase string
    组件的状态,参数值有:Running, Failed, Creating, Deleting, Updating
    conditions List<AddonStatusCondition>
    phase String
    组件的状态,参数值有:Running, Failed, Creating, Deleting, Updating
    conditions AddonStatusCondition[]
    phase string
    组件的状态,参数值有:Running, Failed, Creating, Deleting, Updating
    conditions Sequence[AddonStatusCondition]
    phase str
    组件的状态,参数值有:Running, Failed, Creating, Deleting, Updating
    conditions List<Property Map>
    phase String
    组件的状态,参数值有:Running, Failed, Creating, Deleting, Updating

    Import

    $ pulumi import bytepluscc:vke/addon:Addon example "cluster_id|name"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    bytepluscc byteplus-sdk/pulumi-bytepluscc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the bytepluscc Terraform Provider.
    bytepluscc logo
    bytepluscc v0.0.11 published on Wednesday, Jan 21, 2026 by Byteplus
      Meet Neo: Your AI Platform Teammate