Kubernetes Defined Kubernetes in Anil’s words.
Limited Time Offer!
For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!
- What is Kubernetes ?
- Kubernetes is an orchestration tool.
- Master includes 4 services/tools 1. api server 2. etcd 3. controller 4. scheduler
- worker/node contains 3 services/tools 1. kubelet 2.kubeproxy 3. docker runtime
- Worker node can also be called as workstation or minions.
- Master can be called as control plane also.
- All the requests are served by api server.
- Etcd is key value store, which is updated by api server.
- Etcd can also be used as ditributed data store in a clustered environment.
- Controller service is used to monitor resouces in loop and act as directed and to update apiserver.
- Scheduler is used to schedule the instantiate the pods on different nodes.
- Kubelet is the tool which communicates with the api server and updates about the nodes, takes instructions from api server.
- kubeproxy is used to provide the network connectivity between different nodes and pods.
- Pods are deployed on the nodes by the scheduler.
- yml is used to write the instructions to deploy the resouces.
- yml is converted to json and used, all communication happens in json.
- All major cloud service providers provide managed services for kubernetes.
- Why Kubernetes ?
- Ease of use with the easy to use yml coding.
- Faster deployments both blue/green.
- Automation of the deployments.
- Horizontal Autoscaling in multiple pods.
- Saves time from troubeshooting.
- Resuable code.
- What is POD.
- Smallest object of the kubernetes.
- multiple containers can be deployed using a pod.
- localhost can be used for inter container communication.
- in a multi container pod, if one container dies , whole pod will be gone.
- Pods can’t be accessed directly, containers can be.
- Ip is assinged to POD.
- POD is not resuable.
- IPtables are used for POD networking.