Define kubernetes in Siddharth’s words

what is kubernetes ?

In a microservice architecture if we are running contanierized application workload, kubernetes can help to manage those container workloads hosted on multiple nodes, it works as an orchestrator for container workloads and manage the lifecycle, operations, security, networking, auto-scaling of pods

  1. kubernetes was originally designed by google and later acquired by CNCF who manages it now.
  2. kubernetes was written in Go/Golang
  3. Kubernetes is an orchestrator tool to manage container workloads usually hosted on multiple hosts. it can manage 1000s of container workloads
  4. kubernetes provides loadbalancing feature to pods hosted on multiple hosts
  5. kubernetes provides networking solution between pods and nodes
  6. nginx service can be hosted on same port in different pods and kubernetes can manage it.
  7. kubernetes helps to auto-scale the container workloads
  8. kubernetes simplifies the build deployments and deployments can be completed in few mins.

why kubernetes ?

  1. in a microservice architecture if we are running contanierized application workload, kubernetes can help to manage those workloads hosted on multiple nodes, it works as an orchestrator for container workloads and manage the lifecycle, operations, security, networking, auto-scaling of pods
  2. Kubernetes is an orchestrator tool to manage container workloads usually hosted on multiple hosts. it can manage 1000s of container workloads
  3. kubernetes provides loadbalancing feature to pods hosted on multiple hosts
  4. kubernetes provides networking solution between pods and nodes
  5. nginx service can be hosted on same port in different pods and kubernetes can manage it.
  6. kubernetes helps to auto-scale the container workloads
  7. kubernetes simplifies the build deployments and deployments can be completed in few mins.

what are the components of kubernetes ?

  1. Master node: This is also called control plane which manages or orchestrate the cluster operations.
  2. master node consists of 4 components
  3. etcd (cluster store): this is a key value database and cluster state and config are stored here, every operation in cluster and its state is captured in this database via kube apiserver
  4. kube apiserver: this is the primary component or face of master node which orchestrates the cluster communication between various other componenets and worker nodes. it communicates with scheduler and controller manager and updates the states in etcd database. kubelet from worker node also communicates with kube apiserver
  5. scheduler: this component of master node decides or schedules the pods on nodes, this interacts with apiserver and pass the information about scheduling pods on desired node and then apiserver send this info to kubelet to place the pods on desired nodes.
  6. controller manager: it consists of various controller like node controller, replication controller, namespace controller, etc.the role of this componenet is to manage nodes, pods etc and make sure to keep them in desired state. if we have defined 4 pods in yaml definition file and one of the pod does down, then replication controller manager will send the info to apiserver to update the number of pods to 4 via scheduler –> kubelet on worker nodes.
  7. Then we have worker nodes in kubernetes which actually performs the workload , it consists of 3 componenets.
  8. kubelet: this agent is installed on every worker node and it interacts with apiserver on master node to perform operations on worker nodes, eg placing pods on nodes
  9. kube proxy: this is a networking solution or interface to establish communication between pods and nodes , because of this component every pod is able to communicate with other pods on different nodes
  10. docker run time engine: which is responsible to run containers inside pod

what is pod ?

  1. pod is a logical or virtual wrapper around containers
  2. pod is the smalled object of kubernetes.
  3. single pod can have multiple container running inside it
  4. there can be sidecar container running along with main container in pod
  5. we can not create pod and it can be instantiated as it is a logical component.
  6. lifecycle of pod is pending running, successfull/failed
  7. pod to pod communication happen via kube-proxy installed on nodes
  8. pods are ephemeral, which mean that we can replace the similar pod but it can not be same.