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/setup/production-environment/tools/kubeadm/troubleshooting-kubeadm.md
+99-37Lines changed: 99 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,8 @@ If your problem is not listed below, please follow the following steps:
21
21
- Go to [github.com/kubernetes/kubeadm](https://github.com/kubernetes/kubeadm/issues) and search for existing issues.
22
22
- If no issue exists, please [open one](https://github.com/kubernetes/kubeadm/issues/new) and follow the issue template.
23
23
24
-
- If you are unsure about how kubeadm works, you can ask on [Slack](http://slack.k8s.io/) in #kubeadm, or open a question on [StackOverflow](https://stackoverflow.com/questions/tagged/kubernetes). Please include
24
+
- If you are unsure about how kubeadm works, you can ask on [Slack](https://slack.k8s.io/) in `#kubeadm`,
25
+
or open a question on [StackOverflow](https://stackoverflow.com/questions/tagged/kubernetes). Please include
25
26
relevant tags like `#kubernetes` and `#kubeadm` so folks can help you.
26
27
-->
27
28
与任何程序一样,你可能会在安装或者运行 kubeadm 时遇到错误。
@@ -33,12 +34,73 @@ If your problem is not listed below, please follow the following steps:
@@ -307,7 +369,7 @@ Unable to connect to the server: x509: certificate signed by unknown authority (
307
369
export KUBECONFIG=/etc/kubernetes/admin.conf
308
370
```
309
371
310
-
- 另一个方法是覆盖 `kubeconfig` 的现有用户 "管理员":
372
+
- 另一个方法是覆盖 `kubeconfig` 的现有用户 "管理员":
311
373
312
374
```shell
313
375
mv $HOME/.kube $HOME/.kube.bak
@@ -316,22 +378,6 @@ Unable to connect to the server: x509: certificate signed by unknown authority (
316
378
sudo chown $(id -u):$(id -g) $HOME/.kube/config
317
379
```
318
380
319
-
<!--
320
-
## Default NIC When using flannel as the pod network in Vagrant
321
-
322
-
The following error might indicate that something was wrong in the pod network:
323
-
324
-
```sh
325
-
Error from server (NotFound): the server could not find the requested resource
326
-
```
327
-
328
-
- If you're using flannel as the pod network inside Vagrant, then you will have to specify the default interface name for flannel.
329
-
330
-
Vagrant typically assigns two interfaces to all VMs. The first, for which all hosts are assigned the IP address `10.0.2.15`, is for external traffic that gets NATed.
331
-
332
-
This may lead to problems with flannel, which defaults to the first interface on a host. This leads to all hosts thinking they have the same public IP address. To prevent this, pass the `-iface eth1` flag to flannel so that the second interface is chosen.
@@ -385,6 +431,22 @@ the `ca.key` you must sign the embedded certificates in the `kubelet.conf` exter
385
431
6. 重新启动 kubelet。
386
432
7. 确保节点状况变为 `Ready`。
387
433
434
+
<!--
435
+
## Default NIC When using flannel as the pod network in Vagrant
436
+
437
+
The following error might indicate that something was wrong in the pod network:
438
+
439
+
```sh
440
+
Error from server (NotFound): the server could not find the requested resource
441
+
```
442
+
443
+
- If you're using flannel as the pod network inside Vagrant, then you will have to specify the default interface name for flannel.
444
+
445
+
Vagrant typically assigns two interfaces to all VMs. The first, for which all hosts are assigned the IP address `10.0.2.15`, is for external traffic that gets NATed.
446
+
447
+
This may lead to problems with flannel, which defaults to the first interface on a host. This leads to all hosts thinking they have the same public IP address. To prevent this, pass the `--iface eth1` flag to flannel so that the second interface is chosen.
448
+
-->
449
+
388
450
## 在 Vagrant 中使用 flannel 作为 pod 网络时的默认 NIC
389
451
390
452
以下错误可能表明 Pod 网络中出现问题:
@@ -410,9 +472,9 @@ Error from server: Get https://10.19.0.41:10250/containerLogs/default/mysql-ddc6
410
472
```
411
473
412
474
- This may be due to Kubernetes using an IP that can not communicate with other IPs on the seemingly same subnet, possibly by policy of the machine provider.
413
-
- Digital Ocean assigns a public IP to `eth0` as well as a private one to be used internally as anchor for their floating IP feature, yet `kubelet` will pick the latter as the node's `InternalIP` instead of the public one.
475
+
- DigitalOcean assigns a public IP to `eth0` as well as a private one to be used internally as anchor for their floating IP feature, yet `kubelet` will pick the latter as the node's `InternalIP` instead of the public one.
414
476
415
-
Use `ip addr show` to check for this scenario instead of `ifconfig` because `ifconfig` will not display the offending alias IP address. Alternatively an API endpoint specific to Digital Ocean allows to query for the anchor IP from the droplet:
477
+
Use `ip addr show` to check for this scenario instead of `ifconfig` because `ifconfig` will not display the offending alias IP address. Alternatively an API endpoint specific to DigitalOcean allows to query for the anchor IP from the droplet:
0 commit comments