-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
post/setup-kubernetes-raspberry-pi-cluster needs a bit of updating #73
Comments
Thanks for your suggestions!! It would be awesome if you could hand in some PRs for each suggestion :-) |
@miekg Thanks for the feedback. Regarding the flash -n option: which SD card image have you used? |
[ Quoting <[email protected]> in "Re: [hypriot/blog] post/setup-kuber..." ]
@miekg Thanks for the feedback. Regarding the flash -n option: which SD card image have you used?
latest release at the time: v1.7.1
(got an error on both my laptop and workstation at the end of the flashing
process)
/Miek
…--
Miek Gieben
|
Thanks. I checked
On both platforms the user-data file had the updated hostname in it. I've merged some PR's into flash recently, also added some tests running on Circle (for Linux) and Travis (for macOS, but work is in progress here) to keep the tool working for hopefully all our users :-) |
Thanks for double checking.
I've just executed the above (minus
And these get never overwritten on boot... |
uh, second one needs to be /etc/hosts, but that also lists |
Yes, |
I tried two RPi3 today, one with --hostname, another with --userdata and --bootconf to spin it up with WiFi enabled. Both first start booting with black-pearl, but when I then log in the new name is activated. The user-data will be executed during the first boot and the hostname will be adjusted. So it would be good to know if the /boot/user-data got updated after you executed the flash tool to see if it is something in the flash tool or has something to do with the cloud-init first boot. |
[ Quoting <[email protected]> in "Re: [hypriot/blog] post/setup-kuber..." ]
I tried two RPi3 today, one with --hostname, another with --userdata and --bootconf to spin it up with WiFi enabled. Both first start booting with black-pearl, but when I then log in the new name is activated. The user-data will be executed during the first boot and the hostname will be adjusted.
Thanks!
But how do you log in? I think a major use case is SSH. I couldn't find the Pis
on my network with the new hostname, which (now) makes sense they were all
called black-pearl.
So it would be good to know if the /boot/user-data got updated after you executed the flash tool to see if it is something in the flash tool or has something to do with the cloud-init first boot.
I don't understand why things are kicked off afer a login and not actually on
first boot?
/Miek
…--
Miek Gieben
|
Well I watched the output of the serial console. And there (probably before having network) the machine hostname is black-pearl. The serial login prompt also shows black-pearl in the prompt. But I waited a little and then logged in over serial cable and the bash prompt then shows the new hostname. So it‘s happening during the first boot and probably before you can SSH into it. |
[ Quoting <[email protected]> in "Re: [hypriot/blog] post/setup-kuber..." ]
Well I watched the output of the serial console. And there (probably before having network) the machine hostname is black-pearl. The serial login prompt also shows black-pearl in the prompt. But I waited a little and then logged in over serial cable and the bash prompt then shows the new hostname. So it‘s happening during the first boot and probably before you can SSH into it.
For the WiFi test I had to use SSH as the UART has to be disabled for onboard WiFi.
Strange... this def. did not happen here. After I lugged my monitor and keyboard
to the room and logged in everything still had black-pearl.
|
Just came by to say, seconding the use of EDIT: Well, maybe it didn't fix it, but, |
The next HypriotOS release will have UART disabled by default ;-) |
@alexellis @StefanScherer I have created this perhaps that someone will find useful: Which goes along with some updated YAML and stuff here: |
Thanks @johnwyles that is awesome! |
Hi,
I went through setup-kubernetes-raspberry-pi-cluster (which is super handy). But it needs some upgrading:
In random order:
-n
option didn't work for me (got an error after flashing, assumed it was ok), but the hostname was still the default.The text was updated successfully, but these errors were encountered: