Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dashboard #68

Open
wants to merge 24 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
2036378
dashboard v0
ryanhayame Aug 5, 2024
ffceab0
Merge branch 'main' of https://github.com/Trainy-ai/konduktor into da…
ryanhayame Aug 5, 2024
86054b1
websocket logs
ryanhayame Aug 8, 2024
00aeb1e
Merge branch 'main' of https://github.com/Trainy-ai/konduktor into da…
ryanhayame Aug 8, 2024
2a8b53e
logging
ryanhayame Sep 12, 2024
a50e1cb
Merge branch 'main' of https://github.com/Trainy-ai/konduktor into da…
ryanhayame Sep 12, 2024
de3a64c
update
ryanhayame Sep 12, 2024
c9f85a2
Merge branch 'main' of https://github.com/Trainy-ai/konduktor into da…
ryanhayame Sep 24, 2024
d0f58c3
dockerfiles + docker-compose
ryanhayame Sep 24, 2024
29b71ad
backend.default.svc.cluster.local:5001 (broken APIs)
ryanhayame Oct 3, 2024
337815b
Merge branch 'main' of https://github.com/Trainy-ai/konduktor into da…
ryanhayame Oct 3, 2024
828932c
Merge branch 'main' of https://github.com/Trainy-ai/konduktor into da…
ryanhayame Oct 11, 2024
77bc13f
v0.5 dashboard
ryanhayame Oct 11, 2024
da543a5
dashboard 0.7
ryanhayame Oct 17, 2024
a283ecc
Merge branch 'main' of https://github.com/Trainy-ai/konduktor into da…
ryanhayame Oct 17, 2024
14cc432
Merge branch 'main' of https://github.com/Trainy-ai/konduktor into da…
ryanhayame Oct 20, 2024
ba86274
dashboard v0.9
ryanhayame Oct 20, 2024
ff36f53
DASHBOARD V1.0
ryanhayame Oct 22, 2024
bb9aae0
dashboard 1.01
ryanhayame Oct 23, 2024
9142b26
fixes v1
ryanhayame Oct 29, 2024
5dd4c2d
fixes
ryanhayame Oct 29, 2024
ee17803
Merge branch 'main' of https://github.com/Trainy-ai/konduktor into da…
ryanhayame Nov 5, 2024
a178990
dashboard fixes minus socketio
ryanhayame Nov 5, 2024
b30df1b
DASHBOARD V2
ryanhayame Nov 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions format.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env bash
set -eo pipefail

RUFF_VERSION=$(ruff --version | head -n 1 | awk '{print $2}')
MYPY_VERSION=$(mypy --version | awk '{print $2}')
RUFF_VERSION=$(poetry run ruff --version | head -n 1 | awk '{print $2}')
MYPY_VERSION=$(poetry run mypy --version | awk '{print $2}')

echo "ruff ver $RUFF_VERSION"
echo "mypy ver $MYPY_VERSION"
Expand Down
21 changes: 21 additions & 0 deletions konduktor/dashboard/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
### Prereqs: kubectl is configured with remote machine/cluster

## 1. Apply kubernetes manifest
Inside manifests directory (one with dashboard_deployment.yaml):
```
kubectl apply -f dashboard_deployment.yaml
```
Then, wait a minute or two for the pods to finish setup

## 2. Port forward frontend in a terminal
```
kubectl port-forward svc/frontend 5173:5173 -n konduktor-dashboard
```

## 3. Port forward grafana in a terminal
```
kubectl port-forward svc/kube-prometheus-stack-grafana 3000:80 -n prometheus
```

## 4. Open dashboard at http://localhost:5173/

27 changes: 27 additions & 0 deletions konduktor/dashboard/backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Dockerfile for the Backend
ryanhayame marked this conversation as resolved.
Show resolved Hide resolved
FROM python:3.11-slim

# Set the working directory
WORKDIR /app

# Install dependencies
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt

# Install kubectl
RUN apt-get update && apt-get install -y curl && \
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \
chmod +x kubectl && mv kubectl /usr/local/bin/

# Copy the rest of the application code
COPY . .

# Copy the startup script
COPY startup.sh /app/startup.sh
RUN chmod +x /app/startup.sh

# Expose the port the app runs on
EXPOSE 5001

# Start the application via the startup script
CMD ["/app/startup.sh"]
5 changes: 5 additions & 0 deletions konduktor/dashboard/backend/config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from flask import Flask
from flask_cors import CORS

app = Flask(__name__)
CORS(app)
Loading