Today I discovered that a container in my home Kubernetes crashed, which is responsible for downloading the price of the SP500 ETF fund, which is then taken by Prometheus and passed to my Grafana.
Posts for: #Technical
MicroK8s and DockerHub
If you work with Docker, you’ve surely noticed recently that DockerHub requires authentication when you download a bit more from it. In this article, I’ve decided to describe how to handle this in connection with MicroK8s.
The first thing we need to modify is the file /var/snap/microk8s/current/args/certs.d/docker.io/hosts.toml
. If any subdirectory or file doesn’t exist, create it. The file should look like this:
server = "https://docker.io"
[host."https://registry-1.docker.io"]
capabilities = ["pull", "resolve"]
[host."https://registry-1.docker.io".auth]
username = "YOUR_DOCKERHUB_USERNAME"
identitytoken = "dckr_pat_TOKEN"
You need to generate a token on the DockerHub website. You can do this by clicking on Account -> Personal Access Tokens
Work on Home Server
So today I was working on my home server, and I accidentally discovered from monitoring that some services weren’t running. Since my home Kubernetes server is more for playing around, but also hosts some public things, I get messages from Nagios once every 24 hours, so it doesn’t disturb me too much, but at the same time makes me aware of the need to address issues.
My Home Server with Kubernetes
It’s true that I run my own server with Kubernetes at home, but what does it actually look like, and what do I test on it? At the beginning, I built an “enterprise” solution that is on the level of large corporations, at least on the surface - I have my own repository for OCI images, my own pipelines in GitHub for creating OCI images, and even my own installation of ArgoCD.
How to Connect to an SSH/RDP Server in Azure with a Proxy
If you ever want to connect to a virtual machine in Azure from a corporate network and you don’t have a dedicated line or dedicated IP, you’ll likely run into issues. You’ll be behind a corporate proxy and won’t be able to get out easily, nor can you expect anyone to allow you access to all SSH or RDP ports on the external network.
I Wrote My Own Bookmark Management Application
Recently, I’ve been dealing with an interesting problem. I have a large number of websites that I want to randomly visit a few of each day. It’s not an unsolvable problem - I copied the sites into Google Sheets and used ChatGPT to write a script that randomly selects ten sites and opens them in a new window.