# nutanixdev/nkp-quickstart architecture

> Architecture diagram of the GitHub repository nutanixdev/nkp-quickstart, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nutanixdev/nkp-quickstart
- Repository: https://github.com/nutanixdev/nkp-quickstart

## Overview

This repository is a Nutanix Kubernetes Platform quickstart toolkit for preparing a jump host and creating and managing NKP clusters. Its documented guided workflow goes from jump-host setup and CLI installation through preflight, Prism Central discovery, configuration and compatibility review, then cluster deployment. The tree also identifies workload-cluster, troubleshooting, and CLI-helper capabilities, but the available README excerpt does not describe their runtime relationships; those components are shown without inferred connections.

Main entry points: [`nkpDeploy.sh`](https://github.com/nutanixdev/nkp-quickstart/blob/main/nkpDeploy.sh) (PC Discovery), [`nkp_compatibility.json`](https://github.com/nutanixdev/nkp-quickstart/blob/main/nkp_compatibility.json) (Compatibility Rules), [`cloud-init`](https://github.com/nutanixdev/nkp-quickstart/blob/main/cloud-init) (Host Provisioning), [`get-nkp-cli`](https://github.com/nutanixdev/nkp-quickstart/blob/main/get-nkp-cli) (NKP CLI Installer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_setup["Jump Host Setup"]
  node_cloudinit["Host Provisioning"]
  node_cliinstall["NKP CLI Installer"]
end

subgraph group_deploy["Cluster Deployment"]
  node_preflight["Preflight Checks<br/>[nkpDeploy.sh]"]
  node_discovery["PC Discovery<br/>[nkpDeploy.sh]"]
  node_configuration["Cluster Configuration<br/>[nkpDeploy.sh]"]
  node_compatibility["Compatibility Rules"]
  node_review["Review and Confirm<br/>[nkpDeploy.sh]"]
end

subgraph group_workloads["Workload Clusters"]
  node_workloadcreate["Workload Cluster Creation"]
  node_nodepool["Node Pool Creation"]
  node_clusterlist["Cluster Listing<br/>[cluster-list.sh]"]
  node_kubeconfig["Kubeconfig Management"]
  node_mergeconfig["Kubeconfig Merge"]
  node_serviceaccount["Admin Service Account"]
end

subgraph group_support["Operations"]
  node_supportbundle["Support Bundles"]
  node_workloadbundle["Workload Support Bundle"]
  node_toolhelpers["CLI Helpers"]
end

node_operator(("Operator"))
node_nkpcli["NKP CLI"]
node_prism["Prism Central"]
node_cluster["NKP Cluster"]

node_operator -->|"configures host"| node_cloudinit
node_operator -->|"runs installer"| node_cliinstall
node_operator -->|"starts deployment"| node_preflight
node_preflight -->|"passes checks"| node_discovery
node_discovery -->|"queries v4 APIs"| node_prism
node_discovery -->|"provides selections"| node_configuration
node_configuration -->|"validates settings"| node_review
node_compatibility -->|"supplies rules"| node_review
node_review -->|"runs create command"| node_nkpcli
node_nkpcli -->|"creates cluster"| node_cluster

click node_cloudinit "https://github.com/nutanixdev/nkp-quickstart/blob/main/cloud-init"
click node_cliinstall "https://github.com/nutanixdev/nkp-quickstart/blob/main/get-nkp-cli"
click node_preflight "https://github.com/nutanixdev/nkp-quickstart/blob/main/nkpDeploy.sh"
click node_discovery "https://github.com/nutanixdev/nkp-quickstart/blob/main/nkpDeploy.sh"
click node_configuration "https://github.com/nutanixdev/nkp-quickstart/blob/main/nkpDeploy.sh"
click node_compatibility "https://github.com/nutanixdev/nkp-quickstart/blob/main/nkp_compatibility.json"
click node_review "https://github.com/nutanixdev/nkp-quickstart/blob/main/nkpDeploy.sh"
click node_workloadcreate "https://github.com/nutanixdev/nkp-quickstart/blob/main/workload-clusters/nkp-create-workload-cluster.sh"
click node_nodepool "https://github.com/nutanixdev/nkp-quickstart/blob/main/workload-clusters/nkp-create-nodepool.sh"
click node_clusterlist "https://github.com/nutanixdev/nkp-quickstart/blob/main/workload-clusters/cluster-list.sh"
click node_kubeconfig "https://github.com/nutanixdev/nkp-quickstart/blob/main/workload-clusters/get-and-merge-kubeconfig.sh"
click node_mergeconfig "https://github.com/nutanixdev/nkp-quickstart/blob/main/workload-clusters/merge-to-kubeconfig.sh"
click node_serviceaccount "https://github.com/nutanixdev/nkp-quickstart/blob/main/workload-clusters/create-admin-service-account.sh"
click node_supportbundle "https://github.com/nutanixdev/nkp-quickstart/blob/main/troubleshoot/get-support-bundle.sh"
click node_workloadbundle "https://github.com/nutanixdev/nkp-quickstart/blob/main/troubleshoot/get-support-bundle-workload-cluster.sh"
click node_toolhelpers "https://github.com/nutanixdev/nkp-quickstart/tree/main/tools"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cloudinit,node_cliinstall toneBlue
class node_preflight,node_discovery,node_configuration,node_compatibility,node_review toneAmber
class node_workloadcreate,node_nodepool,node_clusterlist,node_kubeconfig,node_mergeconfig,node_serviceaccount toneMint
class node_supportbundle,node_workloadbundle,node_toolhelpers toneRose
class node_operator,node_nkpcli,node_prism,node_cluster toneIndigo
```

## Components

### Jump Host Setup

- [Host Provisioning](https://github.com/nutanixdev/nkp-quickstart/blob/main/cloud-init): `cloud-init`
- [NKP CLI Installer](https://github.com/nutanixdev/nkp-quickstart/blob/main/get-nkp-cli): `get-nkp-cli`

### Cluster Deployment

- [Preflight Checks](https://github.com/nutanixdev/nkp-quickstart/blob/main/nkpDeploy.sh): `nkpDeploy.sh`
- [PC Discovery](https://github.com/nutanixdev/nkp-quickstart/blob/main/nkpDeploy.sh): `nkpDeploy.sh`
- [Cluster Configuration](https://github.com/nutanixdev/nkp-quickstart/blob/main/nkpDeploy.sh): `nkpDeploy.sh`
- [Compatibility Rules](https://github.com/nutanixdev/nkp-quickstart/blob/main/nkp_compatibility.json): `nkp_compatibility.json`
- [Review and Confirm](https://github.com/nutanixdev/nkp-quickstart/blob/main/nkpDeploy.sh): `nkpDeploy.sh`

### Workload Clusters

- [Workload Cluster Creation](https://github.com/nutanixdev/nkp-quickstart/blob/main/workload-clusters/nkp-create-workload-cluster.sh): `workload-clusters/nkp-create-workload-cluster.sh`
- [Node Pool Creation](https://github.com/nutanixdev/nkp-quickstart/blob/main/workload-clusters/nkp-create-nodepool.sh): `workload-clusters/nkp-create-nodepool.sh`
- [Cluster Listing](https://github.com/nutanixdev/nkp-quickstart/blob/main/workload-clusters/cluster-list.sh): `workload-clusters/cluster-list.sh`
- [Kubeconfig Management](https://github.com/nutanixdev/nkp-quickstart/blob/main/workload-clusters/get-and-merge-kubeconfig.sh): `workload-clusters/get-and-merge-kubeconfig.sh`
- [Kubeconfig Merge](https://github.com/nutanixdev/nkp-quickstart/blob/main/workload-clusters/merge-to-kubeconfig.sh): `workload-clusters/merge-to-kubeconfig.sh`
- [Admin Service Account](https://github.com/nutanixdev/nkp-quickstart/blob/main/workload-clusters/create-admin-service-account.sh): `workload-clusters/create-admin-service-account.sh`

### Operations

- [Support Bundles](https://github.com/nutanixdev/nkp-quickstart/blob/main/troubleshoot/get-support-bundle.sh): `troubleshoot/get-support-bundle.sh`
- [Workload Support Bundle](https://github.com/nutanixdev/nkp-quickstart/blob/main/troubleshoot/get-support-bundle-workload-cluster.sh): `troubleshoot/get-support-bundle-workload-cluster.sh`
- [CLI Helpers](https://github.com/nutanixdev/nkp-quickstart/tree/main/tools): `tools`

### Other components

- **Operator**
- **NKP CLI**
- **Prism Central**
- **NKP Cluster**

## Connections

- Operator → Host Provisioning: configures host (evidence: `README.md`)
- Operator → NKP CLI Installer: runs installer (evidence: `README.md`)
- Operator → Preflight Checks: starts deployment (evidence: `README.md`)
- Preflight Checks → PC Discovery: passes checks (evidence: `README.md`)
- PC Discovery → Prism Central: queries v4 APIs (evidence: `README.md`)
- PC Discovery → Cluster Configuration: provides selections (evidence: `README.md`)
- Cluster Configuration → Review and Confirm: validates settings (evidence: `README.md`)
- Compatibility Rules → Review and Confirm: supplies rules (evidence: `README.md`)
- Review and Confirm → NKP CLI: runs create command (evidence: `README.md`)
- NKP CLI → NKP Cluster: creates cluster (evidence: `README.md`)
