jamell.dev

Running a cronjob on Kubernetes requires installing half the internet first

2026-02-26 (7m ago)4 views

#kubernetes#devops#k3d

I spent an entire day trying to set up a local multi-cluster Kubernetes environment to test Airflow scheduler leader election as a POC for migrating cronjobs. Here's how it went.

me: hey can you run a cronjob

claude: sure, first install Homebrew

me: ok

claude: now install Colima so you have Docker but not Docker Desktop because that costs money

me: ok

claude: now install kubectl, helm, k3d, kind, karmada, karmadactl, krew, vcluster

me: ok... why kind

claude: you won't need it

me: ok

claude: now start Colima with 10 CPUs and 24GB RAM

me: I only have—

claude: how much RAM do you have

me: 48GB

claude: perfect. now start Colima. oh it started k3s even though we don't need it

me: how do I—

claude: edit the yaml. now create 3 k3d clusters

me: it says kubelet unhealthy

claude: cgroup issue. create a config file

me: still failing

claude: switch to kind

me: kind also fails

claude: switch back to k3d

me: ok k3d works. now what

claude: install Karmada

me: permission denied on /etc/karmada

claude: sudo mkdir it

me: unlinkat permission denied

claude: sudo rm -rf it first

me: still permission denied

claude: use Helm instead

me: webhook is crash looping

claude: too many open files. edit colima.yaml, restart everything, recreate all 3 clusters

me: ok done. now what

claude: now install CloudNativePG, then Airflow twice, then write the DAGs

me: what does any of this have to do with running a cronjob

claude: the cronjob runs at the end

Actual lessons from the day, for future me: