From b036b5f24b3ba4e219cb1f1806383adcffd7c03e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20GARROUSTE?= Date: Sun, 15 Apr 2018 16:37:10 +0200 Subject: [PATCH 1/2] Delete pods with ''-l run-rng' and remove xargs Delete pods with ''-l run-rng' and remove xargs --- slides/kube/daemonset.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/slides/kube/daemonset.md b/slides/kube/daemonset.md index 93945f4b..74c93ff7 100644 --- a/slides/kube/daemonset.md +++ b/slides/kube/daemonset.md @@ -431,8 +431,7 @@ The timestamps should give us a hint about how many pods are currently receiving - Remove these pods: ```bash - kubectl get pods -l run=rng,isactive!=yes -o name | - xargs kubectl delete + kubectl delete pods -l run=rng,isactive!=yes -o name ``` ] From ff8c3b159569439f41f93a950dab32cb59b350ee Mon Sep 17 00:00:00 2001 From: Jerome Petazzoni Date: Mon, 16 Apr 2018 08:03:09 -0500 Subject: [PATCH 2/2] Remove `-o name` --- slides/kube/daemonset.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slides/kube/daemonset.md b/slides/kube/daemonset.md index 74c93ff7..13dfd69b 100644 --- a/slides/kube/daemonset.md +++ b/slides/kube/daemonset.md @@ -431,7 +431,7 @@ The timestamps should give us a hint about how many pods are currently receiving - Remove these pods: ```bash - kubectl delete pods -l run=rng,isactive!=yes -o name + kubectl delete pods -l run=rng,isactive!=yes ``` ]