Skip to content

Commit

Permalink
add kube-delete - to dlete pods interactively
Browse files Browse the repository at this point in the history
  • Loading branch information
victory-sokolov committed Sep 26, 2024
1 parent bd2fedb commit 1855134
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kubernetes/.kube
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,8 @@ function kube-namespace
{
kubectl config set-context --current --namespace "$(kubectl get ns -o name | fzf -d/ --with-nth=2 | cut -d/ -f2)"
}

function kube-delete
{
kubectl get pods --no-headers -o custom-columns=":metadata.name" | fzf --multi --tac | xargs -I {} kubectl delete pod {}
}

0 comments on commit 1855134

Please sign in to comment.