A quick question. What’s the difference between `f...
# ask-the-community
h
A quick question. What’s the difference between
flytectl sandbox
and
flytectl demo
? The documentation looks very similar.
flytectl demo
seems to be much faster, so maybe it is using the single-binary thing?
s
Yes! We're phasing out
flytectl sandbox
in favor of
flytectl demo
.
d
@honnix you are correct.
flytectl demo
uses single binary internally.
h
Nice! Thank for clarification. Maybe we can add a quick note on the sandbox part of doc to indicate it is going away?
Another question. Is it possible to expose admin API port? Right now it doesn’t seem so https://github.com/flyteorg/flytectl/blob/1b2221ff7293d0a45ff013908c022623226feefb/pkg/docker/docker_util.go#L135-L143
Well I guess it must be exposed already otherwise how could console communicate. I can take a look at the web traffic to figure out.
Hmm, that is the HTTP endpoint though. Do we expose gRPC admin endpoints? Here is the context for these questions: we are exploring whether it is doable to use
flytectl demo
for integration test, and the integration point is a couple of RPC endpoints.
Now I see 30080 proxies gRPC traffic as well.
s
cc @Eduardo Apolinario (eapolinario)
d
@honnix gRPC runs over HTTP right? Sounds like you have this figured out? Also, we have explored setting up some integration testing along the same lines. Might be interested in discussing this a little deeper.
h
Yeah, I figure it out. I thought it was only protobuf over plan http. It’s all good now. In one of our projects, we use sandbox image directly to do integration test https://github.com/flyteorg/flytekit-java/blob/18a7659993be19cc1f95a3f2289d7e89960e0d2d/integration-tests/src/test/java/org/flyte/utils/FlyteSandboxContainer.java. That might be useful for you to take a look.
182 Views