Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

akorzynski
Copy link

kubectl delete po --all

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
Copy link
Owner

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
Copy link
Owner

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
Copy link
Owner

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants