Skip to main content

What I’m trying to achieve ?

My personal goal is to have a FaaS environment at home. Building it from scratch would help me to understand Kubernetes cluster solutions for future reference. Another advantage of building it from the bottom up is that, if something breaks, you will at least have some idea about what might be wrong.

Note that in doing so you will in essence become:

  • Storage support
  • Networking support
  • OS support
  • Application support
  • Security support
  • Hands & Eyes
  • Architecture designer in one person.

And, since navigating the waters of Cloud Native Landscape is so easy (Yeah, you can feel the sarcasm, can't you), I made this guide.

For funzies, look at the current state of Cloud Native Landscape

What did I build ?

  • Deployed 8 node Kubernetes cluster on arm64
  • Deployed distributed block storage on Kubernetes - Longhorn
  • Deployed OpenFaaS - Function as a Service platform
  • Deployed example OpenFaaS function
  • Deployed Portainer - Dashboard for Kubernetes
  • Deployed monitoring - Prometheus, Grafana, Loki, Promtail

This gives me a nice solution to deploy functions, to learn more about Serverless Applications, and try a new way of building applications. I do worry that function as a service might introduce lag, but on other hand I can invoke functions asynchronously, and consume the results when they come, while the main program continues. Kind of like external multitasking. It is certainly helpful for load balancing, or even scaling to 0 (Only supported by OpenFaaS paid version), which is super nice. It requires me to think a bit differently (more complexly, in my opinion) about building applications compared to standard monolith programming.