Kubernetes -cloud-native applications

What is a key characteristic of a cloud-native application?

Cloud-native applications are designed to be distributed into microservices, each performing a specific task and running in a container. This approach enables scalability, fast deployment, and consistent operation across different environments.

What is a container in the context of cloud-native applications?

Containers provide a lightweight, isolated environment for applications, including only the necessary resources and dependencies. This ensures consistent operation across different environments, from development laptops to cloud providers.

What is the primary purpose of Kubernetes?

Kubernetes is a container orchestration platform that automates the deployment, scaling, and management of containerized applications. It handles complex tasks like resource allocation, load balancing, and service discovery.

what is smallest deployable unit in K8s?

In Kubernetes, the smallest deployable unit is a pod. Containers must be wrapped in a pod for deployment, as pods can contain one or more containers that share resources.

what is Kubernetes cluster?

A Kubernetes cluster consists of multiple machines (nodes) running Kubernetes software, forming a unified system for managing containerized applications. It can be hosted on cloud providers or on-premises.

What is thr Role of master node in k8s cluster?

Master nodes form the control plane of Kubernetes, making decisions about workload scheduling and cluster management. They orchestrate the overall state and activities of the cluster.

what is the primary function of worker nodes in a Kubernetes cluster?

Worker nodes are responsible for running the actual container workloads (pods) as scheduled by the master nodes. They provide the computational resources needed to run applications.

How do nodes in a Kubernetes cluster collaborate to provide benefits like automated scaling and load balancing?

In a Kubernetes cluster, master nodes make decisions about scheduling and management, while worker nodes execute these decisions by running container workloads. This collaboration, orchestrated by Kubernetes, enables features like automated scaling and load balancing.

What is an image in the context of containerization?

In containerization, an image is a pre-built package containing an application's code and all its dependencies. It serves as a blueprint for creating containers, ensuring consistency across different environments.

How does Kubernetes manage applications?

Kubernetes uses a declarative approach where you describe the desired state of your application. You submit this configuration, and Kubernetes handles the implementation details to achieve and maintain that state.

What is a Kubernetes Service used for?

Kubernetes Services provide a stable endpoint for accessing pods, which may be created or destroyed frequently. They also act as load balancers, distributing traffic evenly among multiple instances of an application.

How does Kubernetes handle storage for databases?

Kubernetes automates storage provisioning using Persistent Volume Claims (PVCs) and Persistent Volumes (PVs). When a PVC is created, Kubernetes finds or creates a matching PV, abstracting away the underlying storage infrastructure.

What advantage does Kubernetes offer in terms of cloud providers?

Kubernetes is vendor-neutral, functioning consistently across various cloud providers or on-premises. This abstraction allows for portable configurations and workloads, preventing vendor lock-in.