Table of contents
Configure the network when the virtual machine is initialized
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: