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

Centos7 K8s cluster deployment

2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Preparation for installation of k8s cluster:

Network environment:

Node hostname ipMasterk8s_master192.168.3.216Node1k8s_node1192.168.3.217Node2k8s_node2192.168.3.219

Centos7 version:

   [root@k8s_master ~] # cat / etc/redhat-release

   CentOS Linux release 7.4.1708 (Core)

Turn off firewalld:

   systemctl stop firewalld

   systemctl disable firewalld

Installation of basic services for three hosts:

   [root@k8s_master ~] # yum-y update

   [root@k8s_master ~] # yum-y install net-tools wget vim ntpd

   [root@k8s_master ~] # systemctl enable ntpd

   [root@k8s_master ~] # systemctl start ntpd

Set the hostname on the three hosts:

   Master

   hostnamectl-- static set-hostname k8s_master

   Node1

   hostnamectl-- static set-hostname k8s_client1

   Node2

   hostnamectl-- static set-hostname k8s_client2

Set the hosts and execute it on three more hosts:

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