We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e6f3140 + 75be9fd commit ff29e08Copy full SHA for ff29e08
content/zh-cn/docs/reference/setup-tools/kubeadm/kubeadm-join.md
@@ -475,7 +475,7 @@ it off regardless. Doing so will disable the ability to use the `--discovery-tok
475
* 从 API 服务器获取 `cluster-info` 文件:
476
477
```shell
478
-kubectl -n kube-public get cm cluster-info -o yaml | grep "kubeconfig:" -A11 | grep "apiVersion" -A10 | sed "s/ //" | tee cluster-info.yaml
+kubectl -n kube-public get cm cluster-info -o jsonpath='{.data.kubeconfig}' | tee cluster-info.yaml
479
```
480
481
<!--
0 commit comments