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

Update b.multi_container_pods.md #321

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
5 changes: 5 additions & 0 deletions b.multi_container_pods.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ kubectl run box-test --image=busybox --restart=Never -it --rm -- /bin/sh -c "wge
# you can do some cleanup
kubectl delete po box
```
Alternative approach (easiest for me!)
Copy link
Owner

Choose a reason for hiding this comment

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

Can we remove the "easiest for me" comment? Thanks!


At the k8s docs, search for "Configure Pod Initialization"
Go to the page https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-initialization/#create-a-pod-that-has-an-init-container
copy-paste the code and it is pretty much the exact answer to the question.

</p>
</details>
Expand Down