mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
add kubectl config view --raw example help user use
This commit is contained in:
parent
01e67e2808
commit
457a7e76d9
@ -48,9 +48,12 @@ var (
|
|||||||
You can use --output jsonpath={...} to extract specific values using a jsonpath expression.`)
|
You can use --output jsonpath={...} to extract specific values using a jsonpath expression.`)
|
||||||
|
|
||||||
view_example = templates.Examples(`
|
view_example = templates.Examples(`
|
||||||
# Show Merged kubeconfig settings.
|
# Show merged kubeconfig settings.
|
||||||
kubectl config view
|
kubectl config view
|
||||||
|
|
||||||
|
# Show merged kubeconfig settings and raw certificate data.
|
||||||
|
kubectl config view --raw
|
||||||
|
|
||||||
# Get the password for the e2e user
|
# Get the password for the e2e user
|
||||||
kubectl config view -o jsonpath='{.users[?(@.name == "e2e")].user.password}'`)
|
kubectl config view -o jsonpath='{.users[?(@.name == "e2e")].user.password}'`)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user