Skip to content

Commit

Permalink
downgrade ubuntu, enable cgroups2 manually instead
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 4faf6fd commit 30cf090
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions sysbox-eks.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
variable "ubuntu_version" {

default = "noble-24.04"
default = "focal-20.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_24.04'",
"export OS='xUbuntu_20.04'",
"export VERSION='${var.k8s_version}'",

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


provisioner "shell" {
inline_shebang = "/usr/bin/env bash"
inline = [
Expand All @@ -445,4 +444,14 @@ build {
"sudo dasel put bool --parser json --file /etc/kubernetes/kubelet/kubelet-config.json --selector 'kubeletconfig.featureGates.NodeSwap' true",
]
}

provisioner "shell" {
inline_shebang = "/usr/bin/env bash"
inline = [
"set -o pipefail -o errexit",

"echo '>>> Use cgroup2'",
"sudo grubby --update-kernel=/boot/vmlinuz-$(uname -r) --args='systemd.unified_cgroup_hierarchy=1'",
]
}
}

0 comments on commit 30cf090

Please sign in to comment.