[kubernetes virtual machine configuration cluster network] virtual machine network configuration | use virtual machines to create clusters for testing

Table of contents

foreword

 Configure the network when the virtual machine is initialized

postscript


foreword

As an individual learning kubernetes, there is not a large number of servers to provide learning and practice, so I have to use my poor windows system for virtual machine cluster deployment, alas~

When configuring a virtual machine, the difference from the past is the configuration of the network.

For this cluster deployment, I only plan to deploy 3 nodes, one master and two note nodes.

This demo is also based on one of the node demos.

There is also the most important place at the front: (check your centos version! Must be greater than 7.5)

cat /etc/redhat-release

 Configure the network when the virtual machine is initialized

1. Configure the network during initialization

 Two, modify the configuration

3. View your own subnet

 Note: At this time, click on the virtual network name of your NAT mode!

 Note: At this time, click on the virtual network name of your NAT mode! !

 Note: At this time, click on the virtual network name of your NAT mode! ! !

 4. Conventional configuration

Five, IPV4 configuration

 Click save and that's it!

6. Modify the name

Remember to click Apply ! Remember to click Apply ! Remember to click Apply

 Finish! !  

postscript

  • Because the configuration methods of the three nodes are the same, but the subnet address should not be the same, it can be 100, 101, 102.
  • The subnet address should be checked by yourself, everyone's is different! Don't copy it directly. The gateway address is the first three digits of the subnet address plus 2.
  • For the DNS server, I refer to the kubernetes tutorial of the dark horse programmer, who uses a DNS from Ali.

Verify that the network configuration is correct | Modify the network configuration in the virtual machine later:

[centos 7 View your own network configuration] Modify the network configuration of your own linux system virtual machine icon-default.png?t=M666%7B%22type%22%3A%22blog%22%2C%22rType%22%3A%22article%22%2C%22rId%22%3A%22125850660%22%2C%22source%22%3A%22m0_61139217%22%7D&ctrtid =v3y6H 

Guess you like

Origin blog.csdn.net/m0_61139217/article/details/125715265