Update content/en/docs/reference/kubectl/cheatsheet.md
Co-authored-by: Rey Lejano <rlejano@gmail.com>
This commit is contained in:
@@ -178,7 +178,7 @@ kubectl get configmap myconfig \
|
|||||||
-o jsonpath='{.data.ca\.crt}'
|
-o jsonpath='{.data.ca\.crt}'
|
||||||
|
|
||||||
# Retrieve a value with dashes instead of underscores.
|
# Retrieve a value with dashes instead of underscores.
|
||||||
kubectl get secret mysecret --template='{{index .data "key-name-with-dashes"}}'
|
kubectl get secret my-secret --template='{{index .data "key-name-with-dashes"}}'
|
||||||
|
|
||||||
# Get all worker nodes (use a selector to exclude results that have a label
|
# Get all worker nodes (use a selector to exclude results that have a label
|
||||||
# named 'node-role.kubernetes.io/master')
|
# named 'node-role.kubernetes.io/master')
|
||||||
|
|||||||
Reference in New Issue
Block a user