Skip to content

vEDW/nkp-quickstart

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nutanix Kubernetes Platform - Quickstart Guide

TL;DR

Steps to install all the required CLIs (nkp, kubectl and helm) to create and manage NKP clusters.

  1. Add NKP Rocky Linux image from the Nutanix Support Portal to Prism Central

  2. Create a jump host with 2 vCPUs, 4 GB memory, use the Rocky image (update disk to 128 GiB), and the following Cloud-init custom script : cloud-init

  3. SSH to nutanix@<jump host_IP> (default password: nutanix/4u - unless you modified it in the cloud-init file)

  4. Install the NKP CLI with the command: get-nkp-cli

    When prompted, you must use the download link as-is, which is available in the Nutanix portal.

Table of Contents

  1. Overview

  2. Prerequisites Checklist

  3. Deploy Linux jump host

  4. Install NKP CLI

  5. (Optional) Create NKP Cluster on Nutanix

Overview

The NKP CLI is a command-line interface for managing NKP-based workflows. This guide provides a quick and easy way to install the required CLIs (nkp, kubectl and helm) using the Rocky Linux image provided by Nutanix in the Nutanix Support Portal.

Prerequisites Checklist

For NKP CLI:

  • Internet connectivity

  • Add NKP Rocky Linux to Prism Central. DO NOT CHANGE the auto-populated image name

    click to view example

(Optional) For NKP cluster creation:

  • Static IP address for the control plane VIP
  • One or more IP addresses for the NKP dashboard and load balancing service

Deploy Linux jump host

  1. Connect to Prism Central

  2. Create a virtual machine

    • Name: nkp-jump host
    • vCPUs: 2
    • Memory: 4
    • Disk: Clone from Image (select the Rocky Linux you previously uploaded)
    • Disk Capacity: 128 (default is 20)
    • Guest Customization: Cloud-init (Linux)
    • Custom Script: cloud-init
  3. Power on the virtual machine

Install NKP CLI

  1. Connect to your jump host using SSH (default password: nutanix/4u)

    ssh nutanix@<jump host_IP>
  2. Install the NKP CLI with the command: get-nkp-cli

    curl -sL https://raw.githubusercontent.com/nutanixdev/nkp-quickstart/main/scripts/get-nkp-cli | bash

    When prompted, you must use the download link as-is, which is available in the Nutanix portal.

(Optional) Create NKP cluster on Nutanix

  1. Before you start, ensure you meet the prerequisites:

    • Static IP address for the control plane VIP
    • One or more IP addresses for the NKP dashboard and load-balancing service

    Note: The IP addresses must be in the same subnet as the virtual machines.

  2. Choose one of the following two installation methods:

    • Prompt-based installation. Use this method when the Internet connection for the NKP cluster isn’t shared with more users.
    • CLI installation. Use this method when the Internet connection for the NKP cluster is shared between many users.

Prompt-based installation

This installation method gives less control on the cluster configuration. For example, the NKP cluster will be created with three control plane nodes and four worker nodes.

We recommend starting a tmux session in case your ssh connection is at risk of disconnection (like laptop going into sleep mode) as the process can take some time based on several paramters (like download speed).

nkp create cluster nutanix

CLI installation

This installation method lets you fully customize your cluster configuration. The following commands create a cluster with one control plane node and three worker nodes.

  1. Before running the following command in your jump host VM, update the values with your environment: nkp-env

  2. The next command will start the installation process of an NKP management cluster: nkp-create-cluster

Support and Disclaimer

These code samples are intended as standalone examples. Please be aware that all public code samples provided by Nutanix are unofficial in nature, are provided as examples only, are unsupported, and will need to be heavily scrutinized and potentially modified before they can be used in a production environment. All such code samples are provided on an as-is basis, and Nutanix expressly disclaims all warranties, express or implied. All code samples are © Nutanix, Inc., and are provided as-is under the MIT license (https://opensource.org/licenses/MIT).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%