Hi! First off, thanks for building and supporting caddy and caddy-L4 :smiley:
We have been using caddy in production for about 2y for now and are totally happy :smile: with it
Now I wanna use caddy as an edge load balancer before kube apiserver. I have a pretty standard deployment as below:
.
I've setup my laptop as a kube apiclient. It works, but fails due to TLS timeout intermittently, like one first command fails and have 2-3 commands succeeded.
Here's what I have:
~/.kube kubectl get pods -A ✔ 21:05:43
E1124 21:05:55.183074 132224 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"https://public-IP:25025/api?timeout=32s\": net/http: TLS handshake timeout"
E1124 21:06:05.202558 132224 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"https://public-IP:25025/api?timeout=32s\": net/http: TLS handshake timeout"
E1124 21:06:15.221692 132224 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"https://public-IP:25025/api?timeout=32s\": net/http: TLS handshake timeout"
error: the server doesn't have a resource type "po"
~/.kube kubectl get pods -A 1 ✘ 21:06:15
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system coredns-7c65d6cfc9-7dfvp 1/1 Running 1 (20h ago) 5d6h
kube-system coredns-7c65d6cfc9-dx2cz 1/1 Running 1 (20h ago) 5d6h
...
caddy build-info
dep github.com/caddyserver/caddy/v2 v2.8.4 h1:q3pe0wpBj1OcHFZ3n/1nl4V4bxBrYoSoab7rL9BMYNk=
dep github.com/mholt/caddy-l4 v0.0.0-20241102143510-d8ba3fbdf35c h1:3z5GznqFlQFOiyWdeVC7yYu1hWSZ7UHdS2dRUbvNCZg=
dep github.com/mholt/caddy-ratelimit v0.0.0-20240828171918-12435ecef5db h1:30N0UnATYd7E8iaWSSOTlsr2/rd8v+7w0X+2Jc8FDJk=
Hi! First off, thanks for building and supporting
caddy
andcaddy-L4
:smiley:We have been using
caddy
in production for about 2y for now and are totally happy :smile: with itNow I wanna use
caddy
as anedge load balancer
beforekube apiserver
. I have a pretty standard deployment as below: .I've setup my laptop as a
kube apiclient
. It works, but fails due toTLS timeout
intermittently, like one first command fails and have 2-3 commands succeeded.Here's what I have:
I don't really know how to debug this.
My setup:
OS (server): Ubuntu 24.04 OS(VM): Ubuntu 24.04
Caddyfile:
Caddy config: