/auplc:deploy-aup-learning-cloudfrom auplc
Plans and deploys the multi-node AUP Learning Cloud, a JupyterHub-on-k3s platform on physical hardware, using PXE diskless netboot or SSH-preinstalled nodes. Guides through interview, generator, and Ansible-based provisioning.
Ships in auplc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Stand up a multi-node AUP Learning Cloud cluster with Ansible, AMD GPU access, shared storage, and the JupyterHub Helm chart.
Use the skill scripts guide as the source of truth for the complete generator-first command sequences and generated files. Use deploy/README.md for the human direct-edit workflow, operational background, and troubleshooting. This skill defines the interview and safety gates around the generated procedure.
aup-learning-cloud on the operator machine.Site values and secrets don't ship in the repository. Generate them locally and never put tokens, private keys, or credentials in tracked files.
Ask for an explicit topology choice before collecting other details or touching machines. Never infer the choice from the hardware.
| Choice | Use when |
|---|---|
PXE Diskless Netboot (pxe-diskless) | A controller netboots diskless agents. |
Multi Node SSH Installation (ssh-preinstalled) | Every node already runs Ubuntu and accepts root SSH. |
Then collect and confirm:
Confirm detected GPU product labels before mapping them to accelerator keys in the runtime values.
Create a fresh schema and fill only its current fields. Run the generator rather than writing inventory or GPU policy by hand.
The schema temporarily accepts auth_mode as a one-release generator
compatibility input. It isn't Helm configuration. The generator always writes
the selected providers as canonical custom.auth flags; see the migration
table in reference.md.
For SSH, generation performs read-only discovery on every managed host and publishes canonical artifacts after GPU evidence is consistent.
For PXE, generation writes the canonical inventory, PXE vars, runtime overlay, and GPU resolution report directly as desired deployment inputs. Their existence does not prove rootfs provisioning succeeded. Review, install, and validate those files, then run the controller playbook with the canonical inventory and PXE vars; the playbook must complete successfully before proceeding.
The generated runtime overlay includes canonical custom.auth,
custom.runtimeLimitEnabled: true, and custom.quota.enabled: true. It also
maps detected GPU labels to accelerator selectors, defines notebook images and
shared storage, and keeps resource visibility tied to custom.teams.mapping
and its fallback groups regardless of the selected authentication providers.
Follow the complete topology command sequence in the
skill scripts guide. Don't substitute the human direct-edit
SSH workflow from deploy/README.md; the skill's SSH path remains
generator-first and discovers GPU policy from managed-host evidence.
Install the canonical generated inventory and runtime overlay into the checkout, then run the topology's exact validator command from the skill scripts guide. The validator inputs are:
--repo--topology--inventory to validate generated host booleans--gpu-resolution with --inventory for generated-artifact consistency--values files--pxe-vars for PXE onlyA human direct inventory can be validated by itself with unquoted auto,
true, or false. A resolution report requires an inventory, and that pairing
accepts only generated boolean values. Supply both in this generator-first
workflow so the validator checks their consistency. The skill resolves every
host to true or false and never generates auto.
Stop on validation failure. After a clean result, continue with the topology's Ansible, device plugin, and Helm commands in the skill scripts guide. Treat the AMD device plugin and ROCm node labeller as infrastructure prerequisites owned outside AUPLC. Verify both existing DaemonSets and advertised GPU capacity before Helm; do not install these privileged components as part of the AUPLC procedure.
Keep the GPU contract distinct from storage configuration. The installer,
Ansible role, and PXE controller install AMD's
amdgpu-insecure-instinct-udev-rules package at the pinned version
30.30.4.0-2341068.24.04. Its rule sets mode 0666 only on /dev/kfd and DRM
renderD* nodes. It does not change card*, which retains normal system policy,
observed as root:video 0660.
Device-plugin allocation is a separate visibility layer. Only amd.com/gpu
requests receive allocated GPU devices, and the plugin does not change Unix
inode permissions. AUPLC Hub adds no GPU supplemental group; none is required
for the tested ROCm compute path. singleuser.fsGid: 100 is for shared storage
only.
Check that all expected nodes are Ready, the GPU labels and allocatable resources match the generated policy, the storage class is available, and JupyterHub pods are healthy. Open the Hub, start a CPU notebook, verify persistence, then start a GPU notebook and confirm it schedules on a GPU node.
Pause for explicit user confirmation before rebuilding a PXE rootfs, changing NFS exports, changing firmware boot settings, resetting a cluster, deleting a node, or uninstalling a Helm release.
Never commit or push deployment secrets. Preserve the four AUP Learning Cloud
attribution layers described in the project AGENTS.md if Hub or chart sources
are changed.
reference.md (opens in a new tab)scripts/README.md (opens in a new tab)scripts/artifact_store.py (opens in a new tab)scripts/config_common.py (opens in a new tab)scripts/config_generation.py (opens in a new tab)scripts/config_rendering.py (opens in a new tab)scripts/detect_cluster.sh (opens in a new tab)scripts/detect_hardware.sh (opens in a new tab)scripts/gen_configs.py (opens in a new tab)scripts/gpu_access_resolution.py (opens in a new tab)scripts/gpu_artifact_generation.py (opens in a new tab)scripts/gpu_resolution_manifest.py (opens in a new tab)scripts/gpu_resolution_parsing.py (opens in a new tab)scripts/gpu_resolution_validation.py (opens in a new tab)scripts/helm_validation.py (opens in a new tab)scripts/validate.py (opens in a new tab)scripts/values_resolution_parsing.py (opens in a new tab)skill-card.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub amdresearch/aup-learning-cloud --plugin auplc13 skills in this plugin
/build-aup-learning-cloud-imagesGroup: Plan & deploy AUP Learning Cloud. Builds and publishes the AUP Learning Cloud Docker images — the Hub image and the CPU/GPU notebook and course images — with ./auplc-installer img build. Use when the user wants to build, rebuild, tag, or push AUPLC images, mentions img build / img pull, the dockerfiles/ directory, auplc-hub / auplc-base / auplc-default / auplc-cv / auplc-dl / auplc-llm / auplc-physim / code-cpu / code-gpu, a gfx-specific image tag, the GHCR registry, code-server VS Code extensions, or preparing images for an offline/registry deployment. Covers GPU-target tagging and pushing to a registry. Do not use to install or deploy a cluster (install-/deploy-aup-learning-cloud) or to edit the course catalog in values.yaml (configure-aup-learning-cloud-courses)./configure-aup-learning-cloud-authGroup: Maintain AUP Learning Cloud. Configures authentication for AUP Learning Cloud with custom.auth provider flags for auto-login, dummy, native, GitHub, or native plus GitHub. Covers GitHub App OAuth and team sync, native accounts, password policy, forced first-login change, and custom.adminUser bootstrap. Use for custom.auth, GitHubOAuthenticator, custom.githubOrgName, oauth_callback_url, allowed_organizations, jupyterhub-admin-credentials, login 404s, OAuth callback errors, or "Resource not accessible by integration". Do not use for resource-to-group mapping (configure-aup-learning-cloud-courses), bulk users (manage-aup-learning-cloud-users), or private-repo cloning (configure-aup-learning-cloud-repos)./configure-aup-learning-cloud-coursesGroup: Course & other editor. Edits the AUP Learning Cloud course catalog and access control in the JupyterHub values.yaml: course images, resource requirements, spawn-UI metadata, group ordering, GPU accelerator selectors, team-to-course mappings, and the quota knobs. Use when the user wants to add/remove a course or notebook environment, show/hide an option in the spawn picker, map a GitHub team or group to courses, set per-course CPU/memory/amd.com/gpu requirements, add or retune an accelerator (custom.accelerators), or configure quota (cpuRate, quotaRate, minimumToStart, refresh rules). Triggers include values.yaml, custom.resources.images, custom.teams.mapping, custom.accelerators, custom.quota, acceleratorKeys, launchMode. Do not use to build the images themselves (build-aup-learning-cloud-images) or to install a cluster (install-/deploy-aup-learning-cloud)./configure-aup-learning-cloud-reposGroup: Course & other editor. Configures per-user Git repository cloning: the custom.gitClone block (githubAppName repo picker, defaultAccessToken for private repos, allowedProviders, maxCloneTimeout, defaultPersistence, allowPersistenceChoice) and the per-resource metadata.allowGitClone gate that clones a repo into a user's workspace at spawn time. Use when the user wants to let learners clone a Git repo on startup, enable the spawn-form repo URL/branch field or GitHub repo picker, give access to a private repo (bot PAT or GitHub App token), choose whether cloned repos persist, allow GitLab/Bitbucket, or debug "Repository URL ignored" or a failed clone init container. Triggers include custom.gitClone, allowGitClone, githubAppName, defaultAccessToken, allowedProviders, init-clone-repo. Do not use to set up GitHub login itself (configure-aup-learning-cloud-auth), to publish a course to the catalog (configure-/develop-aup-learning-cloud-courses), or to build images (build-aup-learning-cloud-images)./develop-aup-learning-cloud-coursesGroup: Course & other editor. Authors a new learning toolkit for AUP Learning Cloud end to end: write the course notebooks under projects/<NAME>/, package them into a course Docker image (dockerfiles/Courses/<NAME>/ + a Makefile target on the ROCm GPU base), register the course in auplc_installer/catalog.py (COURSE_CATALOG + team mapping), then hand off to build + values wiring. Use when an educator wants to add a new course or lab set, create a toolkit like CV/DL/LLM/PhySim, turn a notebook folder into a spawnable course, add a Dockerfile/build.sh for a course, or add a course key to the catalog. Triggers include projects/CV, projects/DL, projects/LLM, projects/PhySim, dockerfiles/Courses, COURSE_CATALOG, "add a course", "new toolkit". Do not use to only build an existing image (build-aup-learning-cloud-images), to only edit the values catalog for an existing image (configure-aup-learning-cloud-courses), or to clone a user's repo at runtime (configure-aup-learning-cloud-repos)./expose-aup-learning-cloudGroup: Maintain AUP Learning Cloud. Configures how AUP Learning Cloud is exposed and stored for a real deployment: the proxy service type (NodePort vs LoadBalancer/ingress), ingress hostname and TLS, external-TLS handling (custom.security.publicScheme), CORS origins (custom.hub/notebook.allowedOrigins), and the shared NFS storage class for the Hub DB and user PVCs. Use when the user wants to put the Hub behind a domain, enable HTTPS/TLS/certificates, set up ingress, change the NodePort, move storage from local-path to NFS (nfs-client / nfs-subdir-external-provisioner), fix mixed-content / _xsrf cookie issues behind a reverse proxy, or allow embedding/CORS. Triggers include ingress.enabled, proxy.service.type, nodePorts.http, publicScheme, allowedOrigins, storageClassName, nfs-client, TLS, cert-manager. Do not use for the first cluster build (deploy-/install-aup-learning-cloud), the GitHub OAuth callback URL (configure-aup-learning-cloud-auth), or course/quota config (configure-aup-learning-cloud-courses).Other plugins' skills for the same job