hypriot / flash

Command line script to flash SD card images of any kind
MIT License
1k stars 176 forks source link

This command can only be used by root. #137

Closed exocode closed 6 years ago

exocode commented 6 years ago

Hi there, I did not know in which repo I should post that....

I tried to install Kubernetes onto my HypriotOS RPI Zero. Kubernetes is only installable via "root" user. But HypriotOS dont provide a root user.

I followed the example by google/kubernetes Blog which also supports the HypriotOS, but it seems outdated -> https://kubernetes.io/docs/setup/independent/install-kubeadm/#before-you-begin

I stuck on this part:

curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - Error: E: This command can only be used by root.

How do I perform progress?

exocode commented 6 years ago

found a way::

https://blog.hypriot.com/post/setup-kubernetes-raspberry-pi-cluster/

StefanScherer commented 6 years ago

@exocode Glad you found the blog post. I didn't know that we are mentioned in the kubernetes docs :-) All these steps there require root access, so you need sudo or just make you root with sudo su and then type the commands.

exocode commented 6 years ago

@StefanScherer next problem: It seems that kubernetes dropped support for ARM or some kind of.. I got this illegal instruction error when using kubeadm. They suggest to downgrade to <= 1.5.1 of kubernetes, but who likes to play with old software... Now I investigating.. https://github.com/kubernetes/kubeadm/issues/253#issuecomment-296738890

StefanScherer commented 6 years ago

They dropped RPi 1 support, so a Pi 2 or 3 should work. But I never spun up a Kubernetes cluster on ARM yet so I don‘t know more details what might be the problem.