I am trying to run the script in my flytesnacks PR...
# hacktoberfest-2022
r
I am trying to run the script in my flytesnacks PR https://github.com/flyteorg/flytesnacks/pull/911 on a flyte demo cluster to check out the flytedeck plot but i am getting an error - seems like the kubernetes pods are not responding ? (see screenshot below) ive created the demo cluster as per the instructions in the docs https://docs.flyte.org/en/latest/getting_started/index.html#creating-a-demo-flyte-cluster and exported
KUBECONFIG
and
FLYTECTL_CONFIG
environment variable values which were printed out after the cluster was setup. Do i need to login to the kubernetes ui and/or configure anything else ?
ah sorry just seen the error further below - i didn’t add a docker image arg when running the flytecli command - presume thats why it can’t find my libraries
k
🙂
thank you for posting back
r
Actually, there is another issue now I am trying to start a new cluster pulling this image that i pushed to docker hub registry https://hub.docker.com/r/ryankarlos/flyte-nlp so based on commands in docs https://docs.flyte.org/projects/flytectl/en/latest/gen/flytectl_demo_start.html ive run the command below :
Copy code
flytectl demo start --image <http://docker.io/ryankarlos/flyte-nlp|docker.io/ryankarlos/flyte-nlp>
However i am getting an error (ive turned off all vpn and anti-virus in case thats the issue). Is there some port mapping i need to specify anywhere (i don’t see any args for that in docs though). Also, the image is over 3GB - would that be an issue ? @Samhita Alla
s
@Ryan Nazareth, your image should be given to the
pyflyte run
command. I presume your image uses the Dockerfile that’s present in the PR.
Copy code
flytectl demo start
pyflyte run --remote --image <your-image> <workflow.py> <workflow_name>
154 Views