🚨 This module is still under development and not fully tested for production, use it under your own risk
Terraform module for creating EKS clusters optimized for ClickHouse with EBS and autoscaling.
provider "aws" {
# https://registry.terraform.io/providers/hashicorp/aws/latest/docs
}
module "eks_clickhouse" {
source = "github.com/Altinity/terraform-aws-eks-clickhouse"
cluster_name = "clickhouse-cluster"
region = "us-east-1"
cidr = "10.0.0.0/16"
subnets = [
{ cidr_block = "10.0.1.0/24", az = "us-east-1a" },
{ cidr_block = "10.0.2.0/24", az = "us-east-1b" },
{ cidr_block = "10.0.3.0/24", az = "us-east-1c" }
]
node_pools_config = {
scaling_config = {
desired_size = 2
max_size = 10
min_size = 0
}
disk_size = 20
instance_types = ["m5.large"]
}
tags = {
CreatedBy = "mr-robot"
}
}
This module will create a Node Pool for each combination of instance type and subnet. For example, if you have 3 subnets and 2 instance types, this module will create 6 different Node Pools.
- Finish docs and add diagram architecture
- Add contact info on
README.md
- Add module
examples
directory for TF registry -
Addaddons
for the module -
Nat and private subnets
All code, unless specified otherwise, is licensed under the Apache-2.0 license. Copyright (c) 2024 Altinity, Inc.