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

Kubernetes sets up the detailed process of deploying K8S1.13

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

Share

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

This article mainly explains "the detailed process of building and deploying K8S1.13 in Kubernetes". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "the detailed process of building and deploying K8S1.13 in Kubernetes".

First of all, I have prepared three CentOS 7 x64 virtual machines with the corresponding roles and IP addresses as follows:

KS8 10.20.30.63 master

Dcoker01 10.20.30.64 node01

Docker02 10.20.30.55 node02

In order to make the experiment go smoothly, I turned off the firewall and SELinux in each one.

Systemctl stop firewalld

Systemctl disable firewalld

Vi / etc/SELinux/config

And vim is installed.

Yum install-y vim

And turn off the swap partition of all servers:

Vim / etc/fstab

Delete the swap line and save it

Restart virtual machine reboot

Next, you need to add Host records to each machine to achieve the corresponding relationship between the host and the IP. If you have DNS resolution, this step can be ignored.

Vim / etc/hosts

Next, turn on the network forwarding function for each one.

Vim / etc/sysctl.conf # insert the following

Net.ipv4.ip_forward = 1

Sysctl-p # effective

Cat > / etc/sysctl.d/k8s.conf

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