Debugging kubernetes containers
The scenario: you have a running kubernetes cluster, but suddenly some of your containers start to have problems. Obviously now there must be a way to find out what exactly is causing these problems. In this post I’ll highlight two ways to debug a container running on kubernetes: ephemeral-containers (which is likely what you should use most of the time) nsenter (which is a last resort debugging option that requires access to the node the Pod is running on) Want to follow along?...
Install kata-containers on K3S on aarch64
To install kata-containers on a raspberry-pi and integrating it into kubernetes a few steps are currently required: Install kata-containers Setup integration into containerd Setup integration into kubernetes Install kata-containers Currently the easiest (and apparently only) officially supported way to install kata-containers on an aarch64 system is to use snaps. If you are using the Ubuntu arm version this is already included in the installation and you can install kata-containers with a single command1:...
Deploying Teamspeak on a Raspberry PI kubernetes cluster
While this post will end up with a running Teamspeak server, it is very hard on the resources of the Raspberry Pi and might not be suitable for everyday use. To deploy a teamspeak server on raspberry pi a few things need to be done: (optional) Get a Kubernetes cluster up and running (this is not required, if you just want to run the docker container directly). Get Teamspeak to run on ARM....
Testing an ansible collection
When wanting to work on a collection for ansible it is (for now1) important to check it out in a very specific folder structure or it will not be possible to run the tests for it. When trying to run ansible-test integration it will otherwise throw the following error: 1ERROR: The current working directory must be at or below: 2 3 - an Ansible collection: {...}/ansible_collections/{namespace}/{collection}/ 4 5Current working directory: <some_other_dir> The collection must be really placed inside a subfolder of a folder called ansible_collections and neither namespace nor collection can contain any symbols except alphanumberics or underscores ([a-zA-Z0-9_]):...
Converting openssh private key to PEM format
Newer version of the openssh will use their own format to store a private key: -----BEGIN OPENSSH PRIVATE KEY----- BASE64KEYTEXT -----END OPENSSH PRIVATE KEY----- The traditional format of the key can sometimes be useful (or even required - for example guacamole will not be able to use the OPENSSH key format). To convert the key use ssh-keygen. The command will overwrite the private key file, so if the original key should be preserved make sure to create a backup:...
Personal blog Converting openssh private key to PEM format openssh Newer versions of the openssh will use their own format to store a private key: -----BEGIN OPENSSH PRIVATE KEY----- BASE64KEYTEXT -----END OPENSSH PRIVATE KEY----- The traditional format of the key can sometimes be useful (or even required - for example guacamole will not be able to use the OPENSSH key format). To convert the key use ssh-keygen. The command will overwrite the private key file, so if the original key should be preserved make sure to create a backup:...