1. Packages
  2. threefold
  3. API Docs
  4. provider
  5. Kubernetes
Threefold Grid v0.6.4 published on Tuesday, May 28, 2024 by Threefold

threefold.provider.Kubernetes

Explore with Pulumi AI

threefold logo
Threefold Grid v0.6.4 published on Tuesday, May 28, 2024 by Threefold

    Create Kubernetes Resource

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

    Constructor syntax

    new Kubernetes(name: string, args: KubernetesArgs, opts?: CustomResourceOptions);
    @overload
    def Kubernetes(resource_name: str,
                   args: KubernetesArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def Kubernetes(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   master: Optional[K8sNodeInputArgs] = None,
                   network_name: Optional[str] = None,
                   token: Optional[str] = None,
                   workers: Optional[Sequence[K8sNodeInputArgs]] = None,
                   solution_type: Optional[str] = None,
                   ssh_key: Optional[str] = None)
    func NewKubernetes(ctx *Context, name string, args KubernetesArgs, opts ...ResourceOption) (*Kubernetes, error)
    public Kubernetes(string name, KubernetesArgs args, CustomResourceOptions? opts = null)
    public Kubernetes(String name, KubernetesArgs args)
    public Kubernetes(String name, KubernetesArgs args, CustomResourceOptions options)
    
    type: threefold:provider:Kubernetes
    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 KubernetesArgs
    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 KubernetesArgs
    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 KubernetesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args KubernetesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args KubernetesArgs
    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 kubernetesResource = new Threefold.Provider.Kubernetes("kubernetesResource", new()
    {
        Master = new Threefold.Provider.Inputs.K8sNodeInputArgs
        {
            Cpu = 0,
            Disk_size = 0,
            Memory = 0,
            Name = "string",
            Node = "any",
            Flist = "string",
            Flist_checksum = "string",
            Planetary = false,
            Public_ip = false,
            Public_ip6 = false,
        },
        Network_name = "string",
        Token = "string",
        Workers = new[]
        {
            new Threefold.Provider.Inputs.K8sNodeInputArgs
            {
                Cpu = 0,
                Disk_size = 0,
                Memory = 0,
                Name = "string",
                Node = "any",
                Flist = "string",
                Flist_checksum = "string",
                Planetary = false,
                Public_ip = false,
                Public_ip6 = false,
            },
        },
        Solution_type = "string",
        Ssh_key = "string",
    });
    
    example, err := provider.NewKubernetes(ctx, "kubernetesResource", &provider.KubernetesArgs{
    	Master: &provider.K8sNodeInputArgs{
    		Cpu:            pulumi.Int(0),
    		Disk_size:      pulumi.Int(0),
    		Memory:         pulumi.Int(0),
    		Name:           pulumi.String("string"),
    		Node:           pulumi.Any("any"),
    		Flist:          pulumi.String("string"),
    		Flist_checksum: pulumi.String("string"),
    		Planetary:      pulumi.Bool(false),
    		Public_ip:      pulumi.Bool(false),
    		Public_ip6:     pulumi.Bool(false),
    	},
    	Network_name: pulumi.String("string"),
    	Token:        pulumi.String("string"),
    	Workers: provider.K8sNodeInputArray{
    		&provider.K8sNodeInputArgs{
    			Cpu:            pulumi.Int(0),
    			Disk_size:      pulumi.Int(0),
    			Memory:         pulumi.Int(0),
    			Name:           pulumi.String("string"),
    			Node:           pulumi.Any("any"),
    			Flist:          pulumi.String("string"),
    			Flist_checksum: pulumi.String("string"),
    			Planetary:      pulumi.Bool(false),
    			Public_ip:      pulumi.Bool(false),
    			Public_ip6:     pulumi.Bool(false),
    		},
    	},
    	Solution_type: pulumi.String("string"),
    	Ssh_key:       pulumi.String("string"),
    })
    
    var kubernetesResource = new Kubernetes("kubernetesResource", KubernetesArgs.builder()
        .master(K8sNodeInputArgs.builder()
            .cpu(0)
            .disk_size(0)
            .memory(0)
            .name("string")
            .node("any")
            .flist("string")
            .flist_checksum("string")
            .planetary(false)
            .public_ip(false)
            .public_ip6(false)
            .build())
        .network_name("string")
        .token("string")
        .workers(K8sNodeInputArgs.builder()
            .cpu(0)
            .disk_size(0)
            .memory(0)
            .name("string")
            .node("any")
            .flist("string")
            .flist_checksum("string")
            .planetary(false)
            .public_ip(false)
            .public_ip6(false)
            .build())
        .solution_type("string")
        .ssh_key("string")
        .build());
    
    kubernetes_resource = threefold.provider.Kubernetes("kubernetesResource",
        master=threefold.provider.K8sNodeInputArgs(
            cpu=0,
            disk_size=0,
            memory=0,
            name="string",
            node="any",
            flist="string",
            flist_checksum="string",
            planetary=False,
            public_ip=False,
            public_ip6=False,
        ),
        network_name="string",
        token="string",
        workers=[threefold.provider.K8sNodeInputArgs(
            cpu=0,
            disk_size=0,
            memory=0,
            name="string",
            node="any",
            flist="string",
            flist_checksum="string",
            planetary=False,
            public_ip=False,
            public_ip6=False,
        )],
        solution_type="string",
        ssh_key="string")
    
    const kubernetesResource = new threefold.provider.Kubernetes("kubernetesResource", {
        master: {
            cpu: 0,
            disk_size: 0,
            memory: 0,
            name: "string",
            node: "any",
            flist: "string",
            flist_checksum: "string",
            planetary: false,
            public_ip: false,
            public_ip6: false,
        },
        network_name: "string",
        token: "string",
        workers: [{
            cpu: 0,
            disk_size: 0,
            memory: 0,
            name: "string",
            node: "any",
            flist: "string",
            flist_checksum: "string",
            planetary: false,
            public_ip: false,
            public_ip6: false,
        }],
        solution_type: "string",
        ssh_key: "string",
    });
    
    type: threefold:provider:Kubernetes
    properties:
        master:
            cpu: 0
            disk_size: 0
            flist: string
            flist_checksum: string
            memory: 0
            name: string
            node: any
            planetary: false
            public_ip: false
            public_ip6: false
        network_name: string
        solution_type: string
        ssh_key: string
        token: string
        workers:
            - cpu: 0
              disk_size: 0
              flist: string
              flist_checksum: string
              memory: 0
              name: string
              node: any
              planetary: false
              public_ip: false
              public_ip6: false
    

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

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Master_computed K8sNodeComputed
    Node_deployment_id Dictionary<string, int>
    Nodes_ip_range Dictionary<string, string>
    Workers_computed Dictionary<string, K8sNodeComputed>
    Id string
    The provider-assigned unique ID for this managed resource.
    Master_computed K8sNodeComputed
    Node_deployment_id map[string]int
    Nodes_ip_range map[string]string
    Workers_computed map[string]K8sNodeComputed
    id String
    The provider-assigned unique ID for this managed resource.
    master_computed K8sNodeComputed
    node_deployment_id Map<String,Integer>
    nodes_ip_range Map<String,String>
    workers_computed Map<String,K8sNodeComputed>
    id string
    The provider-assigned unique ID for this managed resource.
    master_computed K8sNodeComputed
    node_deployment_id {[key: string]: number}
    nodes_ip_range {[key: string]: string}
    workers_computed {[key: string]: K8sNodeComputed}
    id str
    The provider-assigned unique ID for this managed resource.
    master_computed K8sNodeComputed
    node_deployment_id Mapping[str, int]
    nodes_ip_range Mapping[str, str]
    workers_computed Mapping[str, K8sNodeComputed]
    id String
    The provider-assigned unique ID for this managed resource.
    master_computed Property Map
    node_deployment_id Map<Number>
    nodes_ip_range Map<String>
    workers_computed Map<Property Map>

    Supporting Types

    K8sNodeComputed, K8sNodeComputedArgs

    Computed_ip string
    Computed_ip6 string
    Console_url string
    Ip string
    Network_name string
    Planetary_ip string
    Ssh_key string
    Token string
    Computed_ip string
    Computed_ip6 string
    Console_url string
    Ip string
    Network_name string
    Planetary_ip string
    Ssh_key string
    Token string
    computed_ip String
    computed_ip6 String
    console_url String
    ip String
    network_name String
    planetary_ip String
    ssh_key String
    token String
    computed_ip string
    computed_ip6 string
    console_url string
    ip string
    network_name string
    planetary_ip string
    ssh_key string
    token string
    computed_ip String
    computed_ip6 String
    console_url String
    ip String
    network_name String
    planetary_ip String
    ssh_key String
    token String

    K8sNodeInput, K8sNodeInputArgs

    Cpu int
    Disk_size int
    Memory int
    Name string
    Node object
    Flist string
    Flist_checksum string
    Planetary bool
    Public_ip bool
    Public_ip6 bool
    Cpu int
    Disk_size int
    Memory int
    Name string
    Node interface{}
    Flist string
    Flist_checksum string
    Planetary bool
    Public_ip bool
    Public_ip6 bool
    cpu Integer
    disk_size Integer
    memory Integer
    name String
    node Object
    flist String
    flist_checksum String
    planetary Boolean
    public_ip Boolean
    public_ip6 Boolean
    cpu number
    disk_size number
    memory number
    name string
    node any
    flist string
    flist_checksum string
    planetary boolean
    public_ip boolean
    public_ip6 boolean
    cpu Number
    disk_size Number
    memory Number
    name String
    node Any
    flist String
    flist_checksum String
    planetary Boolean
    public_ip Boolean
    public_ip6 Boolean

    Package Details

    Repository
    threefold threefoldtech/pulumi-threefold
    License
    Apache-2.0
    threefold logo
    Threefold Grid v0.6.4 published on Tuesday, May 28, 2024 by Threefold