Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pod-configs/orchestrator/cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module "eks" {
addons = var.eks_addons
eks_version = var.eks_version
max_pods = var.eks_max_pods
additional_node_groups = var.eks_additional_node_groups
additional_node_groups = var.enable_observability_node ? var.eks_additional_node_groups : {}
public_cloud = var.public_cloud
enable_cache_registry = var.enable_cache_registry
cache_registry = var.cache_registry
Expand Down Expand Up @@ -195,7 +195,7 @@ module "eks_auth" {
}

module "ec2log" {
count = var.enable_ec2log ? 1 : 0
count = var.enable_ec2log && var.enable_observability_node ? 1 : 0
depends_on = [time_sleep.wait_eks]
source = "../../module/ec2log"
cluster_name = var.eks_cluster_name
Expand Down
6 changes: 5 additions & 1 deletion pod-configs/orchestrator/cluster/variable.tf
Original file line number Diff line number Diff line change
Expand Up @@ -418,4 +418,8 @@ variable "eks_cluster_dns_ip" {
description = "IP address of the DNS server for the cluster, leave empty to use the default DNS server"
}


variable "enable_observability_node" {
type = bool
default = false
description = "Whether to create the observability node group"
}
3 changes: 3 additions & 0 deletions pod-configs/utils/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1885,6 +1885,9 @@ smtp_from=""
tls_key=""
tls_cert=""
ca_cert=""

# Launch an additional EC2 instance dedicated to observability (true/false)
enable_observability_node="false"
EOF

if $AUTO_CERT; then
Expand Down
Loading