How iiyyll01lin/aup-learning-cloud works
AUP Learning Cloud combines a JupyterHub learning environment with an installer that detects AMD hardware and deploys the runtime. The user workflow runs from choosing a learning environment in the spawn interface to using a notebook, while administrators manage users, groups, quotas, and usage. The installer has a separate deployment workflow for preparing GPU configuration and installing the cluster and Hub. README capabilities include GitHub and native authentication, persistent storage, and CPU/GPU/NPU acceleration; several of those implementation details are not shown in the sampled source.
Main entry points: cli.py Installer CLI · handlers.py Hub API handlers · notebook Notebook environment · client.ts Shared API client
Components 25
Installation
- Installer CLI
auplc_installer/cli.py - GPU detection
auplc_installer/gpu.py - Course catalog
auplc_installer/catalog.py - Image preparation
auplc_installer/images.py - Values overlay
auplc_installer/overlay.py - K3s cluster
auplc_installer/k3s.py - Helm deployment
auplc_installer/helm.py
Hub services
- Hub API handlers
runtime/hub/core/handlers.py - Authentication
runtime/hub/core/authenticators - Group management
runtime/hub/core/groups.py - Quota management
runtime/hub/core/quota/manager.py - Usage statistics
runtime/hub/core/stats_handlers.py - Hub database
runtime/hub/core/database.py
User interfaces
- Environment selection
runtime/hub/frontend/apps/spawn/src/App.tsx - Learner home
runtime/hub/frontend/apps/home/src/App.tsx - Admin console
runtime/hub/frontend/apps/admin/src/App.tsx - Shared API client
runtime/hub/frontend/packages/shared/src/api/client.ts
Notebook runtime
- Kubernetes spawner
runtime/hub/core/spawner/kubernetes.py - Notebook environment
runtime/notebook - Persistent user storage
- AMD acceleration
- Learning toolkits
projects/ZKP/labkit.py
Other components
- Operator
- Learner
- Administrator
Connections 26
- Operator → Installer CLI: runs
- Installer CLI → GPU detection: detects hardware
auplc_installer/cli.py - Installer CLI → Image preparation: prepares images
auplc_installer/cli.py - Image preparation → Course catalog: uses course data
auplc_installer/images.py - Installer CLI → Values overlay: generates configuration
auplc_installer/cli.py - Installer CLI → K3s cluster: installs K3s
auplc_installer/cli.py - Installer CLI → Helm deployment: deploys runtime
auplc_installer/cli.py - Installer CLI → AMD acceleration: deploys GPU plugin
auplc_installer/cli.py - Learner → Environment selection: selects environment
- Learner → Learner home: uses Hub
- Administrator → Admin console: manages Hub
runtime/hub/frontend/apps/admin/src/App.tsx - Environment selection → Shared API client: requests resources
runtime/hub/frontend/apps/spawn/src/App.tsx - Learner home → Shared API client: requests usage
runtime/hub/frontend/apps/home/src/App.tsx - Admin console → Hub API handlers: manages users
- Shared API client → Hub API handlers: calls Hub APIs
- Hub API handlers → Authentication: uses authenticators
runtime/hub/core/handlers.py - Hub API handlers → Group management: handles group operations
runtime/hub/core/handlers.py - Hub API handlers → Quota management: handles quota operations
runtime/hub/core/handlers.py - Hub API handlers → Usage statistics: routes statistics
runtime/hub/core/handlers.py - Quota management → Hub database: persists quota data
runtime/hub/core/quota/manager.py - Usage statistics → Hub database: queries usage
runtime/hub/core/stats_handlers.py - Hub API handlers → Kubernetes spawner: starts user servers
- Kubernetes spawner → Notebook environment: launches
- Notebook environment → Persistent user storage: uses persistent storage
- Notebook environment → AMD acceleration: uses hardware acceleration
- Notebook environment → Learning toolkits: runs learning labs