Hello, I followed the kubernestes distributed example to run agola in minukube, all the pods are up and running:
NAMESPACE NAME READY STATUS RESTARTS AGE
default agola-configstore-6b695fd9ff-qptsn 1/1 Running 5 14m
default agola-configstore-6b695fd9ff-rpl7h 1/1 Running 5 14m
default agola-executor-576778ff84-qknbh 1/1 Running 0 14m
default agola-executor-576778ff84-vptfx 1/1 Running 0 14m
default agola-gateway-others-79cbd6cc5f-p86wq 1/1 Running 0 14m
default agola-gateway-others-79cbd6cc5f-wjpb4 1/1 Running 0 14m
default agola-gitserver-869f8bbfb8-cn2c9 1/1 Running 0 14m
default agola-runservice-8f44c4d47-vp89f 1/1 Running 5 14m
default agola-runservice-8f44c4d47-wlqs2 1/1 Running 5 14m
default minio-6f44ccc59-qf45k 1/1 Running 0 14m
However, when I access agola web expose URL to register, I got a blank page. Looking at the chrome development tools, I can see:
curl 'http://192.168.64.20:30002/api/v1alpha/remotesources' -H 'Connection: keep-alive' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36' -H 'Accept: */*' -H 'Referer: http://192.168.64.20:30002/register' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: en-US,en;q=0.9,vi;q=0.8' -H 'Cookie: lang=en-US; i_like_gitea=82076592b485c935; _csrf=6mbbW4svRvaXmHhSLY8ta_FXNPU6MTU4MTUwMjgyNDIyMjcwODA3Mg' --compressed --insecure
Looking at the gateway pods logs:
2020-02-12T11:01:15.209Z ERROR scheduler/scheduler.go:116 err: failed to get running runs:
agola.io/agola/internal/services/scheduler.(*Scheduler).approve
/agola/internal/services/scheduler/scheduler.go:133
- Get http://agola-runservice:4000/api/v1alpha/runs?asc=&phase=running: dial tcp 10.97.93.3:4000: connect: connection refused
So I attach to the runservice pod, and check if port 4000 is opened, but it does not.
How can I fix it?