mirror of
https://github.com/dsx-ai-factory/nvke.git
synced 2026-12-07 04:35:58 +08:00
- Example release templates (cli/examples) set ssh allow-pw to false.
- The nvke-nico-vms-24.04-{amd64,arm64}-fde ClusterRelease and NodePoolRelease
fixtures set ssh_pwauth to false, matching the nvke-* releases in
nke-site-deploy. nico-vms still enables it for its nico-diag user when
NICO_VMS_DIAG_SSH_ENABLED is on, so guest diagnostics keep working.
- The dev scripts default to nvke-260625-24.04-x86-fde instead of the
deprecated nke-260611-24.04-amd64-fde.
- The nico-sim "Create instance" button passes RELEASE, the variable
capnico-create-instance.sh reads. It passed NODEPOOL_RELEASE, so the
release typed in the button was ignored.
- capnico-create-instance.sh points at cwe-profiles/releases-nvke when the
release is not installed.
Signed-off-by: Miancheng Lin <mianchengl@nvidia.com>
72 lines
2.8 KiB
YAML
72 lines
2.8 KiB
YAML
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
# A control-plane release for `nvkectl create clusterrelease -f clusterrelease.yaml`.
|
|
#
|
|
# machineImageRef and machineInit are immutable once published. To change
|
|
# either, publish a new name. The only thing that changes in place is
|
|
# lifecycle, through `nvkectl deprecate clusterrelease <name>`.
|
|
metadata:
|
|
name: example-ubuntu-24.04-amd64
|
|
annotations:
|
|
# These two annotations state which Kubernetes version the machineInit
|
|
# userDataTemplate below supports. They describe that template only.
|
|
# "" and "true": the template takes the version from the controller, through
|
|
# {{ .KubernetesVersion }}, so it supports any version.
|
|
# "1.36.3" and "false": the template is written for that one version.
|
|
internal.nvke.nvidia.com/machine-init-kubernetes-version: "1.36.3"
|
|
internal.nvke.nvidia.com/machine-init-kubernetes-version-injected: "false"
|
|
spec:
|
|
machineImageRef:
|
|
name: example-ubuntu-24.04-amd64
|
|
machineInit:
|
|
# A Go template rendered per machine. It must begin with a cloud-init
|
|
# header.
|
|
userDataTemplate: |
|
|
#cloud-config
|
|
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
autoinstall:
|
|
version: 1
|
|
identity:
|
|
hostname: {{ .Hostname }}
|
|
username: {{ .Username }}
|
|
password: "{{ .HashedPassword }}"
|
|
keyboard:
|
|
layout: us
|
|
locale: en_US.UTF-8
|
|
ssh:
|
|
allow-pw: false
|
|
install-server: true
|
|
storage:
|
|
layout:
|
|
name: lvm
|
|
user-data:
|
|
package_update: true
|
|
{{ if .Files }}
|
|
write_files:
|
|
{{ range .Files }}
|
|
- path: {{ quote .Path }}
|
|
owner: {{ quote .Owner }}
|
|
permissions: {{ quote .Permissions }}
|
|
{{- if .Encoding }}
|
|
encoding: {{ quote .Encoding }}
|
|
{{- end }}
|
|
content: {{ quote .Content }}
|
|
{{ end }}
|
|
{{ else }}
|
|
write_files: []
|
|
{{ end }}
|
|
runcmd:
|
|
- |
|
|
set -eu
|
|
echo "deb [trusted=yes] https://apt.example.com/nvke stable main" > /etc/apt/sources.list.d/nke.list
|
|
apt-get update
|
|
install -d -m 0755 /etc/default
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y nvke-agent nvke-kubeadm-distro-1.36.3 {{ .CNIImagePackage }} {{ .CNIChartsPackage }}
|
|
systemctl enable nvke-agent
|
|
systemctl restart nvke-agent
|
|
install -d -m 0755 /run/cluster-api
|
|
touch /run/cluster-api/bootstrap-success.complete
|