Disable swap on host machine instead of LXD containers

This commit is contained in:
Khue Doan 2020-07-27 11:32:20 +07:00
parent c5f0838c82
commit 0c7393423e
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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