You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The actual centraldashboard-config ConfigMap is read every time a user interacts with the central dashboard. This puts unnecessary load on the Kubernetes API server, and increases latency for the dashboard.
Describe the solution you'd like:
I propose that the configuration is read from files mounted with the ConfigMap instead, using simple Pod volumes and volume mounts. The resulting Deployment would look something like:
Instead of calling the KubeAPI server on every GET, the dashboard would just have to parse files mounted somewhere in the container.
It would also be possible to get dynamic updates to the dashboard, since files mounted in this way are dynamically updated in the container, so we don't need to restart the deployment on config change.
/kind feature
Why you need this feature:
The actual
centraldashboard-config
ConfigMap is read every time a user interacts with the central dashboard. This puts unnecessary load on the Kubernetes API server, and increases latency for the dashboard.Describe the solution you'd like:
I propose that the configuration is read from files mounted with the ConfigMap instead, using simple Pod volumes and volume mounts. The resulting Deployment would look something like:
(adapted from https://github.com/kubeflow/kubeflow/blob/master/components/centraldashboard/manifests/base/deployment.yaml)
Instead of calling the KubeAPI server on every GET, the dashboard would just have to parse files mounted somewhere in the container.
It would also be possible to get dynamic updates to the dashboard, since files mounted in this way are dynamically updated in the container, so we don't need to restart the deployment on config change.
Related lines of code:
kubeflow/components/centraldashboard/app/api.ts
Lines 82 to 111 in bd7f250
kubeflow/components/centraldashboard-angular/backend/app/api.ts
Lines 72 to 101 in bd7f250
The text was updated successfully, but these errors were encountered: