civo.KubernetesNodePool
Explore with Pulumi AI
Import
$ pulumi import civo:index/kubernetesNodePool:KubernetesNodePool my-pool 1b8b2100-0e9f-4e8f-ad78-9eb578c2a0af:502c1130-cb9b-4a88-b6d2-307bd96d946a
Create KubernetesNodePool Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new KubernetesNodePool(name: string, args: KubernetesNodePoolArgs, opts?: CustomResourceOptions);
@overload
def KubernetesNodePool(resource_name: str,
args: KubernetesNodePoolArgs,
opts: Optional[ResourceOptions] = None)
@overload
def KubernetesNodePool(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
node_count: Optional[int] = None,
size: Optional[str] = None,
label: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
public_ip_node_pool: Optional[bool] = None,
taints: Optional[Sequence[KubernetesNodePoolTaintArgs]] = None)
func NewKubernetesNodePool(ctx *Context, name string, args KubernetesNodePoolArgs, opts ...ResourceOption) (*KubernetesNodePool, error)
public KubernetesNodePool(string name, KubernetesNodePoolArgs args, CustomResourceOptions? opts = null)
public KubernetesNodePool(String name, KubernetesNodePoolArgs args)
public KubernetesNodePool(String name, KubernetesNodePoolArgs args, CustomResourceOptions options)
type: civo:KubernetesNodePool
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 KubernetesNodePoolArgs
- 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 KubernetesNodePoolArgs
- 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 KubernetesNodePoolArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args KubernetesNodePoolArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args KubernetesNodePoolArgs
- 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 kubernetesNodePoolResource = new Civo.KubernetesNodePool("kubernetesNodePoolResource", new()
{
ClusterId = "string",
NodeCount = 0,
Size = "string",
Label = "string",
Labels =
{
{ "string", "string" },
},
PublicIpNodePool = false,
Taints = new[]
{
new Civo.Inputs.KubernetesNodePoolTaintArgs
{
Effect = "string",
Key = "string",
Value = "string",
},
},
});
example, err := civo.NewKubernetesNodePool(ctx, "kubernetesNodePoolResource", &civo.KubernetesNodePoolArgs{
ClusterId: pulumi.String("string"),
NodeCount: pulumi.Int(0),
Size: pulumi.String("string"),
Label: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
PublicIpNodePool: pulumi.Bool(false),
Taints: civo.KubernetesNodePoolTaintArray{
&civo.KubernetesNodePoolTaintArgs{
Effect: pulumi.String("string"),
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
})
var kubernetesNodePoolResource = new KubernetesNodePool("kubernetesNodePoolResource", KubernetesNodePoolArgs.builder()
.clusterId("string")
.nodeCount(0)
.size("string")
.label("string")
.labels(Map.of("string", "string"))
.publicIpNodePool(false)
.taints(KubernetesNodePoolTaintArgs.builder()
.effect("string")
.key("string")
.value("string")
.build())
.build());
kubernetes_node_pool_resource = civo.KubernetesNodePool("kubernetesNodePoolResource",
cluster_id="string",
node_count=0,
size="string",
label="string",
labels={
"string": "string",
},
public_ip_node_pool=False,
taints=[{
"effect": "string",
"key": "string",
"value": "string",
}])
const kubernetesNodePoolResource = new civo.KubernetesNodePool("kubernetesNodePoolResource", {
clusterId: "string",
nodeCount: 0,
size: "string",
label: "string",
labels: {
string: "string",
},
publicIpNodePool: false,
taints: [{
effect: "string",
key: "string",
value: "string",
}],
});
type: civo:KubernetesNodePool
properties:
clusterId: string
label: string
labels:
string: string
nodeCount: 0
publicIpNodePool: false
size: string
taints:
- effect: string
key: string
value: string
KubernetesNodePool 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 KubernetesNodePool resource accepts the following input properties:
- Cluster
Id string - The ID of your cluster
- Node
Count int - Number of nodes in the nodepool
- Size string
- Size of the nodes in the nodepool
- Label string
- Node pool label, if you don't provide one, we will generate one for you
- Labels Dictionary<string, string>
- Public
Ip boolNode Pool - Node pool belongs to the public ip node pool
- Taints
List<Kubernetes
Node Pool Taint>
- Cluster
Id string - The ID of your cluster
- Node
Count int - Number of nodes in the nodepool
- Size string
- Size of the nodes in the nodepool
- Label string
- Node pool label, if you don't provide one, we will generate one for you
- Labels map[string]string
- Public
Ip boolNode Pool - Node pool belongs to the public ip node pool
- Taints
[]Kubernetes
Node Pool Taint Args
- cluster
Id String - The ID of your cluster
- node
Count Integer - Number of nodes in the nodepool
- size String
- Size of the nodes in the nodepool
- label String
- Node pool label, if you don't provide one, we will generate one for you
- labels Map<String,String>
- public
Ip BooleanNode Pool - Node pool belongs to the public ip node pool
- taints
List<Kubernetes
Node Pool Taint>
- cluster
Id string - The ID of your cluster
- node
Count number - Number of nodes in the nodepool
- size string
- Size of the nodes in the nodepool
- label string
- Node pool label, if you don't provide one, we will generate one for you
- labels {[key: string]: string}
- public
Ip booleanNode Pool - Node pool belongs to the public ip node pool
- taints
Kubernetes
Node Pool Taint[]
- cluster_
id str - The ID of your cluster
- node_
count int - Number of nodes in the nodepool
- size str
- Size of the nodes in the nodepool
- label str
- Node pool label, if you don't provide one, we will generate one for you
- labels Mapping[str, str]
- public_
ip_ boolnode_ pool - Node pool belongs to the public ip node pool
- taints
Sequence[Kubernetes
Node Pool Taint Args]
- cluster
Id String - The ID of your cluster
- node
Count Number - Number of nodes in the nodepool
- size String
- Size of the nodes in the nodepool
- label String
- Node pool label, if you don't provide one, we will generate one for you
- labels Map<String>
- public
Ip BooleanNode Pool - Node pool belongs to the public ip node pool
- taints List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the KubernetesNodePool resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Names List<string> - Instance names in the nodepool
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Names []string - Instance names in the nodepool
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Names List<String> - Instance names in the nodepool
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Names string[] - Instance names in the nodepool
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
names Sequence[str] - Instance names in the nodepool
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Names List<String> - Instance names in the nodepool
Look up Existing KubernetesNodePool Resource
Get an existing KubernetesNodePool 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?: KubernetesNodePoolState, opts?: CustomResourceOptions): KubernetesNodePool
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
instance_names: Optional[Sequence[str]] = None,
label: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
node_count: Optional[int] = None,
public_ip_node_pool: Optional[bool] = None,
size: Optional[str] = None,
taints: Optional[Sequence[KubernetesNodePoolTaintArgs]] = None) -> KubernetesNodePool
func GetKubernetesNodePool(ctx *Context, name string, id IDInput, state *KubernetesNodePoolState, opts ...ResourceOption) (*KubernetesNodePool, error)
public static KubernetesNodePool Get(string name, Input<string> id, KubernetesNodePoolState? state, CustomResourceOptions? opts = null)
public static KubernetesNodePool get(String name, Output<String> id, KubernetesNodePoolState 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.
- Cluster
Id string - The ID of your cluster
- Instance
Names List<string> - Instance names in the nodepool
- Label string
- Node pool label, if you don't provide one, we will generate one for you
- Labels Dictionary<string, string>
- Node
Count int - Number of nodes in the nodepool
- Public
Ip boolNode Pool - Node pool belongs to the public ip node pool
- Size string
- Size of the nodes in the nodepool
- Taints
List<Kubernetes
Node Pool Taint>
- Cluster
Id string - The ID of your cluster
- Instance
Names []string - Instance names in the nodepool
- Label string
- Node pool label, if you don't provide one, we will generate one for you
- Labels map[string]string
- Node
Count int - Number of nodes in the nodepool
- Public
Ip boolNode Pool - Node pool belongs to the public ip node pool
- Size string
- Size of the nodes in the nodepool
- Taints
[]Kubernetes
Node Pool Taint Args
- cluster
Id String - The ID of your cluster
- instance
Names List<String> - Instance names in the nodepool
- label String
- Node pool label, if you don't provide one, we will generate one for you
- labels Map<String,String>
- node
Count Integer - Number of nodes in the nodepool
- public
Ip BooleanNode Pool - Node pool belongs to the public ip node pool
- size String
- Size of the nodes in the nodepool
- taints
List<Kubernetes
Node Pool Taint>
- cluster
Id string - The ID of your cluster
- instance
Names string[] - Instance names in the nodepool
- label string
- Node pool label, if you don't provide one, we will generate one for you
- labels {[key: string]: string}
- node
Count number - Number of nodes in the nodepool
- public
Ip booleanNode Pool - Node pool belongs to the public ip node pool
- size string
- Size of the nodes in the nodepool
- taints
Kubernetes
Node Pool Taint[]
- cluster_
id str - The ID of your cluster
- instance_
names Sequence[str] - Instance names in the nodepool
- label str
- Node pool label, if you don't provide one, we will generate one for you
- labels Mapping[str, str]
- node_
count int - Number of nodes in the nodepool
- public_
ip_ boolnode_ pool - Node pool belongs to the public ip node pool
- size str
- Size of the nodes in the nodepool
- taints
Sequence[Kubernetes
Node Pool Taint Args]
- cluster
Id String - The ID of your cluster
- instance
Names List<String> - Instance names in the nodepool
- label String
- Node pool label, if you don't provide one, we will generate one for you
- labels Map<String>
- node
Count Number - Number of nodes in the nodepool
- public
Ip BooleanNode Pool - Node pool belongs to the public ip node pool
- size String
- Size of the nodes in the nodepool
- taints List<Property Map>
Supporting Types
KubernetesNodePoolTaint, KubernetesNodePoolTaintArgs
Package Details
- Repository
- Civo pulumi/pulumi-civo
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
civo
Terraform Provider.