luxas / kubernetes-on-arm

Kubernetes ported to ARM boards like Raspberry Pi.
MIT License
599 stars 86 forks source link

origin/location of kube-config #53

Closed wombat closed 8 years ago

wombat commented 8 years ago

I just switched from k8s-on-rpi to this project but I am curious where the kube-config command is coming from to install master and worker nodes?

TimCook1 commented 8 years ago

It's just a script. You can read/modify it with any text editor.

wombat commented 8 years ago

yeah but where is it? cant find it once I booted the hypriot version

wombat commented 8 years ago

I just talked to @saturnism and we noticed, that I folled the README from top to bottom and the sd card setup seems to be missing the kube-config. @saturnism suggested to flash the pure hypriot image and install via the debian package - I will try it

luxas commented 8 years ago

kube-config is located in /usr/bin and is a normal bash script. The kube-systemd README

luxas commented 8 years ago

Link to kube-config

wombat commented 8 years ago

@luxas Hmm, so from my recent experience it was not in the rpi2 / hypriot image, when I used the sdcard/write.sh script. I used find after starting from sdcard but I couldn´t find it.

The workaround was to flash a plain hypriot image and installing the deb package.

luxas commented 8 years ago

@w0mbat did you forget to include kube-systemd rootfs at the end? As the README says:

sudo sdcard/write.sh /dev/sdX [board] [os] [rootfs] Example: sudo sdcard/write.sh /dev/sdX rpi-2 hypriotos kube-systemd

I made it this way, because it should be to flash the plain hypriot or arch image too from sdcard/write But in the next release it could print a warning if one omits it.

wombat commented 8 years ago

@luxas nope - used exactly that command and just replaced the device to match my sdcard.

luxas commented 8 years ago

Strange. It works for me... Do you have more details?

luxas commented 8 years ago

@w0mbat Can you reproduce on v0.7.0 or should I close it?

luxas commented 8 years ago

Closing as probably fixed in v0.7.0. Reopen if not