We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe706ba commit edd262dCopy full SHA for edd262d
content/en/docs/reference/kubectl/cheatsheet.md
@@ -224,6 +224,9 @@ kubectl get pods --show-labels
224
JSONPATH='{range .items[*]}{@.metadata.name}:{range @.status.conditions[*]}{@.type}={@.status};{end}{end}' \
225
&& kubectl get nodes -o jsonpath="$JSONPATH" | grep "Ready=True"
226
227
+# Check which nodes are ready with custom-columns
228
+kubectl get node -o custom-columns='NODE_NAME:.metadata.name,STATUS:.status.conditions[?(@.type=="Ready")].status'
229
+
230
# Output decoded secrets without external tools
231
kubectl get secret my-secret -o go-template='{{range $k,$v := .data}}{{"### "}}{{$k}}{{"\n"}}{{$v|base64decode}}{{"\n\n"}}{{end}}'
232
0 commit comments