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 > Servers >
Share
Shulou(Shulou.com)06/03 Report--
What this article shares to you is the tutorial of installing and deploying controller-manag in K8s. I believe most people don't know how to install and deploy yet. In order to let you learn, I have summarized the following contents. Without saying much, let's read on.
Install the controller-manager service # 221Universe 222Machine on two nodes nodes: bin] # vi / optmobilkubernetesAccording to master http://127.0.0.1:8080 http://127.0.0.1:8080\-- service. -account-private-key-file. / cert/ca-key.pem\-- service-cluster-ip-range 192.168.0.0 cert/ca.pem 16\-- root-ca-file. / cert/ca.pem\-- v 2bin] # chmod + x / opt/kubernetes/server/bin/kube-controller-manager.shbin] # mkdir-p / data/logs/kubernetes/kube-controller-manager# Note 22 machine Next, change it to 7-22, and modify bin] # vi / etc/supervisord.d/kube-conntroller-manager.ini [program:kube-controller-manager-7-21] command=/opt/kubernetes/server/bin/kube-controller-manager.sh. The program (relative uses PATH, can take args) numprocs=1; number of processes copies to start (def 1) directory=/opt/kubernetes/server/bin Directory to cwd to before exec (def no cwd) autostart=true; start at supervisord start (default: true) autorestart=true Retstart at unexpected quit (default: true) startsecs=30; number of secs prog must stay running (def. 1) startretries=3; max # of serial start failures (default 3) exitcodes=0,2; 'expected' exitcodes for process (default 0Magne2) stopsignal=QUIT Signal used to kill process (default TERM) stopwaitsecs=10; max num secs to wait b4 SIGKILL (default 10) user=root Setuid to this UNIX account to run the programredirect_stderr=true; redirect proc stderr to stdout (default false) stdout_logfile=/data/logs/kubernetes/kube-controller-manager/controller.stdout.log; stderr log path, NONE for none; default AUTOstdout_logfile_maxbytes=64MB Max # logfile bytes b4 rotation (default 50MB) stdout_logfile_backups=4; # of stdout logfile backups (default 10) stdout_capture_maxbytes=1MB Number of bytes in 'capturemode' (default 0) stdout_events_enabled=false Emit events on stdout writes (default false) bin] # supervisorctl update [root@test-nodes1 etcd] # supervisorctl status | grep kube-controller-managerkube-controller-manager-7-21 RUNNING pid 14868, uptime 1 day 1:53:42 [root@test-nodes1 etcd] # netstat-tlunp | grep kube-controtcp6 0 0: 10252: * LISTEN 14869/./kube-contro tcp6 0 0: 10257:: * LISTEN 14869/./kube-contro
After reading the above, have you mastered the method of installing and deploying controller-manag in K8s? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, 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.