0% found this document useful (0 votes)
21 views

Kubernetes - Interview - Questions - and - Answers by MRINAL sAURAJ Nit Agartala

Uploaded by

mrinal sauraj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

Kubernetes - Interview - Questions - and - Answers by MRINAL sAURAJ Nit Agartala

Uploaded by

mrinal sauraj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Kubernetes Interview Questions and

Answers
What is Kubernetes?
Kubernetes is an open-source platform used for managing containerized applications in
different environments like physical machines, virtual machines, or cloud platforms.

What is a container?
A container is a lightweight, portable unit of software that includes everything needed to
run an application, such as the code, runtime, system tools, and libraries.

What is a Pod in Kubernetes?


A Pod is the smallest and simplest Kubernetes object. It represents a single instance of a
running process in a cluster and can contain one or more containers.

What is a Node in Kubernetes?


A Node is a worker machine in Kubernetes. It can be a virtual or physical machine, and it
runs the Pods.

What is a Cluster in Kubernetes?


A Cluster is a set of Nodes that run containerized applications managed by Kubernetes.

What is the role of the Master Node?


The Master Node controls and manages the cluster. It runs processes like the API server,
scheduler, and controller manager.

What is kubectl?
kubectl is a command-line tool for interacting with the Kubernetes API server. It helps
manage Kubernetes clusters and deploy applications.

What is a Deployment in Kubernetes?


A Deployment is a Kubernetes object that manages a set of identical Pods, ensuring they are
running and updating them if needed.
What is a Service in Kubernetes?
A Service is an abstraction that defines a logical set of Pods and a policy to access them. It
helps connect applications together.

What is a Namespace in Kubernetes?


A Namespace is a way to divide cluster resources between multiple users or teams,
providing a scope for names.

What is a ConfigMap?
A ConfigMap is an API object that allows you to store configuration data as key-value pairs.
It can be used by Pods.

What is a Secret in Kubernetes?


A Secret is an API object that stores sensitive data, such as passwords, tokens, or keys, in a
secure manner.

What is a Persistent Volume (PV)?


A Persistent Volume is a piece of storage in the cluster that has been provisioned by an
administrator, used to store data persistently.

What is a Persistent Volume Claim (PVC)?


A Persistent Volume Claim is a request for storage by a user, where a Pod claims a specific
amount of storage.

What is a ReplicaSet?
A ReplicaSet ensures that a specified number of identical Pods are running at any given
time.

What is the Kubernetes API server?


The API server is the central management point of the Kubernetes cluster, providing a
RESTful interface for all interactions.

What is the kube-scheduler?


The kube-scheduler watches for newly created Pods that have no Node assigned and selects
a Node for them to run on.
What is the kube-controller-manager?
The kube-controller-manager runs controllers that handle routine tasks in the cluster, like
replicating Pods and managing endpoints.

What is the etcd database?


etcd is a key-value store used by Kubernetes to store all its configuration data, representing
the state of the cluster.

What is Helm?
Helm is a package manager for Kubernetes, helping to manage complex applications and
their dependencies.

What is a DaemonSet?
A DaemonSet ensures that a copy of a Pod is running on all or some Nodes in the cluster.

What is a Job in Kubernetes?


A Job creates one or more Pods and ensures that a specified number of them successfully
complete their task.

What is a StatefulSet?
A StatefulSet is used for managing stateful applications, providing stable network identities
and persistent storage.

What is a Load Balancer Service?


A Load Balancer Service automatically distributes incoming traffic across multiple Pods.

What is Ingress in Kubernetes?


Ingress is an API object that manages external access to services, typically HTTP.

What is the difference between a Deployment and a StatefulSet?


Deployments are used for stateless applications, while StatefulSets are used for stateful
applications that require stable storage and unique network identifiers.
What is a ResourceQuota?
A ResourceQuota limits the resources, such as CPU and memory, that a Namespace can
consume.

What is an Endpoint in Kubernetes?


An Endpoint is a collection of IP addresses and ports that point to the actual Pods running
the service.

What is a kubelet?
The kubelet is an agent that runs on each Node in the cluster and ensures that containers
are running in Pods.

What is a Horizontal Pod Autoscaler (HPA)?


HPA automatically scales the number of Pods in a deployment or replica set based on
observed CPU usage or other metrics.

What is a Vertical Pod Autoscaler (VPA)?


VPA automatically adjusts the resource limits and requests of Pods based on their usage.

What is Taint and Toleration in Kubernetes?


Taints and Tolerations are used to set constraints that only certain Pods can be scheduled
on specific Nodes.

What is a NodePort Service?


A NodePort Service exposes the service on each Node's IP address at a static port.

What is a ClusterIP Service?


A ClusterIP Service exposes the service on a cluster-internal IP address, making it accessible
only within the cluster.

What is a Headless Service?


A Headless Service is used when you don't need load-balancing and a single Service IP. It
allows you to directly access the Pods.
What is Minikube?
Minikube is a tool that lets you run a single-node Kubernetes cluster on your local machine.

What is the difference between Docker and Kubernetes?


Docker is a platform for building and running containers, while Kubernetes is a platform for
managing and orchestrating those containers.

What is the role of the Container Runtime Interface (CRI)?


CRI is an API for container runtimes, allowing Kubernetes to use different container
runtimes like Docker, containerd, and CRI-O.

What is a Volume in Kubernetes?


A Volume is a directory, possibly with some data in it, which is accessible to the containers
in a Pod.

What is an Init Container?


An Init Container is a special type of container that runs before the main application
containers in a Pod, used to set up the environment.

You might also like