-
-
Notifications
You must be signed in to change notification settings - Fork 503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
K3S Autoinstall get wrong hostname #4539
Comments
Hi, Did you restart your system after installation? |
Sure. After the reboot I have two nodes one with NotReady state.
Moreover, it is not trivial to remove old node because of system pods are bound to that node with Terminating state.
So, I should forcibly delete old system pods, and then I can delete the old dietpi node. It seems like in this case (k3s autoinstall) some scripts should set node-name parameter to K3S_EXEC variable. |
@MichaIng |
I'll test if Another good point is adding the cgroups on RPi. We do that for Docker installs on Armbian-based systems, but we should as well do it on K3s installs and on RPi. There has been some back and forth whether the memory cgroup is enabled by default or not and latest master has it again disabled: raspberrypi/linux@2b13c54 |
I can confirm that by adding |
The hostname is now additionally applied via |
Okay, works fine: /boot/dietpi/func/change_hostname anotherone # The script called on first boot and by dietpi-config to change the hostname
dietpi-software install 193 # Install K3s
kubectl get nodes -o wide
This theoretically makes the reboot obsolete. Running processes which use the hostname usually need to be restarted though, including the shell itself, e.g. the bash |
Required Information
DietPi version
G_DIETPI_VERSION_CORE=7
G_DIETPI_VERSION_SUB=3
G_DIETPI_VERSION_RC=2
G_GITBRANCH='master'
G_GITOWNER='MichaIng'
Distro version
buster 10.10
Kernel version
Linux saffron 5.10.17-v8+ #1421 SMP PREEMPT Thu May 27 14:01:37 BST 2021 aarch64 GNU/Linux
SBC model
RPi 4 Model B (aarch64)
Power supply used
5V 10W
SDcard used
SanDisk ultra
Additional Information (if applicable)
Software title
K3S
Was the software title installed freshly or updated/migrated?
Freshly autonstalled
Can this issue be replicated on a fresh installation of DietPi?
yes
Steps to reproduce
dietpi.txt
options:cmdline.txt
Expected behaviour
kubectl get nodes
should show myhostname at the nodes listActual behaviour
kubectl get nodes
shows dietpi at the nodes listExtra details
The text was updated successfully, but these errors were encountered: