Class NodeGroup
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.openstack.containerinfra.NodeGroup
-
public class NodeGroup extends com.pulumi.resources.CustomResourceManages a V1 Magnum node group resource within OpenStack. ## Example Usage ### Create a Nodegroup ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.openstack.containerinfra.NodeGroup; import com.pulumi.openstack.containerinfra.NodeGroupArgs; 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 nodegroup1 = new NodeGroup("nodegroup1", NodeGroupArgs.builder() .clusterId("b9a45c5c-cd03-4958-82aa-b80bf93cb922") .nodeCount(5) .build()); } } ``` ## Attributes reference The following attributes are exported: * `region` - See Argument Reference above. * `name` - See Argument Reference above. * `project_id` - See Argument Reference above. * `created_at` - The time at which node group was created. * `updated_at` - The time at which node group was created. * `docker_volume_size` - See Argument Reference above. * `role` - See Argument Reference above. * `image_id` - See Argument Reference above. * `flavor_id` - See Argument Reference above. * `labels` - See Argument Reference above. * `node_count` - See Argument Reference above. * `min_node_count` - See Argument Reference above. * `max_node_count` - See Argument Reference above. * `role` - See Argument Reference above. ## Import Node groups can be imported using the `id` (cluster_id/nodegroup_id), e.g. ```sh $ pulumi import openstack:containerinfra/nodeGroup:NodeGroup nodegroup_1 b9a45c5c-cd03-4958-82aa-b80bf93cb922/ce0f9463-dd25-474b-9fe8-94de63e5e42b ```
-
-
Constructor Summary
Constructors Constructor Description NodeGroup(java.lang.String name)NodeGroup(java.lang.String name, NodeGroupArgs args)NodeGroup(java.lang.String name, NodeGroupArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>clusterId()com.pulumi.core.Output<java.lang.String>createdAt()com.pulumi.core.Output<java.lang.Integer>dockerVolumeSize()com.pulumi.core.Output<java.lang.String>flavorId()static NodeGroupget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, NodeGroupState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>imageId()com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.Object>>labels()com.pulumi.core.Output<java.util.Optional<java.lang.Integer>>maxNodeCount()com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>>mergeLabels()com.pulumi.core.Output<java.lang.Integer>minNodeCount()com.pulumi.core.Output<java.lang.String>name()com.pulumi.core.Output<java.util.Optional<java.lang.Integer>>nodeCount()com.pulumi.core.Output<java.lang.String>projectId()com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.lang.String>role()com.pulumi.core.Output<java.lang.String>updatedAt()
-
-
-
Constructor Detail
-
NodeGroup
public NodeGroup(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
NodeGroup
public NodeGroup(java.lang.String name, NodeGroupArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
NodeGroup
public NodeGroup(java.lang.String name, NodeGroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
clusterId
public com.pulumi.core.Output<java.lang.String> clusterId()
- Returns:
- The UUID of the V1 Container Infra cluster. Changing this creates a new node group.
-
createdAt
public com.pulumi.core.Output<java.lang.String> createdAt()
-
dockerVolumeSize
public com.pulumi.core.Output<java.lang.Integer> dockerVolumeSize()
- Returns:
- The size (in GB) of the Docker volume. Changing this creates a new node group.
-
flavorId
public com.pulumi.core.Output<java.lang.String> flavorId()
- Returns:
- The flavor for the nodes of the node group. Can be set via the `OS_MAGNUM_FLAVOR` environment variable. Changing this creates a new node group.
-
imageId
public com.pulumi.core.Output<java.lang.String> imageId()
- Returns:
- The reference to an image that is used for nodes of the node group. Can be set via the `OS_MAGNUM_IMAGE` environment variable. Changing this updates the image attribute of the existing node group.
-
labels
public com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.Object>> labels()
- Returns:
- The list of key value pairs representing additional properties of the node group. Changing this creates a new node group.
-
maxNodeCount
public com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> maxNodeCount()
- Returns:
- The maximum number of nodes for the node group. Changing this update the maximum number of nodes of the node group.
-
mergeLabels
public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> mergeLabels()
- Returns:
- Indicates whether the provided labels should be merged with cluster labels. Changing this creates a new nodegroup.
-
minNodeCount
public com.pulumi.core.Output<java.lang.Integer> minNodeCount()
- Returns:
- The minimum number of nodes for the node group. Changing this update the minimum number of nodes of the node group.
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- The name of the node group. Changing this creates a new node group.
-
nodeCount
public com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> nodeCount()
- Returns:
- The number of nodes for the node group. Changing this update the number of nodes of the node group.
-
projectId
public com.pulumi.core.Output<java.lang.String> projectId()
- Returns:
- The project of the node group. Required if admin wants to create a cluster in another project. Changing this creates a new node group.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- The region in which to obtain the V1 Container Infra client. A Container Infra client is needed to create a cluster. If omitted, the `region` argument of the provider is used. Changing this creates a new node group.
-
role
public com.pulumi.core.Output<java.lang.String> role()
- Returns:
- The role of nodes in the node group. Changing this creates a new node group.
-
updatedAt
public com.pulumi.core.Output<java.lang.String> updatedAt()
-
get
public static NodeGroup get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable NodeGroupState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-