Drone UI static files not found when running a drone server on k8s cluster

I tried to deploy a drone server on my k8s cluster(gcp).
I used official drone charts and exposed the drone server via k8s ingress (with Google-managed SSL certificates)
Although I can access the drone server with the domain name, the static files of drone-ui are 404 not found.

The status code of drone.mydomain .com is 200 while the status code of drone.mydomain .com/css/app.354cf870.css is 404

Following are the log messages of the drone-server pod:

{“level”:“info”,“msg”:“main: internal scheduler enabled”,“time”:“2020-10-11T16:43:11Z”}
{“acme”:false,“host”:“drone.mydomain.com”,“level”:“info”,“msg”:“starting the http server”,“port”:":80",“proto”:“https”,“time”:“2020-10-11T16:43:11Z”,“url”:“https://drone.mydomain.com”}
{“interval”:“30m0s”,“level”:“info”,“msg”:“starting the cron scheduler”,“time”:“2020-10-11T16:43:11Z”}
{“interval”:“24h0m0s”,“level”:“info”,“msg”:“starting the zombie build reaper”,“time”:“2020-10-11T16:43:11Z”}

Any ideas? Thanks!

I just found that there’s some mistake in the rules of ingress.
Fixed. Thanks.

The static files are embedded and served from the Drone server binary. This is the first time anyone has reported this behavior, to my recollection, so unfortunately I do not have any prior troubleshooting experience to draw upon here. I did test the latest release and was able to confirm everything is working as expected for us.

1 Like