Fix VirtioFS note, cri-socket, componentstatuses, ES version and typo

This commit is contained in:
yeasy
2026-05-13 08:26:24 +00:00
parent 3c5c5911b0
commit ef5a97fa09
5 changed files with 11 additions and 6 deletions
+3 -1
View File
@@ -238,7 +238,7 @@ $ docker run -u $(id -u):$(id -g) ...
Docker Desktop Bind Mount 性能通常不如 Volume因为数据需要在宿主机文件系统和 Linux VM 之间同步
```bash
## 使用 :cached 或 :delegated 提高性能(macOS
## 使用 :cached 或 :delegated 提高性能(macOS,仅 Docker Desktop 4.5 及更早版本
$ docker run -v /host/path:/container/path:cached myapp
```
@@ -248,6 +248,8 @@ $ docker run -v /host/path:/container/path:cached myapp
| `:delegated` | 容器权威宿主机读取可能延迟 |
| `:consistent` | 默认完全一致 (最慢)|
> **注意**Docker Desktop 4.6+ 默认使用 VirtioFS 文件共享引擎上述 `:cached`/`:delegated` 选项已被静默忽略如需优化文件同步性能请参考 Docker Desktop [Synchronized file shares](https://docs.docker.com/desktop/synchronized-file-sharing/) 功能。
---
### 8.2.9 最佳实践
+2 -1
View File
@@ -242,7 +242,8 @@ kubeadm join 192.168.199.100:6443 --token cz81zt.orsy9gm9v649e5lf \
```bash
$ kubeadm join 192.168.199.100:6443 --token cz81zt.orsy9gm9v649e5lf \
--discovery-token-ca-cert-hash sha256:5edb316fd0d8ea2792cba15cdf1c899a366f147aa03cba52d4e5c5884ad836fe
--discovery-token-ca-cert-hash sha256:5edb316fd0d8ea2792cba15cdf1c899a366f147aa03cba52d4e5c5884ad836fe \
--cri-socket unix:///var/run/cri-dockerd.sock
```
### 14.2.7 查看服务
+3 -1
View File
@@ -240,8 +240,10 @@ $ kubectl config set-context --current --namespace=my-namespace
# 显示集群信息
$ kubectl cluster-info
# 显示完整的集群状态(包括所有组件
# 显示完整的集群状态(注:componentstatuses 自 1.19 起已弃用,建议使用下方替代命令
$ kubectl get componentstatuses
# 推荐替代:
$ kubectl get --raw='/readyz?verbose'
```
### 14.8.15 version
+2 -2
View File
@@ -22,7 +22,7 @@ ELK (ElasticsearchLogstashKibana) 是目前业界最流行的开源日志
```yaml
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:9.3.3
image: docker.elastic.co/elasticsearch/elasticsearch:9.4.0
container_name: elasticsearch
environment:
- "discovery.type=single-node"
@@ -36,7 +36,7 @@ services:
- logging
kibana:
image: docker.elastic.co/kibana/kibana:9.3.3
image: docker.elastic.co/kibana/kibana:9.4.0
container_name: kibana
environment:
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
+1 -1
View File
@@ -14,7 +14,7 @@
```bash
$ sudo kill -SIGHUP $(pidof dockerd)
```
此时 dockerd 会在日志中输更多信息供分析
此时 dockerd 会在日志中输更多信息供分析
### 检查内核日志