Matthew Miles

I'm a Software Engineer based in London.

NFS in the Raspberry Pi Cluster

Allowing a physical disk that is attached to one of the Pis to be shared in the Pi cluster, for persistent storage Mount Physical Disk Firstly, choose a Pi node that you want to host the NFS server (this will be the one that has the external drive attached to it) For me, this was mmiles-pi-worker-00 which has an IP of 192.168.0.45 Plug the drive in to the Pi (for this example, I just used a small USB Drive)

Ingress in the Raspberry Pi Cluster

Accessing services running within the Raspberry Pi Cluster Introduction After deploying a few demo services in the Pi Cluster, I wanted to figure out how I could access them outside the cluster. At the moment, this is still limited to access within the local network. It doesn’t yet cover hosting services that can be reached by machines outside my home network or using DNS. Ingress Controllers This video gives a good intro to ingress in bare metal clusters:

BIR-Style Chicken Tikka Masala

Chicken Tikka Masala made in the style of British Indian Restaurants (BIR) Ingredients Seasoned Oil 500ml neutral oil (vegetable, sunflower, rapeseed, etc) 2 onions 2 garlic cloves Spices of choice (coriander seeds, peppercorns, cloves, star anise, bay leaves, fennel seeds, cardamom pods) Base Gravy ~15 onions 2 carrots 1 red pepper 2 chillis

Building a Raspberry Pi Cluster

Building a Kubernetes cluster using Raspberry Pis and k3s, to deploy small personal projects on. Hardware 3 x 4GB Raspberry Pi 4 3 x 32GB SD Cards 3 x Raspberry Pi Power Adapters TP-Link TL-WR802N Nano Router TP-Link TL-SG105S Network Switch 4 x Ethernet Cables Installing OS For this build - we are using the Ubuntu Server 20.04.5LTS (64-BIT) OS There is a Raspberry Pi Imager Tool that can be used to write the OS to an SD card.

Crispy Pork Belly

Crispy pork belly, with an Italian-style seasoning. Ingredients Pork belly joint with skin on Garlic powder Onion powder Fresh or dried rosemary Oregano Dried basil Chilli flakes MSG White vinegar Vegetable oil Mayonaise Mustard Salt and pepper Optional cheese and sandwich fillings

A General Guide to Pizza (and Dough)

Pulling together methods and techniques I’ve found work well for preparing dough and cooking pizzas in home kitchens. Choosing dough In general, pizzas should be around 60% - 75% hydration. On the higher end, you get pizza crusts that are very open and airy but crisp on the outside like in Neapolitan style pizzas: Achieving this exact effect/texture isn’t the easiest in a home oven though and ideally requires a high heat pizza oven.

Aglio Olio

A really simple pasta dish where timing and proportions are quite important. Ingredients For 2 small/medium portions or 1 large portion: 160g pasta (spaghetti or a long pasta works well, and bronze cut is better) 3 garlics (2 crushed, 1 unpeeled) 2 chillis (1 finely chopped, 1 whole) Parsley to taste (plus 3 whole stalks) 1/4 cup (~60ml) extra virgin olive oil

Five O'Clock Somewhere Twitter Bot

This is my first “app” hosted on an AWS ECS Cluster. It is a simple application that runs every hour, finds a region where it is currently 5PM, and posts to a Twitter account (@5OCSomewhere). GitHub Repo Tools Used AWS ECS Docker GitHub Actions (to auto run unit tests, build into docker image, upload image to AWS ECR and deploy to a ECS task definition with a cron schedule)

Creating a CI/CD workflow with GitHub actions and AWS

Automating the process of building applications into docker images and deploying to a cluster. How do applications that are developed locally run in production? They need to be built into images The images need to be pushed to an image repository in the cloud The images need to be built into a container that can run on a virtual machine or pod in the cloud What tools can allow this?

Bao Buns

A fluffy steamed dough served with braised pork belly, pickled vegetables and crushed peanuts.  Ingredients Bao Bun Dough: 600g plain flour 350ml full fat milk 3 tablespoons sugar 7g yeast 2 teaspoons baking powder 1 teaspoon salt Pork Belly: 1.5kg pork belly, cut into strips 4 tablespoons soy sauce 2 tablespoons oyster sauce