Steven Wilber02/19/2023, 10:17 PM
running locally in Kubernetes using K3D. Setup: • OS:
• Docker: Docker Desktop • K3D:
macOS Ventura 13.2.1
(the output from
k3d version v5.4.7, k3s version v1.25.6-k3s1 (default)
) I'll attach the config files below for: • K3D Cluster Setup • Prefect Orion Deployment and NodePort service Issue: Since K3D is running K8s inside of a docker container, I need to open a port. I can set up the cluster to have an open port (I've chosen 30001) and then I can set up a NodePort in the cluster that listens externally on 30001 and forwards to the Orion pod on 4200. If I set the startup parameters for Orion to be the following ...
... then I can connect to the Orion UI using the following URL ...
command: ["prefect", "orion", "start", "--host", "0.0.0.0", "--port", "4200", "--log-level", "DEBUG"]
... and this connects through to Orion and shows me the Flow Runs screen as the default. However, I receive the message ...
... which I guess means that the UI is using AJAX to communicate back to the server, but it can't get to it using port 4200, as it needs to be 30001. If I set the startup parameters for Orion to be the following (note the change in port) ...
Can't connect to Orion API at <http://127.0.0.1:4200/api>. Check that it's accessible from your machine.
... then when I connect to the Orion UI using the following URL ...
command: ["prefect", "orion", "start", "--host", "0.0.0.0", "--port", "30001", "--log-level", "DEBUG"]
... the page is completely black. The URL changes to be forwarded to ...
... but the page is simply black. If I try to refresh the page I receive the message
in Safari, and
the server unexpectedly dropped the connection
in Chrome. I'm sure that this is a silly config issue, but I can't work out for the life of me what it is and I've spent a silly amount of hours on this. Any help is much appreciated. Thanks. Files: •
127.0.0.1 didn't send any data. ERR_EMPTY_RESPONSE
- config to create the cluster. •
- the Kubernetes Deployment and Service config.