<@U06TM7M40RK> I have DataHub running in a local K8s cluster. In the same cluster I have Python webapp running listening on port 8000 within the namespace. In DataHub settings, I added a Home Page Post link to http://localhost:8000 and it does not display. What URL should I use within my local K8s cluster to allow DataHub Home Page Post link open the Python webapp listening on port 8000???
It could be possible that the issue you’re facing is related to the way URLs are resolved within a Kubernetes cluster. When you are running services within a Kubernetes cluster, using localhost
in URLs might not work as expected because localhost
refers to the local loopback interface of the container or pod, not the entire cluster.
To resolve this, you might need to use the service name and namespace to access your Python webapp from DataHub. Kubernetes provides a DNS service that allows you to access services using their service name and namespace. The format is typically <service-name>.<namespace>.svc.cluster.local
.
Here are some steps you might consider:
-
Check the Service Name: Ensure that your Python webapp is exposed as a service within the Kubernetes cluster. You can check this by running:
kubectl get services -n <your-namespace>
Replace
<your-namespace>
with the actual namespace where your Python webapp is running. -
Use the Service URL: Use the service name and namespace to construct the URL. For example, if your service is named
python-webapp
and it’s in thedefault
namespace, the URL would be:http://python-webapp.default.svc.cluster.local:8000
-
Update DataHub Post: Update the Home Page Post link in DataHub settings to use the service URL instead of
localhost
.
If you need more detailed instructions or run into specific issues, please let me know!
Sources:
- https://datahubproject.io/docs/0.13.1/deploy/kubernetes#quickstart|https://datahubproject.io/docs/0.13.1/deploy/kubernetes#quickstart
- https://datahubproject.io/docs/0.14.0/deploy/kubernetes#quickstart|https://datahubproject.io/docs/0.14.0/deploy/kubernetes#quickstart
Note: I wasn’t able to find highly relevant data sources, but above are a few potentially relevant links.0 button
0 button
Hint: Mention @runllm in the thread for followups.
Hi <@U06UR6TP4N6>, how did my answer work out for you? Need any more assistance? You can also tag <@U07FV3UHE4D> to let your fellow community members know you’re still looking for guidance.