Update K3s Alpine cgroup instructions

cgroups mount and configuration file is not needed when init script has
'want cgroups' as dependency.
This commit is contained in:
William Johansson
2020-01-26 19:35:10 +01:00
parent 4278ecdb91
commit bc9d5b9a95
+1 -18
View File
@@ -228,24 +228,7 @@ will register itself as a node (run the agent).
In order to set up Alpine Linux, you have to go through the following preparation:
```bash
echo "cgroup /sys/fs/cgroup cgroup defaults 0 0" >> /etc/fstab
cat >> /etc/cgconfig.conf <<EOF
mount {
cpuacct = /cgroup/cpuacct;
memory = /cgroup/memory;
devices = /cgroup/devices;
freezer = /cgroup/freezer;
net_cls = /cgroup/net_cls;
blkio = /cgroup/blkio;
cpuset = /cgroup/cpuset;
cpu = /cgroup/cpu;
}
EOF
```
Then update **/etc/update-extlinux.conf** by adding:
Update **/etc/update-extlinux.conf** by adding:
```
default_kernel_opts="... cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory"