If you are not using DHCP and want to use static IP addresses for your VMs, you can add the IP information. For this option, KubeKit version 2.0.14 or later is required.
Specifying hostname is optional. Preserve indentation as shown in the IP information format example.
-
Add the IP information in the following format:
node_pools: master: count: 3 contents: - ip: 10.25.37.21 hostname: master1 - ip: 10.25.37.22 hostname: master2 - ip: 10.25.37.23 hostname: master3 ip_netmask: 23 ip_gateway: 10.25.37.254 worker: count: 3 contents: - ip: 10.25.37.24 hostname: worker1 - ip: 10.25.37.25 hostname: worker2 - ip: 10.25.37.26 hostname: worker3 ip_netmask: 23 ip_gateway: 10.25.37.254