k8s/Admin snippets
Multiple pod operations
- Using xargs.
Note: xargs The -t option prints each command that will be executed to the terminal.
kubectl get pods | grep etl | awk -F' ' '{print $1}' | xargs kubectl get pod
Note: xargs The -t option prints each command that will be executed to the terminal.
kubectl get pods | grep etl | awk -F' ' '{print $1}' | xargs kubectl get pod