Kubernetes Basics

Overview:


Kubernetes has become the leader in Container Orchestration and a working knowledge of Kubernetes is essential for every developer.

In this post I am going to cover some very basic concepts of Kubernetes.




Concepts:


Pod is a logical unit containing one or more containers (if you use a side car). It is the smallest execution unit.
Replica Set represents number of instances of pods which are running. Used for scaling of pods.
Stateful Set represents unique pods which retain state while running. We use Stateful Set while working with stateful workloads like a database cluster or a master slave configuration of workload.
Deployment represents abstraction used to represent and update Pods and ReplicaSets. We use deployment as a "kind" in the yaml files while deploying an app in Kubernetes.
Service is used for defining how we expose/access an application within a Pod.

Generally when we expose an application in Kubernetes using Service, there are four options:
  1. Cluster IP - Apps are exposed internally within the cluster.
  2. NodePort - Apps are exposed via a static port and the IP of the node.
  3. External IP - Apps are exposed via an externally assigned static IP.
  4. Load Balancer - Apps are exposed via cloud provider provided Load balancer.

References:

1. Kubernetes Concepts. Retrieved from https://kubernetes.io/docs/concepts/

Comments

Popular posts from this blog

Pivotal Cloud Foundry (PCF) Integration with Elastic Cloud Storage (ECS)

Restful code example using Spring MVC

Spring Integration - Bulk processing Example