Kubernetes Interview Questions and Answers
Question - 11 : - Define Kubernetes controller manager
Answer - 11 : -
The controller manager is a daemon used for garbage collection, core control loops, and namespace creation. It enables the running of more than one process on the master node.
Question - 12 : - Why use namespace in Kubernetes?
Answer - 12 : -
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.
Question - 13 : - Why use Kubernetes?
Answer - 13 : -
Kubernetes is used because:
- Kubernetes can run on-premises bare metal, OpenStack, public clouds Google, Azure, AWS, etc.
- It helps you to avoid vendor lock issues as it can use any vendor-specific APIs or services except where Kubernetes provides an abstraction, e.g., load balancer and storage.
- It will enable applications that need to be released and updated without any downtime.
- Kubernetes allows you to assure those containerized apps run where and when you want and help you to find resources and tools which you want to work.
Question - 14 : - What are the features of Kubernetes?
Answer - 14 : -
The features of Kubernetes are:
- Automated Scheduling
- Self-Healing Capabilities
- Automated rollouts & rollback
- Horizontal Scaling & Load Balancing
- Offers environment consistency for development, testing, and production
- Infrastructure is loosely coupled to each component can act as a separate unit
- Provides a higher density of resource utilization
- Offers enterprise-ready features
- Application-centric management
- Auto-scalable infrastructure
- You can create predictable infrastructure
Question - 15 : - What is Kubectl used for?
Answer - 15 : -
Kubectl is a software for controlling Kubernetes clusters. Ctl stands for control, which is a command-line interface to pass the command to the cluster and manage the Kubernetes component.
Question - 16 : - Define Ingress Network
Answer - 16 : -
Ingress network is defined as a collection of rules which allow permission for connections into the Kubernetes cluster.
Question - 17 : - What is Kube-proxy?
Answer - 17 : -
Kube-proxy is an implementation of both a network proxy and a load balancer. It is used to support service abstraction used with other networking operations. It is responsible for directing traffic to the container depend on IP and the port number.
Question - 18 : - What are the disadvantages of Kubernetes?
Answer - 18 : -
- Kubernetes dashboard is not as helpful as it should be
- Security is not very effective.
- It is very complex and can reduce productivity
- Kubernetes is more costly than its alternatives.
Question - 19 : - Define kubelet
Answer - 19 : -
The kubelet is a service agent which controls and maintains group pf pods by checking pod specification using Kubernetes. The kubelet runs on each node and allows to communicate between a master node and a slave node.
Question - 20 : - Explain node port
Answer - 20 : -
The node port service is a fundamental way to get external traffic to your service. It opens a particular port on all nodes and forwards network traffic sent to this port.