DIY Container Cluster

prepare a test image PER NODE, and test it with Docker first,

docker pull larsks/thttpd
docker images
mkdir /var/tmp/content/
echo '<p>kube1' > /var/tmp/content/index.html
echo '<p>kube2' > /var/tmp/content/index.html
echo '<p>kube3' > /var/tmp/content/index.html
docker run --name thttpd-app -p 80:80 -v /var/tmp/content:/content larsks/thttpd -d /content
docker run --name thttpd-app -p 80:80 -v /var/tmp/content:/content larsks/thttpd -d /content
docker run --name thttpd-app -p 80:80 -v /var/tmp/content:/content larsks/thttpd -d /content

http://NODE1/
http://NODE1/
http://NODE1/

^C
docker ps -a | grep -v k8s
docker rm thttpd-app

Nethence | Doc | Pub | Lab | Pbraun | SNE Russia | xhtml