I created a video to kick start any beginner with Kubernetes that I wish I could watch when I started doing my research on Kubernetes and Docker.
This video will cover:
– Building a simple Python application
– Dockerfile
– docker images (to list all images)
– docker build (to build an image from a Dockerfile)
– docker rmi (to remove a Docker images from local)
– docker push (to push a local Docker image to Dockerhub)
– docker run (to run a Docker image on the local machine as a container)
– kubectl create -f (to create a Kubernetes deployment)
– kubectl get nodes (to get all the machines that are attached to the Kubernetes cluster)
– kubectl get pods (to get all the pods running your containers on the Kubernetes cluster)
– kubectl scale –replicas (to scale number of pods to run your application)
– kubectl delete -f (to delete the deployment)
== Hardware Required for a 4 Node Pi Cluster ==
1. 4x Raspberry Pi 3 B+ https://amzn.to/2uofGCR
2. 4x SD Cards https://amzn.to/2JwQyEb
3. Cat 6 cables https://amzn.to/2JBeVkb
4. Charging station https://amzn.to/2Fn08Et
5. Switch https://amzn.to/2FrpYah
6. (Optional) Raspberry Pi Case https://amzn.to/2OlSbnb
7. SD card reader https://amzn.to/2CApwG9
Tutorial by Kasper Nissen on how to configure the Raspberry Pi cluster is available @ https://kubecloud.io/setup-a-kubernetes-1-9-0-raspberry-pi-cluster-on-raspbian-using-kubeadm-f8b3b85bc2d1
The Dockerfile & the deployment YAML file for Kubernetes as well as the Python app is available for download on GitHub @ https://github.com/ArturSpirin/k8stest
Back me on Patrion: https://goo.gl/Wsf1jZ
Support through PayPal: https://goo.gl/jYc1Mu
source