Posts

Backing up postgres and mariadb with a Kubernetes CronJob

As part of my cluster backup operations, I run a nightly dump of all my databases. I am using Bitnami mariadb galera and cloudnative-pg posgres. CloudNativePG uses barman for backups to S3 storage which I am using but I also export a fully backup each database to an NFS every night.

Creating a local search engine with typesense

Now that I have migrated my pocket bookmarks to readeck, I wanted to create a unified local search that will index these bookmarks and my internal documentation - stored in outline. Fortunately both readeck and outline have APIs, so it was ‘just’ a case of finding a suitable search application. Enter typesense.

Migrating mariadb-galera storage to ceph

I have mariadb-galera installed with the bitnami helm chart. After making sure there is a backup, the first step is to delete the helm release. This removes the services and pods but leaves the PVCs behind.

Migrating cloudnative-pg storage to ceph

Now that I’ve configured a small ceph cluster, it’s time to start moving services across. First up are the cloudnative-pg postgres databases which until now have been storing data on a Synology NAS with the synology-csi plugin.

Wireless Doorbell with esphome and homeassistant

A short description for turning an ancient doorbell into a smart doorbell with esphome, homeassistant and mqtt

Windows update has broken my Zoom and Skype audio...

Windows update has broken my Zoom and Skype audio… After restarting following today’s Windows update, I could no longer hear anything on Zoom calls. After a couple of hours of investigating, it turns out Skype audio is broken too and seems to be related to dual microphone / speaker usage through the same bluetooth device…

Using Tmux to Render With Blender Over Ssh

Rending animations with Blender is a log running process. It is possible to keep an ssh session open for the duration of the render but we can use use tmux to keep the blender process running in the background.

Upgrading PeerTube

My notes for upgrading dockerised PeerTube

Upgrading Mastodon

My notes for upgrading a dockerised mastodon instance. The mastodon release notes are usually very thorough so always check these for additional steps.

Synology NasĀ  Automatically Register Dhcp a Records on Dns Server

Setting Up a Wireguard Vpn Using Kubernetes

I’ve been playing with a home Kubernetes setup and slowly moving my docker images across. So far it’s been fairly straight-forward but wireguard presented a challenge… The post from Christian Seifert @ https://www.perdian.de/blog/2022/02/21/setting-up-a-wireguard-vpn-using-kubernetes/ finally got me up and running so posting here for my records…

Running Blender remotely on Ubuntu with Tiger VNC

When I render animations with Blender on Windows, after a while background jobs kick in and rendering performance falls off a cliff. This post outlines how to get Blender running remotely on Ubuntu Desktop with Tiger VNC

Peertube Docker Traefik

Getting peertube up and running in docker using traefik as a web proxy turned out to be quite straightforward.

Organising Blender Scripts

Somehow, I’d ended up with Blender scripts scattered over a number of different folders across multiple machines. Most python scripts but also a new javascript and other files. As a result, I’d been struggling to find previous work (or specific functions) and generally getting frustrated.

Monitoring Kubernetes with Informers and Home Assistant

I’m running HomeAssistant along with a number of other services using microk8s and half-a-dozen Raspberry Pi4’s. The Kubernetes API provides a means for us to see the status of nodes, deployments, statefulsets and pods. I started off polling the API for updates but recently updated the code to use Informers. I couldn’t find much documentation out there so hopefully this post is useful for someone…

Migrating Subversion to Git

After running subversion for many many years, I’ve finally taken the plunge and migrated everything to git with a local install of gitea The migration took some figuring out but I ended up with a fairly straight-forward script. For more details on my gitea setup are in a previous post Organising Blender Scripts

Installing Mastodon with Docker

Capturing a working docker compose configuration for Mastodon in case it is useful for others

Hugo search with lunr

One of the last things bugging me about my blog migration to Hugo is being able to search posts. I use the blog privately to capture my own notes on topics and want to be able to quickly find them. I quickly ruled out using an external search engine and started experimenting with lunr.

How to permanently change the hostname on Ubuntu

I tried many ways and the hostname kept getting reset back to the previous value. Turns out there are two steps to changing the hostname permanently on Ubunut.

How to check if a Hugo site is in development or production

I wanted to render the hugo navigation differently on my development (internal) server and my production (public) server. This is how I did it for partials…

Getting Hugo Up and Running With a Fresh Docker Install

I’m a big fan of Docker as a way to isolate services and avoid the need to install dependencies on the base operating system. There turned out to be a few nuances getting Hugo up and running.

Finding the largest files and directories on Ubuntu

I keep forgetting how best to find the files and directories using up all the available disk space…

Finding Interesting Fediverse Content

I’ve been running a single-user instance Mastodon server for a few months. Being a single-user instance, it can be fairly quiet at times and one of the aspects I’ve been exploring is finding and adding targeted content to the Federated timelineā€¦

Controlling multiple kubernetes nodes from a single UPS server on a Synology NAS

Most UPS systems only have one USB port to control a single device in the event power outage and the battery running low. I have a couple of Synology NAS boxes with UPS and these can be used to shut down other devices safely.

Blender Quick Tip: Changing the Camera From the Command Line at Render Time

If you have multiple cameras set up and want to render different views from the command line without manually changing cameras through the UI, it is possible to use a short python script at render time: