You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
}
The text was updated successfully, but these errors were encountered:
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
}
The text was updated successfully, but these errors were encountered: