看到一個不錯的範例
kubectl get pods --all-namespaces -o wide | awk '{print $1 " " $2}' | while read AA BB; do echo "$AA" "$BB"; done
文章短網址: https://slanla.com/__0xlzfw
看到一個不錯的範例
kubectl get pods --all-namespaces -o wide | awk '{print $1 " " $2}' | while read AA BB; do echo "$AA" "$BB"; done