Skip to content

docker

Migrating UniFi Controller to Kubernetes

The old UniFi Controller and its required Mongo DB have been a bit of a hassle to keep updated while running directly on the host OS in my little homelab server, so the time has come to migrate this to the new linuxserver.io/docker-unifi-network-application on my little Kubernetes cluster on my new Kubernetes cluster.

Warning

Beware of outdated documentation, most articles out there like Install Unifi Controller on Kubernetes, are based on the deprecated linuxserver/unifi-controller, while others like setting up the UniFi Network Controller using Docker are using jacobalberty/unifi-docker which was quite outdated until recently.

Upgrading single-node Kubernetes cluster on Ubuntu Studio 24.04

Last month I took a look at checking deployments before upgrading kubeadm clusters and found results mostly reassuring.

As a practice run to upgrade more complex setups, lets upgrade the cluster running on the desktop PC, which is only running a Plex Media Server (which recently become unresponsive) and the PhotoPrism® photo album (which never worked well enough to be critical to me).

Self-hosted time tracking with ActivityWatch

A big chunk of my time is spent at the computer, also during my downtime, and there is no clear separation between study, chores, entertainment, etc. Work happens at other computers, where time flies by sometimes at ridiculous speeds. I often find myself wondering where did my day/week go?

For some time I've been using a badly-cobbled-together solution with Bash scripts doing a few basic operations, all the time:

  1. Detect when the screen saver is active (AFk).
  2. Capture the id and title of the active windown (when not AFK).
  3. Store those details in plain-text log files.
  4. Aggregate those by window id into CSV files.
  5. Import CSV files into a spreadsheet to clean it up.

The results have been barely enough to keep track of where my weeks go, which has already been a relief; when someone (often me) asks "why so little progress on X?", I can check the spreadsheet and answer with numbers: because this week, out of 40 hours, ...

At home, however, the results have been very underwhelming. This is due to completely different behaviour patterns, which is where I hope ActivityWatch will help.