Repository navigation
docs: add guide for deploying to an existing cluster - #31
Open
NopeCharon wants to merge 1 commit into
Open
NopeCharon wants to merge 1 commit into
NopeCharon wants to merge 1 commit into
Conversation
The only documented deployment paths are the KIND and AKS setup scripts, which label nodes and enable CDI in containerd as a side effect. Anyone deploying deploy/manifests/device-plugin.yaml to another cluster has to reverse-engineer those steps, and docs/architecture.md made this harder by claiming the device plugin labels nodes itself. It does not: both DaemonSets select nodes with hyperlight.dev/enabled=true, so without the label nothing is scheduled. Add docs/existing-cluster.md covering: - prerequisites: amd64 nodes (the published image is linux/amd64 only), Kubernetes 1.29+ for CDI device references from device plugins, and a CDI-enabled container runtime reading /var/run/cdi - labeling nodes, including persistent labels for managed node pools - enabling CDI on containerd 1.7 (containerd 2.0 enables it by default) - rendering the manifest placeholders with envsubst and pinning a verified image digest - verifying the rollout and node allocatable, troubleshooting the common failure modes, and uninstalling Correct the Node Labels section of docs/architecture.md to say the labels must be applied by the operator, and link the new guide from the README and the architecture next steps. Signed-off-by: NopeCharon <115794254+NopeCharon@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The documentation only covers deploying through the KIND and AKS setup scripts. Those scripts also label the nodes and enable CDI in containerd, and nothing documents that. To deploy
deploy/manifests/device-plugin.yamlto any other cluster, you currently have to work out these steps from the scripts.docs/architecture.mdalso says the device plugin labels nodes automatically, which is wrong. The plugin never touches node labels, and both DaemonSets selecthyperlight.dev/enabled=true, so on an unlabeled cluster nothing is scheduled and nothing reports an error.This PR adds
docs/existing-cluster.md, which covers:amd64nodes (the published image islinux/amd64only), Kubernetes 1.29+ (DevicePluginCDIDevicesis needed for the CDI references returned fromAllocate) and a container runtime with CDI enabled that reads/var/run/cdi.deploy/local/setup.shapplies (containerd 2.0 enables it by default).envsubstthe same way thejustdeploy recipes do, pinning a verified image digest and reservinghyperlight.dev/device-access./var/run/cdinot read) and uninstalling.It also corrects the Node Labels section of
docs/architecture.mdand links the new guide from the README documentation table and the architecture "Next Steps".Validation:
deploy/manifests/device-plugin.yamlwith the documentedenvsubstcommand. All four placeholders were replaced, no$was left, and the output parses as Namespace, ServiceAccount and two DaemonSets.ghcr.io/hyperlight-dev/hyperlight-device-plugin:latest: it contains only alinux/amd64image (plus its attestation manifest).main.go, both manifests,deploy/local/setup.sh,deploy/local/kind-config.yamlanddeploy/azure/setup.sh.Not verified: I didn't run the guide end to end on a live cluster. I tried a KIND cluster, but its node could not boot on my build host because of the host's inotify limits, so the containerd 1.7 CDI steps and the troubleshooting messages come from containerd and Kubernetes behavior and the existing KIND setup script, not from a live run.