mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-03-25 03:05:32 +00:00
Add blank lines before headers
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
参考[安装 Docker](../03_install/README.md) 一节添加 apt/yum 源,之后执行如下命令。
|
||||
|
||||
```bash
|
||||
|
||||
## debian 系
|
||||
|
||||
$ sudo apt install containerd.io
|
||||
@@ -37,6 +38,7 @@ Delegate=yes
|
||||
KillMode=process
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
## Having non-zero Limit*s causes performance problems due to accounting overhead
|
||||
|
||||
## in the kernel. We recommend using cgroups to do container-local accounting.
|
||||
@@ -44,6 +46,7 @@ RestartSec=5
|
||||
LimitNPROC=infinity
|
||||
LimitCORE=infinity
|
||||
LimitNOFILE=infinity
|
||||
|
||||
## Comment TasksMax if your systemd version does not supports it.
|
||||
|
||||
## Only systemd 226 and above support this version.
|
||||
@@ -59,15 +62,18 @@ WantedBy=multi-user.target
|
||||
|
||||
```toml
|
||||
version = 2
|
||||
|
||||
## persistent data location
|
||||
|
||||
root = "/var/lib/cri-containerd"
|
||||
|
||||
## runtime state information
|
||||
|
||||
state = "/run/cri-containerd"
|
||||
plugin_dir = ""
|
||||
disabled_plugins = []
|
||||
required_plugins = []
|
||||
|
||||
## set containerd's OOM score
|
||||
|
||||
oom_score = 0
|
||||
@@ -315,6 +321,7 @@ $ sysctl --system
|
||||
`/etc/systemd/system/kubelet.service.d/10-proxy-ipvs.conf` 写入以下内容
|
||||
|
||||
```bash
|
||||
|
||||
## 启用 ipvs 相关内核模块
|
||||
|
||||
[Service]
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#### Ubuntu/Debian
|
||||
|
||||
```bash
|
||||
|
||||
## 安装 cri-dockerd
|
||||
|
||||
$ cd /tmp
|
||||
@@ -48,6 +49,7 @@ $ sudo /usr/local/bin/cri-dockerd --version
|
||||
#### CentOS/Fedora
|
||||
|
||||
```bash
|
||||
|
||||
## 安装 cri-dockerd
|
||||
|
||||
$ cd /tmp
|
||||
@@ -155,6 +157,7 @@ $ sysctl --system
|
||||
`/etc/systemd/system/kubelet.service.d/10-proxy-ipvs.conf` 写入以下内容
|
||||
|
||||
```bash
|
||||
|
||||
## 启用 ipvs 相关内核模块
|
||||
|
||||
[Service]
|
||||
|
||||
@@ -26,6 +26,7 @@ brew install kind
|
||||
可以下载二进制文件:
|
||||
|
||||
```bash
|
||||
|
||||
## Linux AMD64
|
||||
|
||||
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.20.0/kind-linux-amd64
|
||||
|
||||
@@ -40,6 +40,7 @@ k3s-master Ready control-plane,master 1m v1.35.1+k3s1
|
||||
K3s 内置了 `kubectl` 命令 (通过 `k3s kubectl` 调用),为了方便,通常会建立别名或配置 `KUBECONFIG`。
|
||||
|
||||
```bash
|
||||
|
||||
## 读取 K3s 的配置文件
|
||||
|
||||
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
#### 常用命令
|
||||
|
||||
```bash
|
||||
|
||||
# 启动服务
|
||||
sudo systemctl start kubelet
|
||||
|
||||
|
||||
Reference in New Issue
Block a user