Prev Next

API / Kubernetes Interview questions

Could not find what you were looking for? send us the question and we would be happy to answer your question.

1. What is Kubernetes?

Kubernetes is an open-source container orchestration platform that automates the deployment, scaling, and management of containerized applications.

2. What is a container?

A container is a lightweight, standalone, executable software package that includes everything needed to run an application, including code, runtime, system tools, libraries, and settings.

3. What are the benefits of using Kubernetes?

Kubernetes automates application deployment, scaling, and management, making it easy to deploy and manage container-based applications at scale.

Other benefits include:

  • Simplified application management,
  • Improved scaling and availability,
  • Easy deployment and rollback,
  • Improved resource utilization,
  • Increased portability and flexibility.
4. What is a Kubernetes cluster?

A Kubernetes cluster is a set of nodes that run containerized applications managed by the Kubernetes control plane.

5. What is a node in Kubernetes?

A node is a worker machine in Kubernetes that runs containerized applications.

6. What is a pod in Kubernetes?

A pod is the smallest deployable unit in Kubernetes that represents a single instance of a running process in a container.

7. What is the Kubernetes control plane?

The Kubernetes control plane is a set of components that manages and orchestrates the Kubernetes cluster.

It includes the following components:

  • API server,
  • etcd,
  • kube-scheduler,
  • kube-controller-manager,
  • cloud-controller-manager,

8. Explain the components of Kubernetes Control plane?

The API server is the front-end interface for the Kubernetes control plane that exposes the Kubernetes API.

etcd is a distributed, reliable, and highly available key-value store used to store the configuration data for the Kubernetes cluster.

The Kubernetes scheduler is responsible for scheduling pods to run on available nodes in the cluster based on available resources and other scheduling requirements.

The kube-controller-manager is responsible for running various controller processes that monitor the state of the cluster and make changes as necessary.

The cloud-controller-manager is responsible for managing integration with cloud providers, such as AWS, GCP, or Azure.

9. What is a Kubernetes worker node?

A Kubernetes worker node is a physical or virtual machine that runs containerized applications and services.

It includes the following components:

  • The kubelet is an agent that runs on each node and communicates with the Kubernetes API server to manage the container lifecycle.
  • kube-proxy
  • The kube-proxy is responsible for managing network routing between pods and services in the Kubernetes cluster.
  • A container runtime is responsible for starting and stopping containers on a node. Examples include Docker, containerd, and CRI-O.
10. Why use namespace in Kubernetes?

Namespaces in Kubernetes are used for dividing cluster resources between users. It helps the environment where more than one user spread projects or teams and provides a scope of resources.

11. What is a Kubernetes service?

A Kubernetes service is an abstraction layer that exposes a set of pods as a network service, allowing them to communicate with each other and with other services outside the cluster.

12. What is a Kubernetes DNS?

Kubernetes DNS is a service that provides DNS resolution for services and pods in a Kubernetes cluster.

13. What is a pod network in Kubernetes?

A pod network is a network overlay that connects pods in a Kubernetes cluster.

14. What is the Kubernetes CNI (Container Networking Interface)?

The Kubernetes CNI is a specification that defines a standardized interface for integrating with container networking plugins.

«
»
Rancher Interview questions

Comments & Discussions