Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to deploy kubelet components and kube-proxy components in node nodes

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Introduction to kubelet components kubernetes is a distributed cluster management system that runs a worker on each node (node) to manage the life cycle of the container. The main function of this worker program is to regularly obtain the desired state of pod/container on the node from somewhere (what container to run, the number of copies to run, how to configure the network or storage, etc.) And call the corresponding container platform interface to achieve this state. The kubelet component regularly reports the status of the current node to the apiserver for cleaning up the images and containers when scheduling, ensuring that the images on the nodes will not occupy full disk space, and that the exited containers will not take up too many resources to run HTTP Server and provide node and pod information to the outside world, if in debug mode It also includes debugging information and so on. Kubelet main functions Pod management container health check container monitoring kube-proxy component introduces the implementation of Pod network proxy on node nodes, maintenance of network planning and four-tier load balancing work experimental deployment experimental environment Master01:192.168.80.12Node01:192.168.80.13Node02:192.168.80.14 this experimental deployment is the continuation of the previous article master node deployment, the experimental environment remains the same. The main purpose of this article is to deploy kubelet components and kube-proxy components in node nodes. Deploy master01 server operations [root@master01 k8s] # cd / root/k8s/kubernetes/server/bin / / enter the previously unzipped software command directory [root@master01 bin] # lsapiextensions-apiserver kube-apiserver.docker_tag kube-proxycloud-controller-manager kube-apiserver.tar Kube-proxy.docker_tagcloud-controller-manager.docker_tag kube-controller-manager kube-proxy.tarcloud-controller-manager.tar kube-controller-manager.docker_tag kube-schedulerhyperkube kube-controller-manager.tar kube-scheduler.docker_tagkubeadm kubectl kube-scheduler. Tarkube-apiserver kubelet mounter [root@master01 bin] # scp kubelet kube-proxy root@192.168.80.13:/opt/kubernetes/bin/ put kubelet, Copy kube-proxy to node node root@192.168.80.13's password:kubelet 100% 168MB 91.4MB/s 00:01kube-proxy 100% 48MB 71.8MB/s 00:00 [root @ master01 bin] # scp kubelet kube-proxy root@192.168.80.14:/opt/kubernetes/bin/root@192.168.80.14's password:kubelet 100% 168MB 122.5MB/s 00:01kube-proxy 48MB 95.2MB/s 00:00 [root@master01 bin] # scp / mnt/node.zip root@192.168.80.13:/root / / copy the compressed files mounted by the host to the node01 node root@192.168.80.13's password:node.zip 1240 4.1KB/s 00:00node01 node operation [root@node01 ~] # lsanaconda-ks.cfg flannel.sh flannel-v0.10.0-linux-amd64.tar.gz node.zip README.md [root@node01 ~] # unzip node.zip / / decompress the package Archive: node.zipinflating: proxy.shinflating: kubelet.sh

Master01 node operation

[root@master01 bin] # cd / root/k8s/ [root@master01 K8s] # mkdir kubeconfig/ / create profile directory [root@master01 K8s] # cd kubeconfig [root@master01 kubeconfig] # cp / mnt/kubeconfig.sh / root/k8s/kubeconfig/ copy script to configuration file directory [root@master01 kubeconfig] # mv kubeconfig.sh kubeconfig/ / rename [root@master01 kubeconfig] # vim kubeconfig / / Edit file # create TLS Bootstrapping Token#BOOTSTRAP_TOKEN=$ (head-c 16 / dev/urandom | od-An-t x | tr-d') BOOTSTRAP_TOKEN=0fb61c46f8991b718eb38d27b605b008cat > token.csv

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report