You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/zh/docs/tasks/debug/debug-cluster/_index.md
+19-17Lines changed: 19 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ The first thing to debug in your cluster is if your nodes are all registered cor
34
34
35
35
Run the following command:
36
36
-->
37
-
## 列举集群节点
37
+
## 列举集群节点 {#listing-your-cluster}
38
38
39
39
调试的第一步是查看所有的节点是否都已正确注册。
40
40
@@ -62,7 +62,7 @@ kubectl cluster-info dump
62
62
63
63
Sometimes when debugging it can be useful to look at the status of a node -- for example, because you've noticed strange behavior of a Pod that's running on the node, or to find out why a Pod won't schedule onto the node. As with Pods, you can use `kubectl describe node` and `kubectl get node -o yaml` to retrieve detailed information about nodes. For example, here's what you'll see if a node is down (disconnected from the network, or kubelet dies and won't restart, etc.). Notice the events that show the node is NotReady, and also notice that the pods are no longer running (they are evicted after five minutes of NotReady status).
或者找出为什么 Pod 不会调度到节点上。与 Pod 一样,你可以使用 `kubectl describe node`
@@ -247,10 +247,12 @@ status:
247
247
```
248
248
249
249
<!--
250
+
## Looking at logs
251
+
250
252
For now, digging deeper into the cluster requires logging into the relevant machines. Here are the locations
251
253
of the relevant log files. On systemd-based systems, you may need to use `journalctl` instead of examining log files.
252
254
-->
253
-
## 查看日志
255
+
## 查看日志 {#looking-at-logs}
254
256
255
257
目前,深入挖掘集群需要登录相关机器。以下是相关日志文件的位置。
256
258
在基于 systemd 的系统上,你可能需要使用 `journalctl` 而不是检查日志文件。
@@ -262,7 +264,7 @@ of the relevant log files. On systemd-based systems, you may need to use `journ
262
264
* `/var/log/kube-scheduler.log` - Scheduler, responsible for making scheduling decisions
263
265
* `/var/log/kube-controller-manager.log` - a component that runs most Kubernetes built-in {{<glossary_tooltip text="controllers" term_id="controller">}}, with the notable exception of scheduling (the kube-scheduler handles scheduling).
264
266
-->
265
-
### 控制平面节点
267
+
### 控制平面节点 {#control-plane-nodes}
266
268
267
269
* `/var/log/kube-apiserver.log` —— API 服务器 API
268
270
* `/var/log/kube-scheduler.log` —— 调度器,负责制定调度决策
@@ -276,17 +278,17 @@ of the relevant log files. On systemd-based systems, you may need to use `journ
276
278
* `/var/log/kube-proxy.log` - logs from `kube-proxy`, which is responsible for directing traffic to Service endpoints
0 commit comments