Raspberry Pi Kubernetes Cluster — SSH into the Nodes| Issue #3
Welcome to the Raspberry PI Kubernetes home lab series. A bite sized informative guide to help you provision a cluster from scratch. By now we should have 3+ nodes running the latest version of ubuntu. Refer to the previous guide if you would like to know more.
Today’s issue will walk you through communicating to your Raspberry nodes through ssh.
1. Requirements:
- A Raspberry Pi node with the latest version of ubuntu and connected to either to your home router or a ethernet switch
- SSH should be enabled in the node.
2. Install Nmap
> brew install nmap
Nmap (“Network Mapper”) is an open source tool for network exploration and security auditing. Designed to rapidly scan networks.
3. Find the device’s IP address
# Find the Router’s IP
> netstat -nr | grep default# Inspect nodes on your local network
nmap -sP 192.168.0.1/24
From the snippet above you can see that our nodes are on 192.168.0.[24–26]
4. SSH into nodes manually
# ssh into device, password is usually “ubuntu”
ssh ubuntu@192.168.0.26
5. SSH into nodes with private keys
ssh-keygen -t rsa -b 4096
Add SSH key to node
ssh-copy-id -i ~/.ssh/ansible ubuntu@192.168.0.26
SSH with RSA key
ssh -i ~/.ssh/ansible ubuntu@192.168.0.26
We are are now ready to start our k8s set up. it is important that you know how to access the nodes independently and that you can access them both via ssh keys and as a root user.
Leave a comment if you have any questions, we will be installing dependencies in the nodes next. Happy Coding.
← Previous Issue : OS Installation | Issue #2