Skip to content

Latest commit

 

History

History

machine-pool

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

machine-pool

Introduction

This Terraform sub-module manages the machine pool for ROSA HCP clusters. It enables you to efficiently configure and scale machine pools after cluster deployment, ensuring optimal resource allocation and performance for workloads within the ROSA HCP cluster environment. With this module, you can easily adjust the size and specifications of machine pools, facilitating seamless adaptation to changing workload demands and operational requirements in ROSA HCP clusters.

Example Usage

module "mp" {
  source = "terraform-redhat/rosa-hcp/rhcs//modules/machine-pool"
  version = "1.6.2"

  cluster_id = "cluster-id-123"
  name = "my-pool"
  openshift_version = "my-version"

  aws_node_pool = {
    instance_type = "my-instance"
    tags = {}
  }

  subnet_id = "subnet-123"
  autoscaling = {
    enabled = false
    min_replicas = null
    max_replicas = null
  }
  replicas = 2
}

Requirements

Name Version
terraform >= 1.0
rhcs >= 1.6.2

Providers

Name Version
rhcs >= 1.6.2

Modules

No modules.

Resources

Name Type
rhcs_hcp_machine_pool.machine_pool resource

Inputs

Name Description Type Default Required
auto_repair Configures auto repair option for the pool. bool true no
autoscaling Configures autoscaling for the pool.
object({
enabled = bool
min_replicas = number
max_replicas = number
})
{
"enabled": false,
"max_replicas": null,
"min_replicas": null
}
no
aws_node_pool Configures aws settings for the pool.
object({
instance_type = string
tags = map(string)
additional_security_group_ids = list(string)
})
n/a yes
cluster_id Identifier of the cluster. string n/a yes
ignore_deletion_error Ignore machine pool deletion error. Assists when cluster resource is managed within the same file for the destroy use case bool false no
kubelet_configs Name of the kubelet configs to attach to this machine pool. The kubelet configs must already exist string null no
labels Labels for the machine pool. Format should be a comma-separated list of 'key = value'. This list will overwrite any modifications made to node labels on an ongoing basis. map(string) null no
name Name of the machine pool. Must consist of lower-case alphanumeric characters or '-', start and end with an alphanumeric character. string n/a yes
openshift_version Desired version of OpenShift for the cluster, for example '4.1.0'. If version is greater than the currently running version, an upgrade will be scheduled. string n/a yes
replicas The amount of the machine created in this machine pool. number null no
subnet_id Select the subnet in which to create a single AZ machine pool for BYO-VPC cluster string n/a yes
taints Taints for a machine pool. This list will overwrite any modifications made to node taints on an ongoing basis.
list(object({
key = string
value = string
schedule_type = string
}))
null no
tuning_configs A list of tuning config names to attach to this machine pool. The tuning configs must already exist list(string) null no
upgrade_acknowledgements_for Indicates acknowledgement of agreements required to upgrade the cluster version between minor versions (e.g. a value of "4.12" indicates acknowledgement of any agreements required to upgrade to OpenShift 4.12.z from 4.11 or before). string null no

Outputs

No outputs.