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:
2
.zshrc
2
.zshrc
@@ -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",
|
||||
|
Reference in New Issue
Block a user