Skip to content

Commit

Permalink
Multi-container Pods task description was confusing. This commit is f…
Browse files Browse the repository at this point in the history
…ixing it. (dgkanatsios#144)

Co-authored-by: Aleksandr Melnikov <amelnikov@eastbanctech.com>
  • Loading branch information
inzheneher and Aleksandr Melnikov authored Oct 19, 2020
1 parent 05c0b20 commit 8f423cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion b.multi_container_pods.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ kubectl delete po busybox
</details>


### Create nginx pod exposed at port 80. Add an busybox init container which downloads the k8s page by "wget -O /work-dir/index.html http://kubernetes.io". Make a volume of type emptyDir and mount it in both pods. For nginx mount it on "/usr/share/nginx/html" and for the initcontainer use mount it on "/work-dir". When done, get the IP of the nginx pod and create a busybox pod and run wget -O- IP
### Create pod with nginx container exposed at port 80. Add an busybox init container which downloads the k8s page by "wget -O /work-dir/index.html http://kubernetes.io". Make a volume of type emptyDir and mount it in both containers. For nginx container mount it on "/usr/share/nginx/html" and for the initcontainer use mount it on "/work-dir". When done, get the IP of the created pod and create a busybox pod and run "wget -O- IP"

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

0 comments on commit 8f423cc

Please sign in to comment.