Remove blank lines after code block markers

This commit is contained in:
yeasy
2026-03-21 22:36:09 -07:00
parent 312f8fea42
commit 9ac19d79ee
132 changed files with 0 additions and 1517 deletions

View File

@@ -20,7 +20,6 @@ K3s 提供了极为便捷的安装脚本:
```bash
curl -sfL https://get.k3s.io | sh -
```
安装完成后K3s 会自动启动并配置好 `systemd` 服务
#### 查看状态
@@ -28,19 +27,16 @@ curl -sfL https://get.k3s.io | sh -
```bash
sudo k3s kubectl get nodes
```
输出类似
```bash
NAME STATUS ROLES AGE VERSION
k3s-master Ready control-plane,master 1m v1.35.1+k3s1
```
### 14.5.3 快速使用
K3s 内置了 `kubectl` 命令 (通过 `k3s kubectl` 调用)为了方便通常会建立别名或配置 `KUBECONFIG`
```bash
## 读取 K3s 的配置文件
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
@@ -49,7 +45,6 @@ export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
kubectl get pods -A
```
### 14.5.4 清理卸载
```bash