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 5c865a5 + ac35be2 commit 166bcc2Copy full SHA for 166bcc2
content/en/docs/reference/setup-tools/kubeadm/kubeadm-join.md
@@ -244,7 +244,7 @@ it off regardless. Doing so will disable the ability to use the `--discovery-tok
244
* Fetch the `cluster-info` file from the API Server:
245
246
```shell
247
-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
248
```
249
250
The output is similar to this:
0 commit comments