witty-planet-44210
05/24/2023, 1:49 PMfreezing-airport-6809
freezing-airport-6809
cool-lifeguard-49380
05/24/2023, 4:03 PMcool-lifeguard-49380
05/24/2023, 4:03 PMwitty-planet-44210
05/25/2023, 5:25 AMflyte-binary
Helm chart to my GKE cluster, with
auth:
enabled: false
selfAuthServer: false
ingress:
create: true
ingressClassName: nginx
host: flyte-console.mycompany.domain
There is no TLS setup in the ingress, the domain is setup with TLS via the domain manager.
Then, I’ve been trying to execute workflows in a Jupyter notebook. The JupyterHub is deployed in the same cluster with Flyte.
remote = FlyteRemote(
config=Config(
platform=PlatformConfig(
endpoint="flyte-console.mycompany.domain",
insecure=True,
insecure_skip_verify=True,
auth_mode="Pkce",
)
),
default_project="flytesnacks",
default_domain="development",
data_upload_location="<s3a://flyte-storage/>"
)
# The workflow is from Flyte's tutorial
execution = remote.execute_local_workflow(training_workflow, inputs={"C": 0.1})
And I’ve faced with this error
InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "failed to connect to all addresses; last error: INTERNAL: ipv4:<some_ip_address>:443: Trying to
connect an http1.x server"
debug_error_string = "UNKNOWN:failed to connect to all addresses; last error: INTERNAL:
ipv4:<some_ip_address>:443: Trying to connect an http1.x server {created_time:"2023-05-25T05:23:30.814940018+00:00",
grpc_status:14}"
witty-planet-44210
05/25/2023, 5:27 AMcool-lifeguard-49380
05/25/2023, 11:15 AMauth:
enabled: false
Does this mean your flyte deployment is publicly in the internet without auth? That would be dangerous potentially!cool-lifeguard-49380
05/25/2023, 11:17 AMremote = FlyteRemote(
config=Config(
platform=PlatformConfig(
endpoint="flyte-console.mycompany.domain",
insecure=True,
insecure_skip_verify=True,
auth_mode="Pkce",
)
),
auth_mode="Pkce"
I think would only work in case you enabled auth in your flyte deployment. Since the jupyter hub is running in the same cluster, you might just use the flyte admin k8s service as the endpoint to make the communication purely internal to the cluster?witty-planet-44210
05/25/2023, 11:38 AMwitty-planet-44210
05/25/2023, 11:42 AMcool-lifeguard-49380
05/25/2023, 1:42 PMwitty-planet-44210
05/25/2023, 2:24 PMcool-lifeguard-49380
05/25/2023, 2:28 PMcool-lifeguard-49380
05/25/2023, 2:28 PMwitty-planet-44210
05/25/2023, 2:30 PMValueError: Empty module name
when I execute a workflow via FlyteRemote on the jupyter notebook. But I get it's something different. I'll ask proper question in the #CP2HDHKE1 channel.
Thank you very much for your help.