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
K8s
Node Input - Network_
name string - Token string
- Workers
List<K8s
Node Input> - Solution_
type string - Ssh_
key string
- Master
K8s
Node Input Args - Network_
name string - Token string
- Workers
[]K8s
Node Input Args - Solution_
type string - Ssh_
key string
- master
K8s
Node Input - network_
name String - token String
- workers
List<K8s
Node Input> - solution_
type String - ssh_
key String
- master
K8s
Node Input - network_
name string - token string
- workers
K8s
Node 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