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

corrected pod name #260

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion b.multi_container_pods.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ kubectl delete po busybox
Easiest way to do it is create a pod with a single container and save its definition in a YAML file:

```bash
kubectl run web --image=nginx --restart=Never --port=80 --dry-run=client -o yaml > pod-init.yaml
kubectl run box --image=nginx --restart=Never --port=80 --dry-run=client -o yaml > pod-init.yaml
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, where does the name box come from?

```

Copy/paste the container related values, so your final YAML should contain the volume and the initContainer:
Expand Down
5 changes: 5 additions & 0 deletions c.pod_design.md
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,11 @@ kubectl create cronjob busybox --image=busybox --schedule="*/1 * * * *" -- /bin/
</details>

### See its logs and delete it
```bash
kubectl get po # copy the container just created
kubectl logs <container> # you will see the date and message
kubectl delete cj busybox --force #cj stands for cronjob and --force to delete immediately
```

<details><summary>show</summary>
<p>
Expand Down