Setup Mastodon with docker-compose

Some years ago, I would like to setup Mastodon on my own server to try it but I gave up because I thought it was too complicated. I re-tried and used a docker stack to do it. Let’s see how. Prerequisites I assume you have docker and docker-compose installed, with a reverse-proxy like traefik, haproxy, nginx, or anything else in front to handle your SSL connection. docker-compose file You will find a docker-compose....

<span title='2022-11-23 00:00:01 +0000 UTC'>November 23, 2022</span>&nbsp;·&nbsp;4 min&nbsp;·&nbsp;JC

Bluetooth pairing with command line

Source: https://askubuntu.com/questions/1225896/huawei-freebuds-3-pairing-with-ubuntu-18-04 Open the bluetooth controller and check its working: bluetoothctl show This should provide you with a name, alias and some other parameters. If not, then the following won’t work and you’ll need to check the bluetooth service/device. Run the following: agent on default-agent power on pairable on These may already be configured like this, but it doesn’t hurt to run them anyway. Check if your device is already registered:...

<span title='2022-11-22 00:00:01 +0000 UTC'>November 22, 2022</span>&nbsp;·&nbsp;1 min&nbsp;·&nbsp;JC

Gitlab Runner: Replace Docker with Podman

Today we will see how to run a rootless containerized gitlab-runner and their jobs with podman instead of docker. I will use a Debian 11 OS for this demo. “rootless containerized” means your gitlab-runner container and their jobs will be executed in a user scope and not a root one with full power. It is better for your security. ;-) At least gitlab-runner 15.3 and podman 4.2 versions are required....

<span title='2022-11-16 00:00:01 +0000 UTC'>November 16, 2022</span>&nbsp;·&nbsp;3 min&nbsp;·&nbsp;JC

Request Kube API with curl within a pod

Today we will see how to request Kubernetes API from within a pod in the cluster. I assume you already have a kubernetes cluster deployed somewhere. On my side, I will spin a sandbox cluster on my PC with k3d. nginx deployment For the purpose of this blog post, I will create a nginx deployment in my sandbox cluster: kubectl create deploy --image=nginx nginx create a dedicated serviceAccount and RBAC Most of the time, you will get a 403 Forbidden response if you try to request the KubeAPI from within the cluster....

<span title='2022-10-31 00:00:01 +0000 UTC'>October 31, 2022</span>&nbsp;·&nbsp;6 min&nbsp;·&nbsp;JC

Filter Kubernetes objects by annotation with kubectl

The problem kubectl has a decent mechanism for querying kubernetes objects by label but sometimes you will need to get pods, services, or anything else by querying their annotation. Some dudes asked for annotation query support here but it is not planned at the moment: You cannot query annotations in Kubernetes, and this will not change in the foreseeable future. To achieve that, you will find on the internet a way to achieve that with jsonpath....

<span title='2022-10-19 00:00:01 +0000 UTC'>October 19, 2022</span>&nbsp;·&nbsp;4 min&nbsp;·&nbsp;JC