mirror of
https://github.com/dsx-ai-factory/nvke.git
synced 2026-12-07 04:35:58 +08:00
pull-request/2414
2
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
ef31c6efe7 |
feat(deploy): add a LaunchLayer deploy path that installs CAPLL (#2113)
* feat(deploy): add a LaunchLayer deploy path that installs CAPLL deploy/nico installs NVKE with CAPNICo. deploy/launchlayer is the same path with CAPNICo swapped for CAPLL, so a site built with NVKE's own tooling can run its tenant clusters on LaunchLayer: - capll: a template item from CAPLL v0.1.0-rc.15's release asset, whose manager flags (base URL, per-service overrides, identity Secret) are rendered from the stack config, plus a Secret get grant in nvke-system, where NVKE writes the bootstrap Secrets CAPLL reads. - nvke-base-config renders launchlayer-credentials in capll-system in place of nico-credentials. - The controller accepts launchLayer, turns the NICo grant and controllers off, and attests nodes with dsxImds. - The items the two paths share are copies of deploy/nico, held to it by a test: a file both hold must be identical unless it is one of the four LaunchLayer changes, so a pin bump in deploy/nico that misses deploy/launchlayer fails. The stack config gains an optional launchLayer object, with the client secret from NVKECTL_LAUNCHLAYER_CLIENT_SECRET. Each provider's values are required by the path that installs it, so deploy/nico and every existing stack config are checked and rendered exactly as before. Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * refactor(deploy): install CAPLL from its chart on the LaunchLayer path The capll item becomes a helm item installing CAPLL's published chart, after spire, in place of a copy of its release YAML. The manager's flags reach the chart as site values, and its values add the SPIFFE exec-auth plugin and workload API socket the CAPI controllers get, which CAPLL needs to read a tenant kubeconfig once nvkeOIDCAuth is on. capll-system joins the nvke-service SPIFFE identity, and the Secret get grant in nvke-system moves to nvke-base-config, bound to the chart's ServiceAccount. Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * chore(deploy): pin CAPLL's chart to 0.2.0 on the LaunchLayer path 0.2.0 labels the manager app.kubernetes.io/name=cluster-api-provider-launchlayer, as CAPLL's release YAML does, so nvkectl get providers finds a chart install. Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * chore(deploy): install NKTP from NGC on the LaunchLayer path Copies deploy/nico's nktp item, which #2237 moved to NGC's public chart. Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * docs(deploy): make the LaunchLayer path's image requirements readable Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * docs(deploy): trim comments on the LaunchLayer path Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * docs(deploy): keep only the LaunchLayer-specific comments in its controller overlay The rest repeated deploy/nico's overlay, which the header now points to. Values are unchanged; the rendered chart is byte-identical. Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> --------- Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> |
||
|
|
8bcb48d4f9 |
feat(cli): the stack install reads a stack config file (#1682)
* feat(cli): the stack install reads a stack config file The controller stack install takes its site-specific input from a JSON file of its own, the stack config, loaded by the new cli/internal/deploypath/stackconfig package: the NICo API and the optional image overrides and mirror. The file is decoded strictly through sigs.k8s.io/json, so an unknown, duplicate or differently cased key is refused, as are a REPLACE_* placeholder, an empty required value, a null object, an endpoint without a scheme or with a user and password, and a mirror with a scheme. Every problem is reported at once as "<json path>: <problem>", a stray key beside the value problems. The credentials stay in the environment and move to the same package: NVKECTL_NICO_TOKEN, NVKECTL_NODE_USER, NVKECTL_NODE_PASSWORD and NVKECTL_DATABASE_PASSWORD are the stack install's input, not the site spec's. The site spec carries the bootstrap's fields only: the site name, the control-plane VIP, the SPIRE trust domain and CA. The render reads both files, --sitespec with --stack-config and neither without the other, and takes the nodes' architecture from --arch, validated, for both the release artifacts and the SPIRE TPM attestor checksum; without the flag the host's architecture is used with a warning. nvkectl inspect stack-config, a hidden reader like inspect sitespec, validates the file and the credentials and prints STACK_CONFIG, STACK_NICO_ENDPOINT and STACK_NICO_ORG_ID for the install scripts. validate sitespec checks the site spec and prints "valid"; inspect sitespec prints the three site facts. deploy/examples/stack-config.json is the operator's starting point. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * feat(deploy): the scripts take --stack-config and read the node architecture check-site.sh and nvke-deploy.sh take the stack config beside the site spec and refuse one without the other. Both start with an inputs line that names the two files, the site and the NICo endpoint. The check validates the stack config and the NVKECTL_* credentials through nvkectl inspect stack-config and fails on nodes that report two architectures or none. The executor reads the architecture from the cluster and passes it to the render as --arch; --arch on the executor stands in for the read, and a dry run with an unreachable API renders for the host. The kind lane fills a stack config template next to the site spec template. The deploy READMEs and the cli docs describe the file. Co-developed-by: Claude <noreply@anthropic.com> Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs(operate): the install reads a stack config file The install page gets a "Write the stack config" section with the credentials step, the example file and every key. The inputs table, the artifact-source table, the check and install commands, the troubleshooting entries and the pages that link to the section follow. The node architecture is read from the cluster, so no page asks for it. Co-developed-by: Claude <noreply@anthropic.com> Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> --------- Signed-off-by: Lia Campbell <liac@nvidia.com> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> |