You probably think it’s overkill to use Kubernetes for a WordPress blog with less than a thousand monthly visitors. While this may be true, it’s totally worth using Kubernetes for the bragging rights. This is a WordPress blog running on Kubernetes!
Metrics are very important in your Kubernetes cluster because you need them to monitor the pod resource usage. You also need metrics to trigger an autoscale using an Horizontal Pod Autoscaler (HPA). Metrics Server provides CPU and memory metrics so you can see them in Kubernetes Dashboard’s fancy graphs.
Kubernetes: Up and Running, as the name suggests, is about Kubernetes. The book’s second edition was released in October 2019. Latest stable release of Kubernetes in October 2019 was 1.15. At the time of writing the latest stable version is 1.20 so the book is definitely due for an update.
Firewalld has replaced iptables as a default in many Linux distributions. It is now the default firewall in CentOS, Fedora, OpenSUSE, Red Hat Enterprise Linux, and SUSE Linux Enterprise. You can also install it on Debian and Ubuntu from their official package repositories.
Luckily firewall configuration with firewalld is very easy, especially for predefined services like http, https, ssh, etc.
There are plenty of Kubernetes distributions available that can be used to install Kubernetes locally. They tend to use minimal resources which is ideal. Question is what’s the best Kubernetes distribution for local use?
Local Kubernetes Distributions
This post contains benchmarks and reviews of the following Kubernetes distributions:
I’ve recently set up automated backups to Google Drive on my CentOS 7 Linux VPS to protect my blog posts from data loss. I don’t know why it took so long for me to care about backups of my own data. I chose to back up to Google Drive since I already have a Google One plan that has plenty of available storage space.
I’ve recently got a Raspberry Pi 4 Model B 8GB. I wanted to have one just to try running Kubernetes on Raspberry Pi. Most resources on the web seem to be for a huge cluster with a dozen nodes but I wanted to do it with a single node.
As the operating system I chose Ubuntu because of its Pi support even though I prefer Red Hat based distros.