Kenno’s Open Note 馃憢

Feel free to take a peak

How to deploy Uptime Kuma on kubernetes

I鈥檝e been running Uptime Kuma on a podman-container for a long time with no problem. Recently, though, I鈥檝e been running a mini Kubernetes cluster at home, and decided to move this conatainer to the same cluster. The following is to document how I deploy Uptime Kuma on a Kubernetes cluster. As I鈥檓 new to Kubernetes world, I broke down the tasks I need to do in 6 pieces: $ ls -1 1....

March 15, 2024 路 2 min 路 416 words 路 kenno

How to attach instance profile on EC2 with cli

This is a quick note to remind me on how to attach or associate an instance profile (IAM role) to an EC2 instance using AWS CLI. In this example, I already have a running EC2 instance i-0357ecc1111111111 running. I want to attach a new instance profile called SSMInstanceProfile to this instance. But as we all know, only one instance profile can be associated with an EC2 instance at one time. So, let鈥檚 check to see if our instance already has one attached:...

March 5, 2024 路 2 min 路 391 words 路 kenno

Transform SSL cert to inline format

We all know that the content of SSL CRT and KEY is a long string of characters broken by new line characters. If we want to use those SSL .crt and .key files with Kubernetes as a TLS secret, they required to be encoded as base64 and be in one-line. How to do this? Well, there are at least two ways. The first one is my favorite: $ base64 -w0 drone....

February 27, 2024 路 1 min 路 125 words 路 kenno

Set Alacritty default dimensions TOML version

I have previously posted a similar topic on how to set the default dimension for Alacritty at launch. However, recently, Alacritty switched to TOML for its configuration. Here is the setting needs to be added to ~/.config/alacritty/alacritty.toml: [window.dimensions] columns = 133 lines = 40 Reference: https://blog.khmersite.net/p/set-alacritty-default-dimensions/

February 14, 2024 路 1 min 路 46 words 路 kenno

How to restore a VM to its previous state XCP-ng

This evening while I was running the system update on one of the guest VMs running on my XCP-ng host, I accidentally rebooted the XCP-ng host. Why? Accident! The guest VM is very important, it鈥檚 running Xen Orchestra for this XCP-ng server. Semi-fortunately, I remember I had a snapshot for this VM. The challenge for me was, how could I restore the VM using that previous snapshot without Xen Orchestra....

January 4, 2024 路 2 min 路 216 words 路 kenno