mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-07 14:03:01 +07:00
Disable swap on host machine instead of LXD containers
This commit is contained in:
parent
c5f0838c82
commit
0c7393423e
@ -12,3 +12,6 @@
|
||||
|
||||
- name: Set password for new clients
|
||||
command: lxc config set core.trust_password ""
|
||||
|
||||
- name: Disable swap for Kubernetes
|
||||
command: swapoff -a
|
||||
|
@ -17,7 +17,6 @@ resource "lxd_profile" "kubernetes" {
|
||||
|
||||
config = {
|
||||
"limits.cpu" = 2
|
||||
"limits.memory.swap" = false
|
||||
"linux.kernel_modules" = "ip_tables,ip6_tables,netlink_diag,nf_nat,overlay"
|
||||
"raw.lxc" = "lxc.apparmor.profile=unconfined\nlxc.cap.drop= \nlxc.cgroup.devices.allow=a\nlxc.mount.auto=proc:rw sys:rw"
|
||||
"security.privileged" = true
|
||||
|
Loading…
Reference in New Issue
Block a user