Skip to content

Commit

Permalink
Update kubectl
Browse files Browse the repository at this point in the history
  • Loading branch information
laspavel committed Sep 28, 2024
1 parent 5e80cea commit d168024
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions 03.linux/10008.kubectl.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ kubectl get pods -n mynamespace --no-headers=true | awk '/pattern1|pattern2/{pr

kubectl delete all -l some-label=some-value # Удалить все поды с меткой some-label=some-value
kubectl delete pod $(kubectl get pod -o=jsonpath='{.items[?(@.status.phase=="Succeeded")].metadata.name}') # Удалить все пода со статусом "Succeeded"
kubectl get pods -n kube-system --no-headers | grep 'calico-kube-controllers' | awk '{print $1}' | xargs kubectl delete pod -n kube-system # Удалить все поды calico-kube-controllers в namespace kube-system
```

## Работа с запущенными подами ##
Expand Down

0 comments on commit d168024

Please sign in to comment.