https://flyte.org logo
k

KS Tarun

09/05/2022, 12:42 PM
How should I run the demo cluster if I want to have the flyte UI at a different port (other than 30080) ?
s

Smriti Satyan

09/05/2022, 1:01 PM
endpoint: <http://localhost:30084|http://localhost:30084>
The endpoint here tells about your port. Cc @Kevin Su
Hi @KS Tarun , you can change the port in the endpoint, and this configuration can be changed in the config.yaml file.
@KS Tarun, are you able to spin up flyte on a different port?
k

KS Tarun

09/07/2022, 7:16 AM
@Samhita Alla; No, I haven't been able do it. Though I modified the endpoint in the config file, I still get the console at the 30080 port only. http://localhost:30080/console/
s

Smriti Satyan

09/07/2022, 7:17 AM
After changing the port, did you restart the cluster?
k

KS Tarun

09/07/2022, 7:24 AM
Yes, I did
s

Samhita Alla

09/07/2022, 7:39 AM
@Kevin Su / @Prafulla Mahindrakar, why is the config given in the demo start command not getting picked up
flytectl demo start -c <your-config-file>
? I modified the port but it’s 30080 always.
s

Smriti Satyan

09/07/2022, 7:42 AM
I think the demo runs only on 30080 port or something on those lines.
https://github.com/flyteorg/flyte/issues/2503 - here is a discussion that mentions about demo using port 30080 only..
k

Kevin Su

09/07/2022, 7:54 AM
I think the demo cluster can run on different port if config changes. The message in command line always shows that
UI is available at <https://localhost:30080>
because we hard code the message in flytectl. btw, demo container didn’t expose port 30083, so you can’t connect to it. https://github.com/flyteorg/flytectl/blob/0a68a579e91b72ee99b2f5c6bc15509f2d8bce7e/pkg/docker/docker_util.go#L117-L125
p

Prafulla Mahindrakar

09/07/2022, 7:56 AM
Yes this require config file change in flyte repo called flyte.yaml and regeneration of the single binary Ref for this config .
Copy code
cmd/single/root.go:	RootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is ./flyte.yaml)")
docker/sandbox-lite/flyte-entrypoint-dind.sh:flyte start --config /flyteorg/share/flyte.yaml &
docker/sandbox-lite/Dockerfile:COPY flyte.yaml /flyteorg/share/flyte.yaml
flytectl config.yaml is just a client side config and mentions info on where to connect to the server.
steps that should work ideally. • Checkout flyte repo from github • Change the httpPort config in flyte.yaml -> lets say from 30080 -10080 • Change the port in Dockerfile to expose the port 10080 instead of old 30080 • docker build -t lit-image --file docker/sandbox-lite/Dockerfile • flytectl demo start --image lit-image
k

Kevin Su

09/07/2022, 8:49 AM
Another way to do that is updating this line to
0.0.0.0:30083:30080
, and rebuild the flytectl by running
make compile
. More detail about building the flytectl, check here
2 Views