fix: add -o wide flag to get complete node info
This commit is contained in:
@@ -16,7 +16,7 @@ echo "=========================================="
|
||||
echo ""
|
||||
|
||||
# 取得節點資訊
|
||||
NODES=$(kubectl get nodes --no-headers)
|
||||
NODES=$(kubectl get nodes -o wide --no-headers)
|
||||
|
||||
# 統計
|
||||
NODE_TOTAL=$(echo "$NODES" | wc -l)
|
||||
|
||||
Reference in New Issue
Block a user