Merge pull request #2213 from radhus/update-alpine-cgroups-docs

K3s: Update Alpine Linux cgroups docs
This commit is contained in:
Catherine Luse
2020-02-05 16:39:04 -07:00
committed by GitHub
+1 -23
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"
@@ -258,11 +241,6 @@ update-extlinux
reboot
```
After rebooting:
- Download **k3s** to **/usr/local/bin/k3s**
- Create an openrc file in **/etc/init.d**
# Running K3d (K3s in Docker) and docker-compose
[k3d](https://github.com/rancher/k3d) is a utility designed to easily run K3s in Docker.