Merge pull request #38403 from stormqueen1990/fix/kubeadm-join-command

[en] Update ConfigMap data extraction to use jsonpath instead of grep/sed
pull/38906/head
Kubernetes Prow Robot 2022-12-11 09:43:32 -08:00 committed by GitHub
commit 166bcc2da1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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: