<p>I created a cluster with several Raspberry Pi following this <a href="https://medium.com/nycdev/k8s-on-pi-9cc14843d43" rel="nofollow noreferrer">tutorial</a></p>

<p>I'm stuck with a problem. </p>

<p>I have a master node and a slave. I create deployment and a service for Nginx (for testing purpose).</p>

<p>Here is the deployment file</p>

<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx
labels:
    app: nginx
spec:
replicas: 1
selector:
    matchLabels:
    app: nginx
template:
    metadata:
    labels:
        app: nginx
    spec:
    containers:
    - name: nginx
        image: nginx
        ports:
        - containerPort: 80
</code></pre>

<p>Here is the service file</p>

<pre><code>apiVersion: v1
kind: Service
metadata:
name: nginx
labels:
    app: nginx
spec:
type: NodePort
ports:
    - port: 80
    protocol: TCP
selector:
    app: nginx
</code></pre>

<p>I cannot reach the service from outside the cluster. </p>

<p>Here is the IP Configuration (all on wifi) : </p>

<pre><code>Master : 192.168.1.200
Slave  : 192.168.1.201
</code></pre>

<p>From SSH on the slave I can, ´curl 127.0.0.1:30187´ and also ´curl 192.168.1.201:30187´, but from the master or my personnal computer it can't get the Nginix default page. Instead I have this issue : ´curl: (7) Failed to connect to 192.168.1.201 port 30187: Connection timed out´</p>

<p>Can someone help me on this ? </p>

Argon
<p>I finally find the answer on <a href="https://github.com/kubernetes/kubernetes/issues/42413" rel="nofollow noreferrer">this</a>.</p>

<p>I had to allow the forwarding on <strong>iptables</strong>.</p>

<pre><code>iptables -P FORWARD ACCEPT
</code></pre>

<p>Best regards.</p>
