This content originally appeared on DEV Community and was authored by Vasco Ramos
This post is the first part of a series about Kubernetes. Rather than a series of tutorials, this is meant to be a periodic log of my journey learning the concepts and tools regarding orchestration using Kubernetes.
Installation
As I intended to learn how to use Kubernetes (not managing it), I started a Kubernetes cluster in Google Cloud Platform and worked from there. Hence, I will not address Kubernetes cluster installation and configuration in this series. For more details on how to use the GCP Kubernetes cluster, click here.
First: the concepts
One thing that always helps me better understand and learn a new technology or tool is to understand what is the purpose of the tool or technology, what it is used for, and get the concepts right.
Making sure you understand the basic concepts is a great help in the road ahead of improving your knowledge of the tool/technology you're learning.
So, let's start by understanding what is Kubernetes.
Kubernetes
Kubernetes is an orchestration tool that allows us to manage containerized applications across a group of nodes. Not only providing mechanisms to quickly run those but also how to update, deploy and provide access to them.
Pod: the atom in the Kubernetes universe
A pod is the smallest unit inside the Kubernetes cluster and it represents a collection of application containers and volumes running in the same isolated execution environment. Each container in the same Pod shares the same IP address, namespace, and storage.
Although I described a pod as a collection of containers, the most common pattern is to have one container per pod. If you need to think twice about group multiple containers in the same pod, ask yourself
Will these containers work properly if they land on different machines?
If the answer is "no", you should indeed group those containers in the same pod, otherwise, just don't do it.
Conclusion
If you like my explanation, you can follow me, I will publish the following parts of this series shortly.
This content originally appeared on DEV Community and was authored by Vasco Ramos
Vasco Ramos | Sciencx (2021-03-10T19:04:38+00:00) Learning Kubernetes – Part 1: Introduction. Retrieved from https://www.scien.cx/2021/03/10/learning-kubernetes-part-1-introduction/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.