+-------+ +-----------+
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 buildkitdalso listenslocalhost:11234for 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