Replies: 1 comment 5 replies
-
So this is a good question, there is a short answer and a long answer. Short answer you need to apply: machine:
network:
hostname: talos-node-01 ... as a config patch to the machine configuration when you first apply configuration to the machine in maintenance mode. This way the hostname will be set from the very beginning.
Long answer is related to the way Talos machine configuration is structured. Most of the config today is part of a huge monolithic document which can't be applied in parts (only full document can be applied). Talos is moving towards splitting up into parts, small documents for a specific purpose. Once we're done with this work, you will be able to change hostname in maintenance mode by submitting just a hostname config document. But we're not there yet. |
Beta Was this translation helpful? Give feedback.
-
Hi,
Maybe i am asking somthing that was already answered and is probably already in documentation, but i still cant get my head around it.
all i need, is to set hostnames of nodes on newly created talos cluster
so, when i run this:
i get meaningful hostnames instead of 'talos-xxx-xxx'
So, to test it i did following,
booted a new VM on proxmox from talos-1.9.3.iso into maintenance mode, and tried to set its hostname
when VM booted it, its hostname as seen on proxmox console is '(no hostname)', and it makes sense, VM is currently just booted , its in "maintenance mode" and awaiting for config..
now, i do this, ping the VM to make sure connectivity fro my laptop is OK
created a config file to set hostname
tried to apply it to the VM/node:
i really dont understand something here..
commands like "get disks" do work,
do i need to bootstrap cluster first? and then change hostnames?
seems counter intuitive since by changing hostname AFTER cluster is up, it seems to me, it will make problems with certificates, etc..
thank you for your answers..
Beta Was this translation helpful? Give feedback.
All reactions