mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-28 05:59:03 +00:00
Merge pull request #2213 from radhus/update-alpine-cgroups-docs
K3s: Update Alpine Linux cgroups docs
This commit is contained in:
@@ -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:
|
In order to set up Alpine Linux, you have to go through the following preparation:
|
||||||
|
|
||||||
```bash
|
Update **/etc/update-extlinux.conf** by adding:
|
||||||
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:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
default_kernel_opts="... cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory"
|
default_kernel_opts="... cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory"
|
||||||
@@ -258,11 +241,6 @@ update-extlinux
|
|||||||
reboot
|
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
|
# Running K3d (K3s in Docker) and docker-compose
|
||||||
|
|
||||||
[k3d](https://github.com/rancher/k3d) is a utility designed to easily run K3s in Docker.
|
[k3d](https://github.com/rancher/k3d) is a utility designed to easily run K3s in Docker.
|
||||||
|
|||||||
Reference in New Issue
Block a user