Aswanth Krishnan
02/20/2023, 7:45 AMdocker create --privileged -p 0.0.0.0:30082:30082 -p 0.0.0.0:30084:30084 -p 0.0.0.0:30086:30086 -p 0.0.0.0:30088:30088 -p 0.0.0.0:30089:30089 -p 0.0.0.0:30080:30080 -p 0.0.0.0:30081:30081 -p 127.0.0.1:8501:8501 --env SANDBOX=1 --env KUBERNETES_API_PORT=30086 --env FLYTE_HOST=localhost:30081 --env FLYTE_AWS_ENDPOINT=<http://localhost:30084> --mount type=bind,source=/home/aswanth/.flyte,target=/etc/rancher/ --mount type=bind,source=/home/aswanth/.flyte/state,target=/srv/flyte --name flyte-sandbox <http://cr.flyte.org/flyteorg/flyte-sandbox:dind-f69fb09ca189e8bf57e1a6a12db168274f640d15|cr.flyte.org/flyteorg/flyte-sandbox:dind-f69fb09ca189e8bf57e1a6a12db168274f640d15>
after this when i try to register my workflows using pyflyte register i am gettting the following error grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "failed to connect to all addresses; last error: UNAVAILABLE: Socket closed"
debug_error_string = "UNKNOWN:Failed to pick subchannel {created_time:"2023-02-20T12:41:31.69117013+05:30", children:[UNKNOWN:failed to connect to all addresses; last error: UNAVAILABLE: Socket closed {created_time:"2023-02-20T12:41:31.691159352+05:30", grpc_status:14}]}"
how can i achieve my intention? Thanks in advanceKevin Su
02/20/2023, 5:07 PMDavid Espejo (he/him)
02/20/2023, 7:55 PMNodePort
service would do.
To expose a Pod using a specific pair of ports, you could do it imperatively using `kubectl expose`:
https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#exposeAswanth Krishnan
02/21/2023, 6:01 AMadmin:
# For GRPC endpoints you might want to use dns:///flyte.myexample.com
endpoint: localhost:30080
authType: Pkce
insecure: true
console:
endpoint: <http://localhost:30081>
logger:
show-source: true
level: 0
kubectl port-forward --address $(hostname -i),localhost ui-pod 8501:8501
command. will kubectl expose
work differently? I also need to access this outside the sandbox container. Sorry if my questions doesn't make sense. i am pretty new to flyte and kubernetes.David Espejo (he/him)
02/21/2023, 3:26 PMkubectl port forward
will work while your terminal session is open, kubectl expose
will create a Service for you to make it persistentAswanth Krishnan
02/21/2023, 3:42 PMDavid Espejo (he/him)
02/21/2023, 3:43 PMpyflyte run
?Aswanth Krishnan
02/22/2023, 6:04 AMSamhita Alla
03/02/2023, 12:52 PM