* 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>
4.1 KiB
deploy/launchlayer
The deploy path for an NVKE management cluster whose tenant clusters run on LaunchLayer, through CAPLL. It is deploy/nico with CAPNICo swapped for CAPLL, run by the same nvke-deploy.sh. Read deploy/README.md for the inputs and the commands; this page covers what differs.
What differs from deploy/nico
| deploy/nico | deploy/launchlayer | |
|---|---|---|
| Infrastructure provider | capnico, a manifest item |
capll, a helm item installing CAPLL's chart after spire, with the manager's flags from the stack config and the SPIFFE exec-auth plugin. nvke-base-config grants it Secret get in nvke-system, where NVKE writes the bootstrap Secrets CAPLL reads |
| Provider credentials | nico-credentials in capnico-system, from nico.* and NVKECTL_NICO_TOKEN |
launchlayer-credentials in capll-system, from launchLayer.* and NVKECTL_LAUNCHLAYER_CLIENT_SECRET |
supportedInfraProviders |
nico,infra |
launchLayer |
| Node attestation | tpm |
dsxImds |
SPIRE nvke-service identity |
nvke-controller and the CAPI namespaces |
also capll-system |
The stack config
Start from examples/stack-config-launchlayer.json. It has a launchLayer object in place of nico:
| Key | Required | Value |
|---|---|---|
launchLayer.baseURL |
yes | The address every LaunchLayer service resolves against: CAPLL's --base-url |
launchLayer.vpcURL, computeURL, sgURL |
no | Override baseURL for one service. Empty inherits it |
launchLayer.issuerURL |
yes | The OAuth2 issuer CAPLL gets its token from |
launchLayer.clientID |
yes | The OAuth2 client. Its secret comes from NVKECTL_LAUNCHLAYER_CLIENT_SECRET, not the file |
launchLayer.scopes |
no | Space-separated scopes the token must carry, as the LaunchLayer gateway requires |
NVKECTL_NICO_TOKEN is not read. The node login and database password variables are, as for deploy/nico.
Without --release, set images.profiles: the controller enables a profiles image and nothing else names it, so the render stops without it. See Images for the controller image.
What the site supplies
The path installs CAPLL and configures the controller for LaunchLayer. Two settings depend on the site's DSX identity service and are passed at install time with --values-for:
nodeAgent.dsxImds.operatorTenantfor the controller (--values-for controller=FILE). It must match DSX Identity'sglobal.operatorTenant; the chart refuses to render without it. SetnodeAgent.dsxImds.endpointtoo if the metadata service is not at the defaulthttp://169.254.169.254.- The
dsx_imdsnode attestor for the SPIRE server (--values-for spire=FILE), withjwks_url,issuerandaudiencenaming DSX Identity. The nodes' image must ship the agent plugin. See infrastructure-providers.md.
Images
This path creates no image pull secret, same as deploy/nico. Every image must already be on the node, or pullable from the node without credentials.
- NVKE controller and profiles: taken from the release, or from
images.controllerandimages.profilesin the stack config. - CAPLL: its chart runs
ghcr.io/dsx-ai-factory/cluster-api-provider-launchlayer/controller:v0.2.0. The stack config'smirrorsetting does not apply to it, and no NVKR release pins it yet.
While CAPLL's chart and image are private on GHCR, a site needs to:
- Run
helm registry login ghcr.iobefore the install, so Helm can pull the chart. - Make the image available to the node: either load it into the node's containerd, or give containerd a credential or mirror for
ghcr.io.
The overlay's default controller image is also private, so the same applies to it unless images.controller names another image.
Install
deploy/nvke-deploy.sh install --deploy-path deploy/launchlayer \
--sitespec sitespec.yaml --stack-config stack-config.json --kubeconfig site.kubeconfig \
--values-for controller=controller-site.yaml --values-for spire=spire-dsx-imds.yaml