Hello Everyone, I recently deployed flyte to a kub...
# flyte-deployment
a
Hello Everyone, I recently deployed flyte to a kuberneted cluster and I am able to access the console page without any issues. The problem is when I try to use flyte remote, I keep getting grpc connection errors:
Copy code
/opt/homebrew/lib/python3.11/site-packages/flytekit/clients/grpc_utils/wrap_exception_interceptor.py:32 in _raise_if_exc                                                                                                                                                                                                     ────────────────────────────────────────────────────────────────────────╯
FlyteSystemUnavailableException: Flyte cluster is currently unavailable. Please make sure the cluster is up and running.
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
E0000 00:00:1739812143.306775 1021532 <http://init.cc:229]|init.cc:229]> grpc_wait_for_shutdown_with_timeout() timed out.
Any pointers to an existing issue like this or documentation reference will be helpful. Thank you
a
can you share how you are configuring your
FlyteRemote
object?
it might be that you need to use the
for_endpoint
method https://docs.flyte.org/en/latest/api/flytekit/design/control_plane.html#any-endpoint
a
Thank you David: Here is how I configured the FlyteRemoteObject:
Copy code
# Connect to the Flyte cluster
remote = FlyteRemote(Config.for_endpoint("<https://exmapl.com>"), 
    default_project="flytesnacks", 
    default_domain="development"
)

# Fetch workflow
workflow_name = "data_merge"
flyte_workflow = remote.fetch_workflow(name=workflow_name)
a
can you try from your CLI if
flytectl get projects
works?
a
error: Connection Info: [Endpoint: dns///flyte.domain.io8089, InsecureConnection?: true, AuthMode: ClientSecret]: rpc error: code = Unavailable desc = connection error: desc = "error reading server preface: http2: frame too large" {"json":{},"level":"error","msg":"Connection Info: [Endpoint: dns///flyte.domain.io8089, InsecureConnection?: true, AuthMode: ClientSecret]: rpc error: code = Unavailable desc = connection error: desc = \"error reading server preface: http2: frame too large\"","ts":"2025-02-18T160359+04:00"} Here is what I get
a
oh ok, can you share your
$HOME/.flyte/config.yaml
?
a
Thank you. Here is my config.yaml
Copy code
admin:
  # For GRPC endpoints you might want to use dns:///flyte.myexample.com
  endpoint: dns:///flyte.domain.io:8089
  insecure: true
  authType: Pkce
I previously tried without specifying the port but still faced the same issue
Hello @average-finland-92144, thank you so much for your continuous help. I got it working by starting everything from scratch and running it on it's own namespace then updated my config to:
Copy code
admin:
  # For GRPC endpoints you might want to use dns:///flyte.myexample.com
  endpoint: dns:///flyte.domain.io
  authType: Pkce
  insecure: false
  insecureSkipVerify: true
logger:
  show-source: true
  level: 6
I used this guide: https://github.com/davidmirror-ops/flyte-the-hard-way/tree/main/docs/aws
a
awesome! Any other question let us know
a
Sure! Much appreciated!