From 8f423cce2ffb70a51e139f7848182c27e749f5aa Mon Sep 17 00:00:00 2001 From: Aleksandr Melnikov Date: Sun, 18 Oct 2020 23:51:02 -0400 Subject: [PATCH] Multi-container Pods task description was confusing. This commit is fixing it. (#144) Co-authored-by: Aleksandr Melnikov --- b.multi_container_pods.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/b.multi_container_pods.md b/b.multi_container_pods.md index 72d1c9b5..2cc3e101 100644 --- a/b.multi_container_pods.md +++ b/b.multi_container_pods.md @@ -51,7 +51,7 @@ kubectl delete po busybox -### 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"
show