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

Kubeadm deploys k8s cluster and dashboard page

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

one。 Deployment environment (all nodes do it) OS:CentOS Linux release 7.6.1810 (Core) kernel: 3.10.0-957.21.3.el7.x86_641 2 node environments ready (all three machines do the following) 1.1 turn off the firewall: systemctl stop firewalldsystemctl disable firewalld1.2 turn off selinux:sed-I's swap:swapoff / etc/selinux/config setenforce 01.3 close swap:swapoff-a # temporary sed Make sure iptables is available: echo 1 > / proc/sys/net/bridge/bridge-nf-call-ip6tables echo 1 > / proc/sys/net/bridge/bridge-nf-call-iptables1.5 add hostname and IP correspondence: (do all three machines) 214.92: hostnamectl set-hostname k8s-master & & bash # modify the hostname and take effect immediately 214.97: hostnamectl set-hostname k8s-node1 & & bash214.98: hostnamectl set-hostname k8s-node2 & & bashcat / etc/hosts192.168.214.92 k8s-master # (ip modified according to its own actual situation) 192.168.214.97 k8s-node1 # (ip modified according to its own actual situation) 192.168.214.98 k8s-node2 # (ip modified according to its own actual situation)

1.6 configure domestic YumSource: yum install-y wget mkdir / etc/yum.repos.d/bak & & mv / etc/yum.repos.d/*.repo / etc/yum.repos.d/bak wget-O / etc/yum.repos.d/CentOS-Base.repo http://mirrors.cloud.tencent.com/repo/centos7_base.repo wget-O / etc/yum.repos.d/epel.repo http://mirrors.cloud.tencent.com/repo/epel-7. Repo yum clean all & & yum makecache1.7 configure kubenetes yum source cat

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