mirror of
https://github.com/siderolabs/talos.git
synced 2025-11-27 13:41:14 +01:00
This PR will allow users to configure /etc/hosts through the network
config section, as opposed to having to use a file append operation.
Example usage might look something like:
```
...
...
machine:
...
...
network:
extraHostEntries:
- ip: 192.168.1.100
aliases:
- test
- test.wtf.bbq
...
...
```
Signed-off-by: Spencer Smith <robertspencersmith@gmail.com>
networkd
Networkd handles the addressing and interface configuration in Talos.
The general workflow is:
- Discover all network interfaces (
networkd.Discover()) - Create an abstract representation of the network interface configuration (
nic.NetworkInterface) - Merge userdata configuration options on top of the
nic.NetworkInterfacerepresentation - Configure the network interfaces based on the abstract representation (
networkd.Configure(...)) -
- Bring interface up
-
- Begin address configuration method (
address.DHCP,address.Static)
- Begin address configuration method (
-
- Create rtnetlink message to set address based on config method
-
- Create rtnetlink message to set any routes defined by the address method