Skip to content

Commit

Permalink
Merge branch 'ft/max-pods-per-node' into 'master'
Browse files Browse the repository at this point in the history
Add max_pods_per_node kubelet argument

See merge request nimbux/terraform-aws-eks!4
  • Loading branch information
qemanuel committed Nov 30, 2021
2 parents 6212c4e + 282f755 commit 1d18f5d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [2.1.0] - 2021-11-30

### Added

- Add max_pods_per_node kubelet argument.
- README outputs.

## [2.0.5] - 2021-08-17

### Fixed
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ module "eks_main" {
| instance\_type | Instance type of the EC2 workers. | `string` | `""` | yes |
| max\_size | Maximum size of the autoscaling for the worker nodes. | `string` | `""` | yes |
| min\_size | Minimum size of the autoscaling for the worker nodes. | `string` | `""` | yes |
| max\_pods\_per\_node | Max pods per Kubernetes worker node. | `string` | `"100"` | no |
| desired\_capacity | Desired size of the autoscaling for the worker nodes. | `string` | `""` | yes |
| eks\_worker\_ami\_id | AMI ID for the worker nodes | `string` | `""` | yes |
| target\_group\_arns | ARNs of the target groups for using the worker nodes behind of ELB | `list[string]` | `[]` | no |
Expand Down
2 changes: 1 addition & 1 deletion asg.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ locals {
eks_worker_userdata = <<USERDATA
#!/bin/bash
set -o xtrace
/etc/eks/bootstrap.sh --apiserver-endpoint '${aws_eks_cluster.main.endpoint}' --b64-cluster-ca '${aws_eks_cluster.main.certificate_authority.0.data}' '${aws_eks_cluster.main.name}'
/etc/eks/bootstrap.sh --apiserver-endpoint '${aws_eks_cluster.main.endpoint}' --b64-cluster-ca '${aws_eks_cluster.main.certificate_authority.0.data}' '${aws_eks_cluster.main.name}' --use-max-pods false --kubelet-extra-args '--max-pods=${var.max_pods_per_node}'
USERDATA
}

Expand Down
1 change: 1 addition & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ variable "subnets_ids" {}
variable "instance_type" {}
variable "max_size" {}
variable "min_size" {}
variable "max_pods_per_node" { default = 100 }
variable "desired_capacity" {}
variable "eks_worker_ami_id" {}
variable "target_group_arns" {
Expand Down

0 comments on commit 1d18f5d

Please sign in to comment.