Merge pull request #38403 from stormqueen1990/fix/kubeadm-join-command
[en] Update ConfigMap data extraction to use jsonpath instead of grep/sedpull/38906/head
commit
166bcc2da1
|
@ -244,7 +244,7 @@ it off regardless. Doing so will disable the ability to use the `--discovery-tok
|
|||
* Fetch the `cluster-info` file from the API Server:
|
||||
|
||||
```shell
|
||||
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
|
||||
```
|
||||
|
||||
The output is similar to this:
|
||||
|
|
Loading…
Reference in New Issue