I have what seemed like a very simple need but have been unable to get to end of task. What I want is to be able to test custom code under Kubernetes. I want to install this code using helm. I wasted days asking various AIs each with worse answers than the last and I’ll attempt to not recap them here.
I am using Docker Desktop 4.53.0. Kubernetes 1.34.1. I have tried both with Kind (my preferred configuration) and with Kubeadm (good enough if it would but work). I am using Containerd for images.
My initial problem is that the docker registry is not shared with Kubernetes. In theory by switching to KKubeadm from Kind it would be shared. It is not. In theory I should be able to install a registry that would fix this but port 5000 is already in use. This seems very suspicious and may be the root of some problems.
I admit to trying lots of different things so maybe there are some bad configs still laying around.
Anyhow once I get a shared registry I would like to be able to install my service using Helm (this part is important) and have connectivity:
- From local environment e.g. IntelliJ to the service
- From the service to Postgres running as a docker container
- From one service to another - basically what Kubernetes normally does on a normal day
- Ultimately I’d like to be able to scale up the replica count to test some concurrency. But I only mention that because it seems to push us towards LoadBalancer instead of NodePort which is yet another failure point.
It all sounds terribly simple. Like THE basic use case for buying the product sort of simple. But I have literally run out of ideas or places to ask and things to read. Every example either just doesn’t work at all - by far the most common - or it requires some convoluted fragile and time consuming process that makes it untenable for day to day operations.
I will gleefully accept any shame if someone can point me to a RTFM link! But my experience is everything written even a year ago is simply wrong. Regardless I am flat out of ideas.