top of page

TechBobbles

tech logo with triangle shape.jpg
  • Writer's pictureAdmin

My Path into Kubernetes and Dev-ops



Happy weekend!

Lately, I've been diving into Dev-Ops, and I've found Kubernetes to be incredibly interesting. It really streamlines things for developers by taking care of all the heavy lifting when it comes to infrastructure setup. Looking ahead, I think developers will rely less on raw coding skills and more on creative problem-solving. Kubernetes is pivotal here—it automates critical tasks like load balancing, auto-scaling, and auto-healing, which are essential for enterprise-level applications. Let's explore further to uncover more about its capabilities and advantages!



Kubernetes

Why Choose Kubernetes?

Kubernetes not only leverages containerization but also excels in orchestration. Here's why it stands out:


1. Auto-scaling Solution: Kubernetes effectively addresses the auto-scaling challenge, allowing applications to dynamically adjust resources based on demand.


2. Auto-healing Capabilities: It incorporates robust techniques for auto-healing, ensuring applications recover from failures automatically.


3. Enterprise-Level Support: Kubernetes offers comprehensive support for enterprise environments, meeting stringent operational and security requirements.


4. Cluster Support for High Availability: It supports clustering, enhancing application availability by distributing workloads across multiple nodes.



In essence, Kubernetes is not just about container management—it's a powerful orchestration tool that streamlines operations and boosts reliability in modern IT environments.



Kubernetes Basic Components:

Worker Node:

1. Container Runtime: Manages the execution of containers.

2. Kubelet: Ensures pods are running and healthy on the node.

3. Kube-proxy: Handles networking within pods and provides load balancing services.

kubernetes components

Master Node:

1. API Server: Exposes Kubernetes API for user and administrative interactions.

2. Scheduler: Assigns workloads to nodes based on resource availability.

3. etcd: Stores configuration data and cluster state for Kubernetes.

4. Controller Manager: Maintains control loops that regulate the state of cluster resources.

5. Cloud Controller Manager: Integrates cloud-specific functionality into Kubernetes, managing interactions with cloud providers.


kubectl
What is a Pod?

A Pod is the basic unit in Kubernetes that can hold one or more containers. It encapsulates containers that are tightly coupled and share resources like networking and storage. Configuration details such as network ports and volume mounts are specified in a YAML file.


Comparison: Container vs. Pod vs. Deployment

Container: Executes a Docker image, providing an isolated runtime environment for an application.


Pod: Similar to a container but can host multiple containers that work together. Defined in a YAML file, it manages shared resources and configuration.


Deployment: A Kubernetes resource that manages Pods and their lifecycle. It uses a manifest file to define and deploy Pods, providing features like auto-scaling and auto-healing through replica sets.

Deployment
Why is Service used in Kubernetes?

In Kubernetes, when a new Pod is created by a ReplicaSet, it obtains a new IP address which is generally not directly accessible. To solve this issue, Services are used. Services provide a consistent way to access Pods using labels defined in resource templates. This process, known as service discovery, ensures that applications within the cluster can reliably communicate with each other.


Why is Ingress used?

Ingress is used to manage external access to services within the cluster. It acts as an API object that provides HTTP and HTTPS routing capabilities to route traffic from external sources to services inside the Kubernetes cluster.


ConfigMap what it is used for?

ConfigMap is used to store configuration data in key-value pairs that can be consumed by containers running in pods or other Kubernetes resources. Here are the primary purposes and uses of ConfigMap:


Configuration Data Storage

Environment Variables

Configuration Files

Dynamic Updates

Integration with Pods and Deployments

Managing Application Configuration



Comments


Thanks for visiting 

Bangalore,

Siddartha1192@gmail.com

+919148014455

  • Linkedin
  • Wix Facebook page
  • Wix Twitter page

Subscribe to get exclusive updates

bottom of page