I'm trying to deploy buildbot on kubernetes because:
- I couldn't find anybod else that had done it.
- I wanted to learn how to deploy something more complicated than Nginx
- It looked like good blogpost material.
I found https://docs.buildbot.net/current/tutorial/docker.html and specifically https://github.com/buildbot/buildbot-docker-example-config. It's a docker-compose config which I'm trying to map to a K8s setup.
On Minikube I got a few things working:
kubectl create -f buildbot-postgres.yml
creates a postgres container. Start that first.kubectl create -f buildbot-master.yml
creates a master node. Start that second.kubectl port-forward <master pod> 8080:8080
(or something close) allows you to view the master node onlocalhost:8080
, which is what Buildbot wants.kubectl create -f buildbot-worker.yml
creates the worker pod, butkubectl logs <worker pod>
show that it cannot connect to the master pod.
The problem I have is that kbuectl create -f buildbot-worker.yml
does not work. I have no idea why.
When you run kubectl exec <worker pod> sh
you can curl master:8080
and that works fine, but curl master:9989
(the port they communicate on) hangs.
I'm not sure how best to debug this further. Any ideas on how to get the master
and worker
pod communicating correctly?
kubectl describe -f buildbot-worker.yml
should look similar to kubectl describe -f buildbot-postgres.yml
I think but I coudl be wrong.