Skip to content

Commit

Permalink
Merge pull request #38403 from stormqueen1990/fix/kubeadm-join-command
Browse files Browse the repository at this point in the history
[en] Update ConfigMap data extraction to use jsonpath instead of grep/sed
  • Loading branch information
k8s-ci-robot authored Dec 11, 2022
2 parents 5c865a5 + ac35be2 commit 166bcc2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 166bcc2

Please sign in to comment.