Raspberry Pi Kubernetes Cluster — SSH into the Nodes| Issue #3

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.

No alt text provided for this image

1. Requirements:

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
        
No alt text provided for this image

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 [email protected]
        
No alt text provided for this image

5. SSH into nodes with private keys


ssh-keygen -t rsa -b 4096
        
No alt text provided for this image

Add SSH key to node


ssh-copy-id -i ~/.ssh/ansible [email protected]
        
No alt text provided for this image

SSH with RSA key


ssh -i ~/.ssh/ansible [email protected]
        
No alt text provided for this image

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

要查看或添加评论,请登录

社区洞察

其他会员也浏览了