Skip to content

Commit

Permalink
Limit maxpods calculation to only DS hostnetwork (#534)
Browse files Browse the repository at this point in the history
Co-authored-by: Christian Bianchi <[email protected]>
  • Loading branch information
AverageMarcus and Christian Bianchi authored Dec 15, 2021
1 parent 9d84cd1 commit 9048302
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Limited hostnetwork pods to the daemonsets only when calculating max pods

## [5.6.0] - 2021-12-15

### Changed
Expand Down
6 changes: 5 additions & 1 deletion templates/files/conf/setup-kubelet-environment
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ instance_type="$(curl http://169.254.169.254/latest/meta-data/instance-type 2>/d
# 1 ENI for the node, 1 for ETCD
reserved_eni=2
# Only counting daemonsets, as they are mandatory in all nodes
hostnetwork_pods=9
# Note: we don't include deployments that use host network unless
# they're set to run on all master nodes. The reason for this is
# on nodes where that deployment isn't running the scheduler will
# think another pod is able to be scheduled where it's not.
hostnetwork_pods=4
{{ else }}
# 1 ENI for the node
reserved_eni=1
Expand Down

0 comments on commit 9048302

Please sign in to comment.