kubernetes-up-and-running / kuard

Demo app for Kubernetes Up and Running book
Apache License 2.0
1.61k stars 541 forks source link

Config steps for Pi Cluster #9

Closed iramsey85 closed 5 years ago

iramsey85 commented 7 years ago

I'm setting up the Hypriot cluster using the KUARD book example.

I've been able to configure the master node (wifi enabled, serving DHCP) connects to internet no issue. Serves DHCP IPs no issue.

I followed instructions to configure NAT on 3 worker nodes. I'm assuming all requests to external internet are going through the wlan0 interface on the master node.

My issue is, when installing Kubernetes on other 3 nodes, several apt-get updates throw errors resolving certain URLs.

Is there a way to improve performance over NAT. Or... Is there any drawback to configuring the nodes to go to external internet through wifi (i.e remove NAT configuration)

ecliptik commented 7 years ago

@iramsey85 I didn't follow the guide exactly that was in the book, but here are some other resources on running k8s on Raspberry Pi that may help,

I maintain the 2nd link and ran into a lot of various issues when setting up networking using Flannel and getting a proper out-bound Internet connection. It involved setting up some iptables rules but once I had the right combination it's repeatable and I regularly re-build my cluster using those steps.

iramsey85 commented 7 years ago

@ecliptik, thanks for the info, I will definitely check out these resources.

just for my own information, did you run your cluster over wifi only?

ecliptik commented 7 years ago

@iramsey85 I did setup my rpis to run on wifi to see how it worked, but I found they worker nodes would lose communication with the master occasionally. Now they're hardwired to the same LAN and are more stable.

brandondoran commented 6 years ago

@iramsey85 I'm trying to setup the Hypriot cluster via the book instructions but as soon as I make the changes to eth0 the internet no longer works. I'm still able to ssh into the raspberry pi so the wifi connection still works. I'm not even able to ping 8.8.8.8. I've continue through and setup the DHCP and NAT as the book described, but no luck. Do you recall if you followed the book exactly or where there some steps you had to change to get it working?

brandondoran commented 6 years ago

Update: I was using Hypriot 1.7.1. The book clearly uses an older version because it uses device-init.yaml, which doesn't exist starting with 1.7.0. I decided to revert back to using 1.6.0 and the book instructions for configuring the master (with wifi and DHCP) seems to work.

jbeda commented 5 years ago

As this isn't an issue with kuard, specifically I'm going to close this.

But /cc @brendandburns to make sure he sees this as we look to update the book.