-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a new solution to removing pods #215
base: main
Are you sure you want to change the base?
Conversation
kubectl delete po --all
"--timeout" requires units (tested with kubectl v1.21.3)
--serviceaccount command-line argument has been deprecated serviceAccount config file field has been deprecated
@@ -520,13 +520,6 @@ kubectl create -f sa.yaml | |||
<details><summary>show</summary> | |||
<p> | |||
|
|||
```bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we removing these lines?
@@ -552,28 +545,6 @@ spec: | |||
status: {} | |||
``` | |||
|
|||
or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we removing these lines?
@@ -520,7 +524,7 @@ kubectl delete job pi | |||
OR | |||
|
|||
```bash | |||
kubectl wait --for=condition=complete --timeout=300 job pi | |||
kubectl wait --for=condition=complete --timeout=300s job pi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesn't it work as is?
@@ -201,6 +201,10 @@ kubectl annotate po nginx{1..3} description- | |||
<p> | |||
|
|||
```bash | |||
kubectl delete po --all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will delete all Pods on the default namespace. In this case it will work but in other cases (where there are other Pods in the cluster), this operation might be dangerous.
kubectl delete po --all