1. Packages
  2. Volcengine
  3. API Docs
  4. vke
  5. Addon
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

volcengine.vke.Addon

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

    Provides a resource to manage vke addon

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Volcengine.Vke.Addon("foo", new()
        {
            ClusterId = "cccctv1vqtofp49d96ujg",
            Config = "{\"xxx\":\"true\"}",
            DeployMode = "Unmanaged",
            DeployNodeType = "Node",
            Version = "v0.1.3",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vke"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vke.NewAddon(ctx, "foo", &vke.AddonArgs{
    			ClusterId:      pulumi.String("cccctv1vqtofp49d96ujg"),
    			Config:         pulumi.String("{\"xxx\":\"true\"}"),
    			DeployMode:     pulumi.String("Unmanaged"),
    			DeployNodeType: pulumi.String("Node"),
    			Version:        pulumi.String("v0.1.3"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.vke.Addon;
    import com.pulumi.volcengine.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 foo = new Addon("foo", AddonArgs.builder()        
                .clusterId("cccctv1vqtofp49d96ujg")
                .config("{\"xxx\":\"true\"}")
                .deployMode("Unmanaged")
                .deployNodeType("Node")
                .version("v0.1.3")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.vke.Addon("foo",
        cluster_id="cccctv1vqtofp49d96ujg",
        config="{\"xxx\":\"true\"}",
        deploy_mode="Unmanaged",
        deploy_node_type="Node",
        version="v0.1.3")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const foo = new volcengine.vke.Addon("foo", {
        clusterId: "cccctv1vqtofp49d96ujg",
        config: "{\"xxx\":\"true\"}",
        deployMode: "Unmanaged",
        deployNodeType: "Node",
        version: "v0.1.3",
    });
    
    resources:
      foo:
        type: volcengine:vke:Addon
        properties:
          clusterId: cccctv1vqtofp49d96ujg
          config: '{"xxx":"true"}'
          deployMode: Unmanaged
          deployNodeType: Node
          version: v0.1.3
    

    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: AddonArgs,
              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,
              version: Optional[str] = None)
    func NewAddon(ctx *Context, name string, args AddonArgs, opts ...ResourceOption) (*Addon, error)
    public Addon(string name, AddonArgs args, CustomResourceOptions? opts = null)
    public Addon(String name, AddonArgs args)
    public Addon(String name, AddonArgs args, CustomResourceOptions options)
    
    type: volcengine: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 Volcengine.Vke.Addon("addonResource", new()
    {
        ClusterId = "string",
        Config = "string",
        DeployMode = "string",
        DeployNodeType = "string",
        Name = "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"),
    	Version:        pulumi.String("string"),
    })
    
    var addonResource = new Addon("addonResource", AddonArgs.builder()
        .clusterId("string")
        .config("string")
        .deployMode("string")
        .deployNodeType("string")
        .name("string")
        .version("string")
        .build());
    
    addon_resource = volcengine.vke.Addon("addonResource",
        cluster_id="string",
        config="string",
        deploy_mode="string",
        deploy_node_type="string",
        name="string",
        version="string")
    
    const addonResource = new volcengine.vke.Addon("addonResource", {
        clusterId: "string",
        config: "string",
        deployMode: "string",
        deployNodeType: "string",
        name: "string",
        version: "string",
    });
    
    type: volcengine:vke:Addon
    properties:
        clusterId: string
        config: string
        deployMode: string
        deployNodeType: string
        name: 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

    The Addon resource accepts the following input properties:

    ClusterId string
    The cluster id of the addon.
    Config string
    The config info of addon. Please notice that ingress-nginx component prohibits updating config, can only works on the web console.
    DeployMode string
    The deploy mode.
    DeployNodeType string
    The deploy node type.
    Name string
    The name of the addon.
    Version string
    The version info of the cluster.
    ClusterId string
    The cluster id of the addon.
    Config string
    The config info of addon. Please notice that ingress-nginx component prohibits updating config, can only works on the web console.
    DeployMode string
    The deploy mode.
    DeployNodeType string
    The deploy node type.
    Name string
    The name of the addon.
    Version string
    The version info of the cluster.
    clusterId String
    The cluster id of the addon.
    config String
    The config info of addon. Please notice that ingress-nginx component prohibits updating config, can only works on the web console.
    deployMode String
    The deploy mode.
    deployNodeType String
    The deploy node type.
    name String
    The name of the addon.
    version String
    The version info of the cluster.
    clusterId string
    The cluster id of the addon.
    config string
    The config info of addon. Please notice that ingress-nginx component prohibits updating config, can only works on the web console.
    deployMode string
    The deploy mode.
    deployNodeType string
    The deploy node type.
    name string
    The name of the addon.
    version string
    The version info of the cluster.
    cluster_id str
    The cluster id of the addon.
    config str
    The config info of addon. Please notice that ingress-nginx component prohibits updating config, can only works on the web console.
    deploy_mode str
    The deploy mode.
    deploy_node_type str
    The deploy node type.
    name str
    The name of the addon.
    version str
    The version info of the cluster.
    clusterId String
    The cluster id of the addon.
    config String
    The config info of addon. Please notice that ingress-nginx component prohibits updating config, can only works on the web console.
    deployMode String
    The deploy mode.
    deployNodeType String
    The deploy node type.
    name String
    The name of the addon.
    version String
    The version info of the cluster.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing 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,
            deploy_mode: Optional[str] = None,
            deploy_node_type: Optional[str] = None,
            name: 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)
    Resource lookup is not supported in YAML
    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
    The cluster id of the addon.
    Config string
    The config info of addon. Please notice that ingress-nginx component prohibits updating config, can only works on the web console.
    DeployMode string
    The deploy mode.
    DeployNodeType string
    The deploy node type.
    Name string
    The name of the addon.
    Version string
    The version info of the cluster.
    ClusterId string
    The cluster id of the addon.
    Config string
    The config info of addon. Please notice that ingress-nginx component prohibits updating config, can only works on the web console.
    DeployMode string
    The deploy mode.
    DeployNodeType string
    The deploy node type.
    Name string
    The name of the addon.
    Version string
    The version info of the cluster.
    clusterId String
    The cluster id of the addon.
    config String
    The config info of addon. Please notice that ingress-nginx component prohibits updating config, can only works on the web console.
    deployMode String
    The deploy mode.
    deployNodeType String
    The deploy node type.
    name String
    The name of the addon.
    version String
    The version info of the cluster.
    clusterId string
    The cluster id of the addon.
    config string
    The config info of addon. Please notice that ingress-nginx component prohibits updating config, can only works on the web console.
    deployMode string
    The deploy mode.
    deployNodeType string
    The deploy node type.
    name string
    The name of the addon.
    version string
    The version info of the cluster.
    cluster_id str
    The cluster id of the addon.
    config str
    The config info of addon. Please notice that ingress-nginx component prohibits updating config, can only works on the web console.
    deploy_mode str
    The deploy mode.
    deploy_node_type str
    The deploy node type.
    name str
    The name of the addon.
    version str
    The version info of the cluster.
    clusterId String
    The cluster id of the addon.
    config String
    The config info of addon. Please notice that ingress-nginx component prohibits updating config, can only works on the web console.
    deployMode String
    The deploy mode.
    deployNodeType String
    The deploy node type.
    name String
    The name of the addon.
    version String
    The version info of the cluster.

    Import

    VkeAddon can be imported using the clusterId:Name, e.g.

     $ pulumi import volcengine:vke/addon:Addon default cc9l74mvqtofjnoj5****:nginx-ingress
    

    Notice Some kind of VKEAddon can not be removed from volcengine, and it will make a forbidden error when try to destroy. If you want to remove it from terraform state, please use command $ terraform state rm volcengine_vke_addon.${name}

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

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine