Comments (8)
Just figured it out. You run the curl command from one of the nodes. If you did the same as me you ran it on master.
Edit:
It only worked from my first node. Still learning...
probably should be available from all nodes 🤷♂
from k8s-on-raspbian.
This is just a thoery, but I believe the issue here is that there's no external ip address associated with the service:
pi@raspberrypi2:~ $ kubectl get service markdownrender
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
markdownrender NodePort 10.106.161.23 <none> 8080:31118/TCP 17m
no external ip, only the cluster ip. You can access it only from the host it's scheduled on.
from k8s-on-raspbian.
from k8s-on-raspbian.
That website seems to suggest that those ip table rules are to allow the worker nodes to access the public internet via the primary node's internet connection. This was due to their odd networking configuration where the primary node served as a router for the worker nodes.
from k8s-on-raspbian.
You are correct @justinabrahms but they should all be on the sames network in kubernetes so any node should be able to hit a cluster ip, which wasn't happening here.
They should all be using one point of contact to the outside world through the master node. Doing this wont create a public ip but will make sure the master is holding that access point should you create one eventually.
From my understanding that is what kubernetes should be doing. Im still learning though...
from k8s-on-raspbian.
Wait... Those may be the wrong commands though.. One moment. Ill double check
from k8s-on-raspbian.
I'm sorry you are right those were the wrong commands. you want these:
sudo update-alternatives --set iptables /usr/sbin/iptables-legacy
sudo update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy
sudo update-alternatives --set ebtables /usr/sbin/ebtables-legacy
Links:
"Kubernetes Raspberry Pi 4 Cluster"
from k8s-on-raspbian.
@DwayneGit Thanks for your response. It seems that setting the iptables to legacy is critical for kubernetes with iptables-1.8.x.
Can someone please update the guide on k8s-on-raspbian/GUIDE.md to include this?
from k8s-on-raspbian.
Related Issues (15)
- question - One node cluster - memory footprint HOT 1
- Readers' RPi clusters HOT 5
- I am getting http://localhost:10248/healthz: dial tcp [::1]:10248: connect: connection refused. error. HOT 11
- Failed to find subsystem mount for required subsystem: pids HOT 22
- Getting a few errors when trying to create my cluster HOT 8
- sudo kubeadm init always fails HOT 2
- Update swap disable instructions in GUIDE.md HOT 5
- "Install Docker" missing slash
- Unattributed cut&paste? HOT 1
- GUIDE.md, "Start up the Kubernetes dashboard" section, outdated? HOT 1
- My Raspberry Pi Kubernetes cluster HOT 1
- Dashboard in PI Cluster HOT 11
- /proc/sys/net/bridge/bridge-nf-call-iptables not found HOT 3
- Flannel installation yaml file link is out of date HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from k8s-on-raspbian.