In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
This article introduces the relevant knowledge of "what are the Kubernetes interview questions and answers". In the operation of actual cases, many people will encounter such a dilemma. Next, let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
1. What is Kubernetes?
Kubernetes is an open source container management tool responsible for container deployment, container scaling and load balancing. As a creative work of Google, it provides an excellent community and works with all cloud providers. Therefore, we can say that Kubernetes is not a containerized platform, but a multi-container management solution.
2. What is the relationship between Kubernetes and Docker?
As we all know, Docker provides container lifecycle management, and Docker images build runtime containers. However, because these individual containers must communicate, Kubernetes is used. Therefore, we say that Docker builds containers that communicate with each other through Kubernetes. Therefore, you can use Kubernetes to manually associate and orchestrate containers that run on multiple hosts.
3. What is Container Orchestration?
Consider a scenario where an application has 5-6 microservices. Now, these micro-services are placed in separate containers, but they cannot communicate without container orchestration. Therefore, because choreography means that all instruments coexist harmoniously in music, similar container choreography means that all services in each container work together to meet the needs of a single server.
4. How does Kubernetes simplify containerized deployment?
Because a typical application will have a container cluster that runs across multiple hosts, all of these containers need to communicate with each other. So, to do this, you need something that can load balance, expand, and monitor the container. Because Kubernetes is cloud-independent and can run on any public / private provider, it must be your choice to simplify containerized deployment.
5. How much do you know about Kubernetes clusters?
The basis behind Kubernetes is that we can implement the required state management, I mean that we can provide a specific configuration of the cluster service, and the cluster service will run in the infrastructure and run the configuration.
So, as you can see, the deployment file will have all the configurations required to provide it to the cluster service. Now, the deployment file will be provided to the API, and it is up to the cluster service to decide how to arrange these pod in the environment and ensure the number of pod running correctly.
Therefore, the API in front of the service, the worker node and the Kubelet process running by the node together constitute the Kubernetes cluster.
6. What are the different components of Kubernetes Architecture?
Kubernetes Architecture has two main components-the master node and the work node. As shown in the following figure, there are many built-in components in the master and worker nodes. The primary node has kube-controller-manager,kube-apiserver,kube-scheduler and so on. The worker node has kubelet and kube-proxy running on each node.
7. Can you tell me something about the work of the master node in Kubernetes?
Kubernetes master controls the presence of the container and the inside of the node. Now that these separate containers are contained inside the container and inside each container, you can have a different number of containers depending on your configuration and requirements.
Therefore, if you must deploy pod, you can deploy them using either the user interface or the command line interface. Then, the pod is dispatched on the nodes, and the pod is assigned to these nodes according to the resource requirements. Kube-apiserver ensures that communication is established between the Kubernetes node and the main component.
8. What is the function of kube-apiserver and kube-scheduler?
Kube-apiserver follows the scale-out architecture and is the front end of the master node control panel. This exposes all the API of the Kubernetes master node component and is responsible for establishing communication between the Kubernetes node and the Kubernetes master component.
Kube-scheduler is responsible for the distribution and management of workloads on the work node. Therefore, it selects the most appropriate node to run the unscheduled pod according to the resource requirements and tracks the resource utilization. It ensures that workloads are not scheduled on full nodes.
9. What do you know about Kubernetes's load balancer?
Load balancer is one of the most common and standard ways to expose services. Two types of load balancers are used according to the work environment, namely internal load balancer or external load balancer. The internal load balancer automatically balances the load and distributes the container using the desired configuration, while the external load balancer directs traffic from the external load to the back-end container.
10. What's the difference between Replica Set and Replication Controller?
Replica Set and Replication Controller are almost identical. They all ensure that a specified number of pod copies are run at any given time. The difference is to copy the selectors used by pod. Replica Set uses a collection-based selector, while Replication Controller uses a permission-based selector.
Equity-Based selector: this type of selector allows you to filter by pressing tag keys and values. Therefore, in layman terms, Equity-based selectors will only find pod that have exactly the same phrase as the tag.
Example: assuming that your tag key indicates app = nginx, using this selector, you can only find those pod where the tag application is equal to nginx.
Selector-Based selector: this type of selector allows you to filter keys based on a set of values. So, in other words, the Selector-based selector will look for the pod that has been mentioned and its tags in the collection.
Example: suppose your tab key displays the application in (nginx,NPS,Apache). Then, using this selector, if your application equals any nginx,NPS or Apache, the selector treats it as a real result.
This is the end of the content of "Kubernetes interview questions and answers". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.