Kubernetes Interview Question & Answers
Following are Kubernetes Interview Questions and Answers:
- What is Kubernetes?
Answer: A container orchestration tool or system, such as Kubernetes, is a free and open-source tool or method used to automate operations such as the administration, monitoring, scaling, and deployment of containerized applications. As a result of its ability to handle the grouping of containers, It can manage many containers, allowing for logical unit discovery and management.
- What is the difference between Kubernetes and Docker?
Answer: Docker is an open-source platform for software development that is free to use and modify. Essentially, it bundles the settings and dependencies that the software/application needs to execute inside a container, which allows for mobility and a variety of additional benefits. Kubernetes provided manual linking and orchestration of numerous containers operating on several hosts. They were generated using the Docker container orchestration system.
- What are the essential elements of the Kubernetes architecture?
Answer: There are two elements in Kubernetes architecture
- Master node
- Worker node
The Individual components can be found in each of these components.
- What is a node in Kubernetes?
Answer: The smallest fundamental unit of computing hardware is the node. It symbolizes a single machine in a cluster, a physical data center unit, or a virtual machine from a cloud provider. In a Kubernetes cluster, any device can take the place of any other machine. In Kubernetes, the master is in charge of the nodes that have containers.
- What does the node status contain?
Answer: Address, Condition, Capacity, and Info are the four essential components of a node’s status.
- What process runs on the Kubernetes master node?
Answer: The Kube-API server process operates on the master node and allows more instances to be scaled.
- What are the different services within Kubernetes?
Answer: Different types of Kubernetes services includes
- Cluster IP service
- Node port service
- External name creation service
- Load balancer service
8. What is Cluster Ip service?
Answer: The Cluster IP service is the default Kubernetes service that provides an internal service that other apps in your cluster can access (with no external access).
- What is Node Port service?
Answer: The Node Port service is the most basic method of directing external traffic to your benefit. It configures all Nodes to open a specific port and redirects any traffic submitted to that port to the service.
- What is a Load balancer in Kubernetes?
Answer: To expose services to the internet, the Load Balancer service is used. For example, a network load balancer establishes a single IP address that directs all traffic to your benefit.
- How to run Kubernetes locally?
Answer: The MiniKube tool can be used to build up Kubernetes locally. In a virtual machine on the computer, it operates a single-node cluster. As a result, it provides the ideal solution for customers who are still learning Kubernetes.
- What is Kube-scheduler?
Answer: The Kube-scheduler assigns nodes to newly created pods.
- What is a Kube-let?
Answer: The Kube-let is a service agent that monitors the Kubernetes API server for pod specs and controls and maintains a group of pods. It protects the pod lifecycle by guaranteeing that all containers in a given set are up and functioning. The Kube-let is software that runs on each node and allows communication between the master and slave nodes.
- What is KubeCtl?
Answer: KubeCtl is a command-line interface (CLI) for running commands on Kubernetes clusters. As a result, various construct and manage orders on the Kubernetes component are used to operate the Kubernetes cluster manager.
- Briefly explain Kube-proxy?
Answer: Kube-proxy is a load balancer and network proxy that supports service abstraction and other networking activities. Based on the port number and IP address of incoming requests, Kube-proxy is in charge of routing traffic to the appropriate container.
- What is a pod in Kubernetes?
Answer: High-level structures that enclose one or more containers are known as pods. It is because Kubernetes does not run containers directly. Containers in the same pod are connected by a local network and resources, allowing them to communicate with other containers in the pod as if they were on the same system while retaining isolation.
- What is Heapster in Kubernetes?
Answer: For data acquired by the Kublet, a Heapster is a performance monitoring and metrics collection solution. This aggregator is natively supported and runs in a Kubernetes cluster like any other pod, allowing it to detect and query usage statistics from all nodes in the cluster.
- What is Kubernetes controller manager?
Answer: The controller manager is a daemon that manages core control loops, garbage collection, and Namespace generation. It allows several processes to run on the master node, even if they were all compiled to run as a single process.
- What are the types of controller managers?
Answer: The endpoints controller, service accounts controller, namespace controller, node controller, token controller, and replication controller are the primary controller managers that can operate on the master node.
- What are the types of Kubernetes load balancers?
Answer: There are two types of load balancings
Internal load balancer: This balancer automatically balances loads and assigns the needed incoming load to the pods.
External load balancer: This form of balancer directs the traffic from external loads to backend pods by this form of the balancer.
Being a passionate person, I love to present trending technologies in an innovative way.