$ kubectl get pods
NAME READY STATUS RESTARTS AGE
nginx-xxxxxx-xxxxx 1/1 Running 0 76m
nginx-yyyyyy-yyyyy 1/1 Running 0 76m
$ kubectl get pods | grep nginx | awk '{print $1}' | xargs kubectl delete pod
pod "nginx-xxxxxx-xxxxx" deleted
pod "nginx-yyyyyy-yyyyy" deleted$ cat /etc/os-release
NAME="Ubuntu"VERSION="18.04.2 LTS (Bionic Beaver)"ID=ubuntuID_LIKE=debianPRETTY_NAME="Ubuntu 18.04.2 LTS"VERSION_ID="18.04"HOME_URL="https://www.ubuntu.com/"SUPPORT_URL="https://help.ubuntu.com/"BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"VERSION_CODENAME=bionicUBUNTU_CODENAME=bionic
cf.