Stephen Fromm
05/25/2022, 3:11 PMsandbox
and the demo
, but I can't make my way through the example with either of them.cd flytesnacks/cookbook/
flytectl sandbox start --source .
Ketan (kumare3)
Stephen Fromm
05/25/2022, 3:16 PMpyflyte run
to work in other examples; this one I'm trying to use flytectl
Ketan (kumare3)
Stephen Fromm
05/25/2022, 3:18 PMflytectl sandbox exec -- docker build . --tag "flytebasics:v1" -f core/Dockerfile
That will take a few minutes. But it's the step I've had problems with before. (Meaning, it runs, but things after that don't work.)pyflyte --pkgs core.flyte_basics package --image flytebasics:v1
runs fineflytectl register files --project flytesnacks --domain development --archive flyte-package.tgz --version v1
results in
Error: rpc error: code = Unavailable desc = connection closed
Ketan (kumare3)
Prafulla Mahindrakar
05/25/2022, 3:56 PMflytectl get projects --logger.level=6
Stephen Fromm
05/25/2022, 3:57 PMexport KUBECONFIG=$KUBECONFIG:/Users/sfromm/.kube/config:/Users/sfromm/.flyte/k3s/k3s.yaml
export FLYTECTL_CONFIG=/Users/sfromm/.flyte/config-sandbox.yaml
Prafulla Mahindrakar
05/25/2022, 3:57 PMkubectl get pods -n flyte
Stephen Fromm
05/25/2022, 3:58 PMadmin:
# For GRPC endpoints you might want to use dns:///flyte.myexample.com
endpoint: localhost:30081
authType: Pkce
insecure: true
logger:
show-source: true
level: 0
Prafulla Mahindrakar
05/25/2022, 3:58 PMStephen Fromm
05/25/2022, 3:59 PMPrafulla Mahindrakar
05/25/2022, 3:59 PMkubectl get pods -n flyte
Stephen Fromm
05/25/2022, 3:59 PMNAME READY STATUS RESTARTS AGE
syncresources-27558199-7t75r 0/1 Completed 0 40m
syncresources-27558200-kc9l7 0/1 Completed 0 39m
postgres-575f67c7f8-wj5bf 0/1 Evicted 0 41m
postgres-575f67c7f8-h9br5 0/1 Evicted 0 39m
postgres-575f67c7f8-2dxzc 0/1 Evicted 0 39m
postgres-575f67c7f8-wlvqr 0/1 Evicted 0 39m
postgres-575f67c7f8-2pz4x 0/1 Evicted 0 39m
postgres-575f67c7f8-2gvqq 0/1 Evicted 0 39m
postgres-575f67c7f8-nmj6b 0/1 Evicted 0 39m
postgres-575f67c7f8-cshj8 0/1 Evicted 0 39m
postgres-575f67c7f8-jhvxk 0/1 Evicted 0 39m
postgres-575f67c7f8-hd8dt 0/1 Evicted 0 39m
postgres-575f67c7f8-pg5tg 0/1 Evicted 0 39m
postgres-575f67c7f8-dwsgk 0/1 Evicted 0 38m
postgres-575f67c7f8-gtlj9 0/1 Pending 0 38m
minio-799fc77896-kfspb 0/1 Evicted 0 41m
minio-799fc77896-g5fq4 0/1 Pending 0 38m
redoc-54598f6688-98prm 0/1 Evicted 0 41m
redoc-54598f6688-r68x4 0/1 Pending 0 38m
syncresources-27558201-8489k 0/1 Pending 0 38m
flyte-pod-webhook-69c894c9d-489hq 0/1 Evicted 0 41m
flyte-pod-webhook-69c894c9d-vg7bq 0/1 Pending 0 38m
flyte-contour-contour-55bf854cdf-58rdj 0/1 Evicted 0 41m
flyte-contour-contour-55bf854cdf-rstss 0/1 Pending 0 38m
flyte-kubernetes-dashboard-7fd989b99d-r9hmt 0/1 Evicted 0 41m
flyte-kubernetes-dashboard-7fd989b99d-jbkw4 0/1 Pending 0 38m
flyteconsole-585d84889b-crmtd 0/1 Evicted 0 41m
flyteconsole-585d84889b-4vqsq 0/1 Pending 0 38m
flytepropeller-559f9ddb6f-nnzw5 0/1 Evicted 0 41m
flytepropeller-559f9ddb6f-rk5ss 0/1 Pending 0 38m
flyteadmin-6d4f5c7c77-4z4d4 0/1 Evicted 0 41m
flyteadmin-6d4f5c7c77-4qjm6 0/1 Pending 0 38m
flytescheduler-66db59bc95-sk27k 0/1 Evicted 0 41m
flytescheduler-66db59bc95-5r2sh 0/1 Pending 0 38m
datacatalog-8478745fc4-fp9lg 0/1 Evicted 0 41m
datacatalog-8478745fc4-6klb5 0/1 Pending 0 37m
syncresources-27558202-bw6fr 0/1 Pending 0 37m
syncresources-27558203-mbt5h 0/1 Pending 0 36m
syncresources-27558204-v6j5q 0/1 Pending 0 35m
syncresources-27558205-d2nnx 0/1 Pending 0 34m
syncresources-27558206-88kfh 0/1 Pending 0 33m
syncresources-27558207-7flx4 0/1 Pending 0 32m
syncresources-27558208-jh4m6 0/1 Pending 0 31m
syncresources-27558209-7vqlp 0/1 Pending 0 30m
syncresources-27558210-wzdlm 0/1 Pending 0 29m
syncresources-27558211-wckvh 0/1 Pending 0 28m
syncresources-27558212-bzkjn 0/1 Pending 0 27m
syncresources-27558213-jdrhm 0/1 Pending 0 26m
syncresources-27558214-p5wb8 0/1 Pending 0 25m
syncresources-27558215-bnh4l 0/1 Pending 0 24m
syncresources-27558216-sls7q 0/1 Pending 0 23m
syncresources-27558217-psq69 0/1 Pending 0 22m
syncresources-27558218-mxgbj 0/1 Pending 0 21m
syncresources-27558219-cksbf 0/1 Pending 0 20m
syncresources-27558220-5459k 0/1 Pending 0 19m
syncresources-27558221-24fmr 0/1 Pending 0 18m
syncresources-27558222-wtnwq 0/1 Pending 0 17m
syncresources-27558223-xsxqs 0/1 Pending 0 16m
syncresources-27558224-t2wg8 0/1 Pending 0 15m
syncresources-27558225-8c62x 0/1 Pending 0 14m
syncresources-27558226-rxjxt 0/1 Pending 0 13m
syncresources-27558227-8hjph 0/1 Pending 0 12m
syncresources-27558228-p9h4l 0/1 Pending 0 11m
syncresources-27558229-dglks 0/1 Pending 0 10m
syncresources-27558230-6c9zr 0/1 Pending 0 9m53s
syncresources-27558231-w5ddr 0/1 Pending 0 8m53s
syncresources-27558232-lznxd 0/1 Pending 0 7m53s
syncresources-27558233-q9kk6 0/1 Pending 0 6m53s
flyte-contour-envoy-z8zlg 0/2 Evicted 0 6m45s
syncresources-27558234-4dd82 0/1 Pending 0 5m53s
syncresources-27558235-lls2m 0/1 Pending 0 4m53s
syncresources-27558236-kpqx6 0/1 Pending 0 3m53s
syncresources-27558237-cgrdf 0/1 Pending 0 2m53s
syncresources-27558238-drjtx 0/1 Pending 0 113s
syncresources-27558239-jbg2x 0/1 Pending 0 53s
Prafulla Mahindrakar
05/25/2022, 4:01 PMStephen Fromm
05/25/2022, 4:01 PMPrafulla Mahindrakar
05/25/2022, 4:05 PMkubectl describe pod -n flyte postgres-575f67c7f8-gtlj9
Stephen Fromm
05/25/2022, 4:06 PMDo you want the full output? Partial output:
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedScheduling 45m default-scheduler 0/1 nodes are available: 1 node(s) had taint {<http://node.kubernetes.io/disk-pressure|node.kubernetes.io/disk-pressure>: }, that the pod didn't tolerate.
Warning FailedScheduling 19m (x31 over 45m) default-scheduler 0/1 nodes are available: 1 node(s) had taint {<http://node.kubernetes.io/disk-pressure|node.kubernetes.io/disk-pressure>: }, that the pod didn't tolerate.
Prafulla Mahindrakar
05/25/2022, 4:07 PMdocker system prune -a --volumes
Stephen Fromm
05/25/2022, 4:08 PMPrafulla Mahindrakar
05/25/2022, 4:08 PMflytectl sandbox teardown
Stephen Fromm
05/25/2022, 4:09 PMPrafulla Mahindrakar
05/25/2022, 4:10 PMStephen Fromm
05/25/2022, 4:25 PMKetan (kumare3)
Stephen Fromm
05/25/2022, 4:29 PMKetan (kumare3)
Stephen Fromm
05/25/2022, 4:30 PMKetan (kumare3)