k3s systemd-unit memory limit
This commit is contained in:
parent
5aaaf482b6
commit
41d083a9f3
25
README.md
25
README.md
@ -37,6 +37,31 @@ https://k3s.io/:
|
|||||||
```
|
```
|
||||||
curl -sfL https://get.k3s.io | sh -
|
curl -sfL https://get.k3s.io | sh -
|
||||||
```
|
```
|
||||||
|
If disired, set a memory consumption limit of the systemd-unit like so:
|
||||||
|
```
|
||||||
|
root#> mkdir /etc/systemd/system/k3s.service.d
|
||||||
|
root#> vi /etc/systemd/system/k3s.service.d/limits.conf
|
||||||
|
[Service]
|
||||||
|
MemoryMax=512M
|
||||||
|
|
||||||
|
root#> systemctl daemon-reload
|
||||||
|
root#> systemctl restart k3s
|
||||||
|
|
||||||
|
root#> systemctl status k3s
|
||||||
|
k3s.service - Lightweight Kubernetes
|
||||||
|
Loaded: loaded (/etc/systemd/system/k3s.service; enabled; vendor preset: enabled)
|
||||||
|
Drop-In: /etc/systemd/system/k3s.service.d
|
||||||
|
└─limits.conf
|
||||||
|
Active: active (running) since Thu 2020-11-26 10:46:26 CET; 13min ago
|
||||||
|
Docs: https://k3s.io
|
||||||
|
Process: 9618 ExecStartPre=/sbin/modprobe br_netfilter (code=exited, status=0/SUCCESS)
|
||||||
|
Process: 9619 ExecStartPre=/sbin/modprobe overlay (code=exited, status=0/SUCCESS)
|
||||||
|
Main PID: 9620 (k3s-server)
|
||||||
|
Tasks: 229
|
||||||
|
Memory: 510.6M (max: 512.0M)
|
||||||
|
CGroup: /system.slice/k3s.service
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
# Upstream DNS-resolver <a name="upstream-dns-resolver"></a>
|
# Upstream DNS-resolver <a name="upstream-dns-resolver"></a>
|
||||||
Docs: https://rancher.com/docs/rancher/v2.x/en/troubleshooting/dns/
|
Docs: https://rancher.com/docs/rancher/v2.x/en/troubleshooting/dns/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user