Open rgildein opened 3 months ago
Looks like the port in the CentralDashboard is hardcoded to 8082 https://github.com/kubeflow/kubeflow/blob/v1.8.0/components/centraldashboard/app/server.ts#L28
We should remove the config option for setting the port in the first place, since there's not much usability for it
Bug Description
Changing the port config option will change k8s service, but not applied on kubeflow-dashboard container.
To Reproduce
$ tox -e integration -- --model kubeflow --keep-models $ juju switch kubeflow $ kubectl get services -n kubeflow | grep 8082 8082/TCP 37m
$ kubectl logs -n kubeflow kubeflow-dashboard-0 --container kubeflow-dashboard --tail 1000 | grep '[kubeflow-dashboard]'
2024-06-18T09:44:44.331Z [kubeflow-dashboard]
2024-06-18T09:44:44.331Z [kubeflow-dashboard] > kubeflow-centraldashboard@0.0.2 start /app
2024-06-18T09:44:44.331Z [kubeflow-dashboard] > npm run serve
2024-06-18T09:44:44.331Z [kubeflow-dashboard]
2024-06-18T09:44:44.537Z [kubeflow-dashboard]
2024-06-18T09:44:44.537Z [kubeflow-dashboard] > kubeflow-centraldashboard@0.0.2 serve /app
2024-06-18T09:44:44.537Z [kubeflow-dashboard] > node dist/server.js
2024-06-18T09:44:44.537Z [kubeflow-dashboard]
2024-06-18T09:44:45.022Z [kubeflow-dashboard] Initializing Kubernetes configuration
2024-06-18T09:44:45.053Z [kubeflow-dashboard] Unable to fetch Application information: 404 page not found
2024-06-18T09:44:45.053Z [kubeflow-dashboard]
2024-06-18T09:44:45.056Z [kubeflow-dashboard] "other" is not a supported platform for Metrics
2024-06-18T09:44:45.057Z [kubeflow-dashboard] Using Profiles service at http://kubeflow-profiles.kubeflow:8081/kfam
2024-06-18T09:44:45.060Z [kubeflow-dashboard] Server listening on port http://localhost:8082 (in production mode)
$ curl 10.152.183.57:8082Kubeflow Central Dashboard % 8090/TCP 39m
$ kubectl logs -n kubeflow kubeflow-dashboard-0 --container kubeflow-dashboard --tail 1000 | grep '[kubeflow-dashboard]' # logs did not change
$ curl 10.152.183.57:8090
curl: (7) Failed to connect to 10.152.183.57 port 8090 after 5 ms: Couldn't connect to server
kubeflow-dashboard ClusterIP 10.152.183.57
<!doctype html>
$ juju config kubeflow-dashboard port=8090 $ jhack fire kubeflow-dashboard/0 update-status Fired update-status on kubeflow-dashboard/0. $ kubectl get services -n kubeflow | grep 8090 kubeflow-dashboard ClusterIP 10.152.183.57
Environment
$ juju --version 3.4.3-genericlinux-amd64 $ juju status --model controller Model Controller Cloud/Region Version SLA Timestamp controller u1-k8s microk8s/localhost 3.4.2 unsupported 12:23:49+02:00 $ microk8s version MicroK8s v1.28.10 revision 6829
Relevant Log Output
Additional Context
No response