Skip to content

Commit

Permalink
upgrade ubuntu + enable swap
Browse files Browse the repository at this point in the history
Signed-off-by: maximsmol <[email protected]>
  • Loading branch information
maximsmol committed Aug 23, 2024
1 parent 7986303 commit 4faf6fd
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions sysbox-eks.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
variable "ubuntu_version" {

default = "focal-20.04"
default = "noble-24.04"

validation {
condition = can(regex("^\\w+-\\d+\\.\\d+$", var.ubuntu_version))
Expand Down Expand Up @@ -211,7 +211,7 @@ build {
"echo '>>> CRI-O'",

# fixme(maximsmol): take into account ${ubuntu_version}
"export OS='xUbuntu_20.04'",
"export OS='xUbuntu_24.04'",
"export VERSION='${var.k8s_version}'",

"echo Adding repositories",
Expand Down Expand Up @@ -434,4 +434,15 @@ build {
]
}


provisioner "shell" {
inline_shebang = "/usr/bin/env bash"
inline = [
"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",
]
}
}

0 comments on commit 4faf6fd

Please sign in to comment.