Skip to content

Commit

Permalink
Calculate max pods
Browse files Browse the repository at this point in the history
  • Loading branch information
nerahou committed May 16, 2024
1 parent 0378e9e commit b5947eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cluster_connect.sh.tpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Calculate max pods
if [[ "${use_max_pods}" = "true" ]]; then
export CNI_VERSION=$(echo "${cni_version}" | sed 's/^v//')
export CNI_CUSTOM_NETWORKING_ENABLED=true
fi

/etc/eks/bootstrap.sh ${cluster_name} \
--use-max-pods ${use_max_pods} \
--kubelet-extra-args '--node-labels=${node_labels} --register-with-taints=${node_taints} ${kubelet_extra_args}' \
Expand Down
1 change: 1 addition & 0 deletions node_group_advanced.tf
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ resource "aws_launch_template" "quortex_launch_tpl" {
: "${k}=${v}"]
)
use_max_pods = var.node_use_max_pods
cni_version = try(var.cluster_addons["vpc-cni"].version, "")
}
)
}
Expand Down

0 comments on commit b5947eb

Please sign in to comment.