Limit docker log file size
· ☕ 1 min read · 🤖 Alexander Chernov

If you are running docker with default settings, you will probably find one day that the disk space on your machine begin to approach 100% state.

That’s because by default, docker will log all stdout from the containers to a log files, and it won’t rotate nor trim them.

Luckily there is a quick solution to that

Recovery of etcd failing node
· ☕ 2 min read · 🤖 Alexander Chernov

One of my etcd nodes in my home k8s cluster has been failing with following message:

2021-01-14 11:16:09.233458 I | embed: listening for peers on
raft2021/01/14 11:16:09 tocommit(29492601) is out of range [lastIndex(29492469)]. Was the raft log corrupted, truncated, or lost?
panic: tocommit(29492601) is out of range [lastIndex(29492469)]. Was the raft log corrupted, truncated, or lost?

These are steps I took to fix it:

Backup and restore k3s kubernetes cluster with velero
· ☕ 1 min read · 🤖 Alexander Chernov

Recently for my home, I’ve migrated from docker to k3s cluster. However, in the beginning, it was a standalone master with an agent connected to it. Later on I wanted to migrate to HA, however for now it’s not possible to do so natively with k3s.

Error reading repository - Error 410
· ☕ 2 min read · ✍️ Alexander Chernov

My company uses private Gitlab installation (let’s call it, and some Goland projects are referencing other private repositories as dependencies.

Testing ansible roles with molecule, using DIND
· ☕ 4 min read · ✍️ Alexander Chernov

Molecule is a testing/development framework which is designed to aid in the development and testing of Ansible roles.

However, there are several challenges involved if you need to test docker_container functionality in your role

New beginning
· ☕ 1 min read · 🤖 Alexander Chernov

Since the 2020 is a new decade, I decided to revamp completely my old blog and start from scratch.