Micro Kubernetes Cluster Hetzner

The most simple way to run small and cheap Kubernetes cluster in the Cloud. You take the smallest Hetzner server with public IP address and install k3s, for easy management you can use k9s and you are ready to start. Install sudo curl -sfL https://get.k3s.io | sh - This will install and start Kubernetes in your host. Configure cp /etc/rancher/k3s/k3s.yaml ~/.kube/config chown <user>:<group> ~/.kube/config Then you access your k8s from the host using kubectl: ...

October 8, 2025

Kubernetes Create User Rbac

Microk8s and K3S have RBAC enabled and configured by default. Microk8s configuration has AlwaysAllow policy, so even if you create and assign RBAC role for new user, microk8s will still allow full access. In K3S it is different and RBAC role will be applied. Create User Key openssl genrsa -out <user-name>.key 2048 Creates user’s private key. Create Certificate Signing Request openssl req -new -key <user-name>.key -out <user-name>.csr -subj "/CN=<user-name>/O=<user-group>" Using users private/public key pair and request Certificate Authority to sign and verify the user. ...

September 27, 2025

Microk8s Prune Docker Images

After using microk8s for a while, there may be increased disk usage due to a number of docker images saved in /var dir. You can delete these images using crictl tool. It is not part of microk8s installation, so you need to download first. Install crictl Download crictl Connect to containerd sudo ./crictl -r unix:///var/snap/microk8s/common/run/containerd.sock image lis/ Delete unused images sudo ./crictl -r unix:///var/snap/microk8s/common/run/containerd.sock rmi --prune

September 17, 2025

Certified Kubernetes Administrator

Kubernetes is orchestrator for apps deployed in containers. Kubernetes Architecture Master Nodes Manage Kubernetes platform and administer worker nodes running the containers (workloads) Kube API Exposes the API so other components can communicate. ETCD Distributed key-value database to track state of the whole system. Controller Manager Take care to maintain desired state of the system. Scheduler Distributes PODs to nodes based on different criterias. ...

September 4, 2025

Expand Pvc for Grafana Mimir on AWS EKS

Mimir is Grafana’s scalable and distributed timeseries database, like Prometheus, for storing metrics. In distributed mode, it has several scalable components and if deployed in AWS it could be configured to be zone aware to provide resilient architecture. Main compnents in distributed mode, like Compactor, could be using PVCs to store temporary data before moving to S3 bucket. When to load is increased, you may need to expand the storage. The goal is to do this without losing any data and without any restart. ...

September 4, 2025