In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Kubernetes-Docker Cluster Management Kubernetes introduces that Kubernetes is an open source Docker container choreography system, Kubernetes is referred to as K8S.
Schedule the nodes of the computing cluster and dynamically manage the jobs above
Group applications by logical unit by using the concepts of [labels] and [pods]
K8S is used for deployment, expansion and management of container applications. K8S provides a series of functions such as container orchestration, resource scheduling, auto scaling, deployment management, service discovery and so on. Kubernetes goal is to make deployment containerization simple and efficient official website: http://www.kubernetes.ioKubernetes feature
Self-repair
Restart failed containers in case of node failure, replace and redeploy to ensure the predicted number of copies; kill containers that fail health checks, and do not process client requests until they are ready to ensure that online services are not interrupted.
Elastic expansion
Use command, UI or automatic rapid expansion and reduction of application instances based on CPU usage to ensure high availability at peak concurrency of application business; recover resources at low peak time and run services at minimum cost
Automatic deployment and rollback
K8S uses rolling update applications to update one Pod at a time instead of deleting all Pod at the same time. If there are problems in the update process, the changes will be rolled back to ensure that the upgrade will not affect the business.
Service discovery and load balancing
K8S provides a unified access entry for multiple containers (internal IP address and UI DNS address), and all containers associated with load balancer, so that users do not have to consider the container IP problem.
Confidentiality and configuration management
Manage confidential data and application configuration. There is no need to expose sensitive data in the mirror to improve the security of sensitive data. And some commonly used configurations can be stored in K8S to facilitate the use of applications.
Storage choreography
Mounting external storage systems, whether from local storage, public clouds (such as AWS), or network storage (NFS, GlusterFS) are used as part of cluster resources, greatly improving storage flexibility
Batch processing
Provide one-time tasks, scheduled tasks; meet the scenarios of batch data processing and analysis.
Kubernetes Cluster Architecture and components
Master component
Kube-apiserver
Kubernetes API, the unified entrance to the cluster and the coordinator of each component, provides interface services through RESTful API. All object resource additions, deletions, modifications, and monitoring operations are handed over to APIServer and then submitted to Etcd for storage.
Kube-controller-manager
Handle the regular background tasks in the cluster, each resource corresponds to a controller, and ControllerManager is responsible for managing these controllers.
Kube-scheduler
According to the scheduling algorithm, select a Node node for the newly created Pod, which can be deployed arbitrarily, on the same node or on different nodes.
Etcd
Distributed key storage system, which is used to store cluster state data, such as Pod, Server and other object information.
Node component
Kubelet
Kubelet is the Agent of MAster on the Node node, which manages the lifecycle of native running containers, such as creating containers, mounting data volumes on Pod, downloading secret, getting container and node status, and so on. Kubelet converts Pod into a set of containers.
Bube-proxy
Implement Pod network agent on Noed node, maintain network planning and four-layer complex = load balancing work.
Docker or rocker
Container engine, run the container.
Core concepts of Kubernetes
Pod
Minimum deployment unit
A collection of containers
A container shared network namespace in Pod
Pod is short-lived
Controllers
ReplicaSet: ensure the expected number of Pod copies
Deployment: stateless application deployment
StatefulSet: stateful application deployment
DaemonSet: make sure all Node are running the same Pod
Job: one-time task
Cronjob: scheduled task
Higher-level objects, deploying and managing Pod
Service
Prevent Pod from losing contact
Define a set of access policies for Pod
Label: tag, attached to a resource, used to associate objects. Query and filter
Namespaces: namespace to logically isolate objects
Annotations: thank you for reading!
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.