Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support for storage only nodes #91

Open
davidliscio opened this issue Feb 12, 2025 · 0 comments
Open

Adding support for storage only nodes #91

davidliscio opened this issue Feb 12, 2025 · 0 comments

Comments

@davidliscio
Copy link

We have a use case for adding both regular nodes and storage only nodes in a cluster (private-cloud or secondary cluster), we have tested this using a modified version of the private cloud module and would like to have this implemented upstream.

Our solution has been to update the main.tf with a dynamic node type config for both private cloud and cluster modules. This allows for the storage only nodes to be specified in a deployment code with a value of 0 until needed or the config can be omitted.

dynamic "node_type_configs" {
for_each = var.cluster_storage_node_count > 0 ? [1] : []
content {
node_type_id = var.cluster_storage_node_type
node_count = var.cluster_storage_node_count
}
}

Added variables for storage only nodes:
variable "cluster_storage_node_type" {
type = string
description = "Specify the node type for the management cluster in the private cloud"
default = "storage-only-standard-72"
}
variable "cluster_storage_node_count" {
type = number
description = "Specify the number of nodes for the management cluster in the private cloud"
default = 0
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant