Update content/en/docs/reference/kubectl/cheatsheet.md

Co-authored-by: Rey Lejano <rlejano@gmail.com>
This commit is contained in:
Stefan Midjich 2022-06-14 21:17:03 +02:00 committed by GitHub
parent 5e9e7d0b21
commit 95dd0b33ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ kubectl get configmap myconfig \
-o jsonpath='{.data.ca\.crt}'
# 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
# named 'node-role.kubernetes.io/master')