1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2025-09-19 22:39:08 +00:00

[.zshrc] Update knodes alias to show output sort by creation date

This commit is contained in:
2025-09-19 19:22:18 +02:00
parent 9eec46f3e1
commit d090709d1c

2
.zshrc
View File

@@ -93,7 +93,7 @@ kexec () {
knodes () {
{
echo -e "Name\tType\tNodePool\tNodeClass\tCapacity\tRegistered\tInitialized\tCreationTime\tImage"
kubectl get node -o json \
kubectl get node --sort-by metadata.creationTimestamp -o json \
| jq -r '.items[] | {
name:.metadata.name,
type:.metadata.labels."beta.kubernetes.io/instance-type",