Open 1dropaflame opened 1 year ago
sure
On Sun, May 7, 2023 at 6:18 PM Dimitris-Ilias Gkanatsios < @.***> wrote:
@.**** commented on this pull request.
In b.multi_container_pods.md https://github.com/dgkanatsios/CKAD-exercises/pull/321#discussion_r1186930071 :
@@ -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!)
Can we remove the "easiest for me" comment? Thanks!
— Reply to this email directly, view it on GitHub https://github.com/dgkanatsios/CKAD-exercises/pull/321#pullrequestreview-1415978417, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMP4X42A4UAF4FVRDSEGQQLXFAUUZANCNFSM6AAAAAAXUSIV2M . You are receiving this because you authored the thread.Message ID: @.***>
Alternative approach (easiest for me!)
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.