mirror of
https://github.com/dsx-ai-factory/nvke.git
synced 2026-12-07 04:35:58 +08:00
* 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>
59 lines
2.5 KiB
YAML
59 lines
2.5 KiB
YAML
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Read back from a live management cluster's release, which is the
|
|
# configuration that provisioned a real tenant.
|
|
#
|
|
# No password here: the render names the nvke-database Secret in
|
|
# auth.existingSecret, and both of Temporal's datastores read the same one.
|
|
# A hand install sets the SAME value on all three, or the Temporal schema
|
|
# job crash-loops with "password authentication failed".
|
|
auth:
|
|
username: postgres
|
|
database: postgres
|
|
|
|
primary:
|
|
# primary.persistence, NOT a top-level persistence: the Bitnami chart nests
|
|
# it here, and helm does not reject unknown values, so a top-level
|
|
# persistence.enabled=true is accepted and silently ignored. That is how the
|
|
# that run ended up running Postgres on an emptyDir.
|
|
persistence:
|
|
enabled: true
|
|
size: 40Gi
|
|
# A live site binds this to local-path. Left empty here so it takes whatever the
|
|
# site made default -- which provisioner is right is a property of the
|
|
# hardware, and there must BE a default or the PVC sits Pending forever.
|
|
storageClass: ""
|
|
resources:
|
|
limits:
|
|
memory: 512Mi
|
|
requests:
|
|
memory: 256Mi
|
|
# The databases the controller and Temporal expect to exist. Nothing else creates them.
|
|
initdb:
|
|
scripts:
|
|
init-cwe.sql: |
|
|
CREATE DATABASE "nvke-controller";
|
|
init-temporal.sql: |
|
|
CREATE DATABASE temporal;
|
|
CREATE DATABASE temporal_visibility;
|
|
|
|
# PINNED BY DIGEST -- the one image on this path that the chart does not pin
|
|
# for us.
|
|
#
|
|
# Bitnami's chart defaults every image to `tag: latest`, and bitnami/postgresql
|
|
# on Docker Hub no longer publishes version tags at all: the only human-readable
|
|
# tags are `latest` and `latest-metadata`, the versioned images having moved to
|
|
# bitnamilegacy/postgresql. So there is no version to pin to -- a digest is the
|
|
# only durable reference.
|
|
#
|
|
# Without this the SBOM cannot say which database it installs. Two installs a
|
|
# week apart get different binaries with nothing in the tree to show it, which
|
|
# for the component holding all controller state is the worst place for it.
|
|
#
|
|
# This digest is what `latest` resolved to on a live management cluster, read
|
|
# back from the running pod's imageID. The chart's own appVersion claims 18.3.0;
|
|
# that is chart metadata and not what was pulled.
|
|
image:
|
|
digest: "sha256:b74b23f091dcc87041bcae557d840c36458af46b955279cb13aedec4c32d7f71"
|