Threefold Grid v0.6.4 published on Tuesday, May 28, 2024 by Threefold
threefold.provider.Kubernetes
Explore with Pulumi AI
 
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:
- Master
K8sNode Input 
- Network_name string
- Token string
- Workers
List<K8sNode Input> 
- Solution_type string
- Ssh_key string
- Master
K8sNode Input Args 
- Network_name string
- Token string
- Workers
[]K8sNode Input Args 
- Solution_type string
- Ssh_key string
- master
K8sNode Input 
- network_name String
- token String
- workers
List<K8sNode Input> 
- solution_type String
- ssh_key String
- master
K8sNode Input 
- network_name string
- token string
- workers
K8sNode Input[] 
- solution_type string
- ssh_key string
- master Property Map
- network_name String
- token String
- workers List<Property Map>
- solution_type String
- ssh_key String
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 K8sNode Computed 
- Node_deployment_ Dictionary<string, int>id 
- Nodes_ip_ Dictionary<string, string>range 
- Workers_computed Dictionary<string, K8sNode Computed> 
- Id string
- The provider-assigned unique ID for this managed resource.
- Master_computed K8sNode Computed 
- Node_deployment_ map[string]intid 
- Nodes_ip_ map[string]stringrange 
- Workers_computed map[string]K8sNode Computed 
- id String
- The provider-assigned unique ID for this managed resource.
- master_computed K8sNode Computed 
- node_deployment_ Map<String,Integer>id 
- nodes_ip_ Map<String,String>range 
- workers_computed Map<String,K8sNode Computed> 
- id string
- The provider-assigned unique ID for this managed resource.
- master_computed K8sNode Computed 
- node_deployment_ {[key: string]: number}id 
- nodes_ip_ {[key: string]: string}range 
- workers_computed {[key: string]: K8sNode Computed} 
- id str
- The provider-assigned unique ID for this managed resource.
- master_computed K8sNode Computed 
- node_deployment_ Mapping[str, int]id 
- nodes_ip_ Mapping[str, str]range 
- workers_computed Mapping[str, K8sNode Computed] 
- id String
- The provider-assigned unique ID for this managed resource.
- master_computed Property Map
- node_deployment_ Map<Number>id 
- nodes_ip_ Map<String>range 
- 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 str
- computed_ip6 str
- console_url str
- ip str
- network_name str
- planetary_ip str
- ssh_key str
- token str
- 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 int
- disk_size int
- memory int
- name str
- node Any
- flist str
- flist_checksum str
- planetary bool
- public_ip bool
- public_ip6 bool
- 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 Grid v0.6.4 published on Tuesday, May 28, 2024 by Threefold