+-------+ +-----------+
buidctl <---->+ Envoy +<--->+ Buildkitd +
+-------+ +-----------+
$ git clone https://gist.github.com/ea9582347e2c9d0bb519cdae1b438ead.git envoy-builkitd
$ cd envoy-builkitd
$ docker-comopse up
...you see logs...
- envoy listens:
localhost:1234
- envoy forwards requests to
buildkitd
buildkitd
also listenslocalhost:11234
for debugging
builctl with direct access to buildkit works.
$ buildctl --debug --addr tcp://127.0.0.1:11234 du
ID RECLAIMABLE SIZE LAST ACCESSED
Reclaimable: 0B
Total: 0B
But buildctl can connect to buildkit through Envoy.
$ buildctl --debug --addr tcp://127.0.0.1:1234 du
ID RECLAIMABLE SIZE LAST ACCESSED
Reclaimable: 0B
Total: 0B