Skip to content

Scripted deploy#8

Open
mbaran5 wants to merge 13 commits into
nutanixdev:mainfrom
mbaran5:scripted-deploy
Open

Scripted deploy#8
mbaran5 wants to merge 13 commits into
nutanixdev:mainfrom
mbaran5:scripted-deploy

Conversation

@mbaran5
Copy link
Copy Markdown

@mbaran5 mbaran5 commented May 13, 2026

Added a new scripted deployment method for easy first time deployment with the following improvements

  • Automated system prerequisite validation - Checks and configures cgroup v2 delegation automatically
  • Smart NKP Bundle management - Auto-detects existing bundles, downloads if needed, extracts binaries
  • Prism Central version compatibility checks - Prevents incompatible deployments before they start
  • Comprehensive input validation - Validates IP ranges, cluster names, and subnet alignment
  • Network connectivity verification - Ensures outbound access to Nutanix portal
  • Pre-flight summary review - Shows all parameters and requires explicit confirmation

Additionally, updated cloud-init to resolve an issue with newer CIS hardened images where ssh_pwauth does not correctly set making the resultant VM inaccessible via SSH.

Updated README.md as well to reflect the addition of a new process that can be used.

After initial draft review with @vEDW have also made the following structural improvements to my script such as

  • move to v4 apis
  • provide ssh key for future troubleshooting
  • validate rocky image with cluster inventory
  • adjust default pod/service CIDR to avoid overlap with typical corporate networks
  • store all keyed variables incase script fails and needs to be re-run
  • warn user from using air-gapped bundle vs standard bundle

This has been tested in a number of partner environments and HPOCs over the course of the last ~6 weeks.

mbaran5 added 13 commits April 24, 2026 12:28
update sane values for controlplane # of nodes
replace all apis with v4
export ssh key to cluster for troubleshooting
validate rocky image against cluster inventory
set new more-sane pod/service CIDR
implement a function to export all stored variables to a json if script needs to be re-run
fix "finished deployment" logic
warn user when using air-gapped bundle vs standard bundle
fix cloud-init breaking in newer versions of rocky CIS hardened nutanix images - ssh_pwauth breaks using ssh.
fix escaping in downloader
fix perm in nkp/kubectl when already exists in image from cloud-init
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant