So I created a sandbox using: `flytectl sandbox st...
# ask-the-community
k
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:
Copy code
➜ 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
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
Thank you for the suggestion! My flytectl version is 0.4.3
h
ls ~/.flyte/
Copy code
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
Copy code
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
@Khuyen Tran Currently we did't added command for restart in flytectl, For now you can use
docker start flyte-sandbox
k
@Yuvraj I tried that but I still can't access to Flyte UI
y
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
Thank you!
167 Views