Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -1037,6 +1037,9 @@ def _PostCreate(self):
f'settings.clusterName={self.name}',
'--set',
f'settings.interruptionQueue={self.name}',
# Not always needed but enable the feature.
'--set',
'settings.featureGates.staticCapacity=true',
'--set',
f'controller.resources.requests.cpu={controller_cpu}',
'--set',
Expand Down Expand Up @@ -1155,7 +1158,8 @@ def _CreateKarpenterNodePool(self, nodepool: container.BaseNodePoolConfig):
machine_requirements
)
if nodepool.min_nodes == nodepool.max_nodes:
# Not using autoscaling; set static replica count.
# Not using autoscaling; set static replica count & don't consolidate.
del yaml_nodepool[0]['spec']['disruption']
yaml_nodepool[0]['spec']['replicas'] = nodepool.num_nodes
else:
# NodePool CPU limit: max nodes * vCPU + 5%, max 1000.
Expand Down
Loading