Table of contents
- Kubernetes Overview:
- Task -1 : What is Kubernetes? Write in your own words and why do we call it k8s?
- Task-2 :What are the benefits of using k8s?
- Task -3: Explain the architecture of Kubernetes
- Task -4 :What is Control Plane?
- Task- 5 :Write the difference between kubectl and kubelets.
- Task -6: Explain the role of the API server.
- Thank You...
Kubernetes Overview:
With the widespread adoption of containers among organizations, Kubernetes, the container-centric management software, has become a standard to deploy and operate containerized applications and is one of the most important parts of DevOps.
Originally developed at Google and released as open-source in 2014. Kubernetes builds on 15 years of running Google's containerized workloads and the valuable contributions from the open-source community. Inspired by Google’s internal cluster management system, Borg .
Task -1 : What is Kubernetes? Write in your own words and why do we call it k8s?
Kubenetes is an open-source container orchestration platform in simple words its called as container management tool, its automate the deployment, scaling, management, and operation of containerized applications.
We call Kubernetes K8s because it has 8 letters between K and S.
Task-2 :What are the benefits of using k8s?
Container Management
Auto scaling and healing
High Availability
Service Discovery and Load Balancing
Storage Management
Community and Support
Increased DevOps efficiency for microservices architecture
Task -3: Explain the architecture of Kubernetes
On Master Node -
API Server: This component acts as the entry point for all administrative tasks and serves as the RESTful API for interacting with the Kubernetes cluster.
etcd: A distributed key-value store that stores the configuration data and the desired state of the cluster. It contain all the cluster data.
Scheduler: The scheduler is responsible for determining where to deploy new pods based on resource requirements, affinity, and other policies.
Controller Manager: Controllers are responsible for maintaining the desired state of the system.
On Worker Node -
Kubelet: An agent that communicates with the master node and manages the containers on the node.
Container Runtime: The software responsible for running containers, such as Docker or containerd.
Kube Proxy: A network proxy that maintains network rules on nodes and manages communication between pods.
Task -4 :What is Control Plane?
The Kubernetes control plane manages clusters and resources such as worker nodes and pods. It has the main components used to handle everything including API server, scheduler, control manager and etcd. It handles the worker node using these components.
Task- 5 :Write the difference between kubectl and kubelets.
Kubectl -
It is a command-line tool to interact with the Kubernetes cluster. It allows users to perform various tasks, such as deploying applications, managing resources, inspecting cluster state, and executing administrative operations.
Kubelet -
It is an agent that runs on each worker node in the Kubernetes cluster. Its primary responsibility is to ensure that containers are running in pods as specified by the control plane.
Task -6: Explain the role of the API server.
The Kubernetes API is a set of objects and functions that are used to interact with the Kubernetes platform. These objects can be used to manage resources, such as pods and nodes, as well as perform tasks like scheduling and scaling. The API also allows for communication between components within the platform, allowing for efficient resource allocation and management.