Skip to content

Commit

Permalink
fix kubelet settings
Browse files Browse the repository at this point in the history
Signed-off-by: maximsmol <[email protected]>
  • Loading branch information
maximsmol committed Aug 29, 2024
1 parent 054e8d3 commit 69cb9f6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sysbox-eks.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,9 @@ build {
"set -o pipefail -o errexit",

"echo '>>> Patching kubelet config'",
"sudo dasel put bool --parser json --file /etc/kubernetes/kubelet/kubelet-config.json --selector 'kubeletconfig.failSwapOn' false",
"sudo dasel put bool --parser json --file /etc/kubernetes/kubelet/kubelet-config.json --selector 'kubeletconfig.featureGates.NodeSwap' true",
"sudo dasel put bool --parser json --file /etc/kubernetes/kubelet/kubelet-config.json --selector 'failSwapOn' false",
"sudo dasel put bool --parser json --file /etc/kubernetes/kubelet/kubelet-config.json --selector 'featureGates.NodeSwap' true",
"sudo dasel put string --parser json --file /etc/kubernetes/kubelet/kubelet-config.json --selector 'memorySwap.swapBehavior' 'UnlimitedSwap'",
]
}
}

0 comments on commit 69cb9f6

Please sign in to comment.