Title
k

Khuyen Tran

12/27/2021, 9:30 PM
So I created a sandbox using:
flytectl sandbox start --source .
. After doing that, I can access to Flyte UI. However, after stopping the container, I tried to run
flytectl sandbox start --source .
to resume the existing sandbox cluster, but I can't access to Flyte UI. Here is the specific outputs I got:
➜ flytectl sandbox start                                       
πŸ§‘β€πŸ­ Bootstrapping a brand new flyte cluster... πŸ”¨ πŸ”§
delete existing sandbox cluster [y/n]: n
Existing details of your sandboxπŸ‘¨β€πŸ’» Flyte is ready! Flyte UI is available at <http://localhost:30081/console> πŸš€ πŸš€ πŸŽ‰ 
Add KUBECONFIG and FLYTECTL_CONFIG to your environment variable 
export KUBECONFIG=$KUBECONFIG:/home/khuyen/.kube/config:/home/khuyen/.flyte/k3s/k3s.yaml 
export FLYTECTL_CONFIG=/home/khuyen/.flyte/config-sandbox.yaml
I wonder what is the best way to resume the existing cluster?
h

Haytham Abuelfutuh

12/27/2021, 9:34 PM
Hey @Khuyen Tran thank you for your interest! I think this is related to: https://github.com/flyteorg/flyte/issues/1605 (Which is closed as fixed) And potentially doing this may be better: https://github.com/flyteorg/flyte/issues/1604 What version of flytectl do you have?
flytectl version
CC @Prafulla Mahindrakar @Yuvraj
k

Khuyen Tran

12/27/2021, 9:39 PM
Thank you for the suggestion! My flytectl version is 0.4.3
h

Haytham Abuelfutuh

12/27/2021, 10:38 PM
ls ~/.flyte/
export KUBECONFIG=$KUBECONFIG:/home/khuyen/.kube/config:/home/khuyen/.flyte/k3s/k3s.yaml 
export FLYTECTL_CONFIG=/home/khuyen/.flyte/config-sandbox.yaml

kubectl config use-context default

kubectl port-forward -n flyte ingress/flyte-system
curl -LO "<https://dl.k8s.io/release/$(curl> -L -s <https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl>"
kubectl get pods -A
docker exec -it <the container id> sh
y

Yuvraj

12/28/2021, 6:29 AM
@Khuyen Tran Currently we did't added command for restart in flytectl, For now you can use
docker start flyte-sandbox
k

Khuyen Tran

12/28/2021, 2:35 PM
@Yuvraj I tried that but I still can't access to Flyte UI
y

Yuvraj

12/28/2021, 2:37 PM
Currently It's a bug, I am working on the fix here https://github.com/flyteorg/flyte/pull/1990, For now please re create the sandbox.
k

Khuyen Tran

12/28/2021, 8:00 PM
Thank you!