Skip to content

Commit

Permalink
Merge pull request #74 from appuio/fix/max-pods-warning
Browse files Browse the repository at this point in the history
Fix warning for `kubeletConfig.maxPods > 110`
  • Loading branch information
simu authored Apr 16, 2024
2 parents ab91779 + c6149ef commit 821ef02
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion component/kubelet.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ local checkMaxPods(config) =
&& config.kubeletConfig.maxPods > 110
then
config {
kubeletConfig: {
kubeletConfig+: {
maxPods: std.trace(
'[WARNING] Upstream Kubernetes recommends to have maximum pods per node <= 110.',
config.kubeletConfig.maxPods
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ metadata:
spec:
kubeletConfig:
maxPods: 999
systemReserved:
memory: 2Gi
machineConfigPoolSelector:
matchExpressions:
- key: pools.operator.machineconfiguration.openshift.io/worker
Expand Down
2 changes: 2 additions & 0 deletions tests/maxpods.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ parameters:
workers:
kubeletConfig:
maxPods: 999
systemReserved:
memory: 2Gi

0 comments on commit 821ef02

Please sign in to comment.