K8s + ingress-nginx + caddy = 502 bad gateway (sometimes)

This might help: Making sense of auto_https and why disabling it still serves HTTPS instead of HTTP

If I understand correctly what you’re trying to do then I think you might want to do

http://test.bildu.lt {
...

instead of

test.bildu.lt {
...