Categorygithub.com/nutanix/docker-machine
module
3.6.0+incompatible
Repository: https://github.com/nutanix/docker-machine.git
Documentation: pkg.go.dev

# README

Nutanix Rancher Node Driver

This repository contains the Rancher Node Driver for Nutanix. Nutanix Node driver are used to provision hosts on Nutanix Enterprise Cloud, which Rancher uses to launch and manage Kubernetes clusters.


Go Report Card CI Release

release License Proudly written in Golang Releases


Features

  • Ability to select VM's Main Memory in Megabytes
  • Ability to select VM's vCPU count
  • Ability to set a custom name for the newly created VM
  • Ability to set the number of cores per vCPU
  • Ability to specify the network(s) of the VM
  • Ability to specify the template disk in the VM by image name and modify his size (increase only)
  • Ability to specify categories to applied to the VM ( flow, leap, ...)
  • Ability to add one additional disk by specifying disk-size and storage-container
  • Enable passthrough the host's CPU features to the newly created VM
  • Project support
  • Serial Port support
  • Boot type selection : Legacy or UEFI

Installation

If you want to use Nutanix Node Driver, you need add it in order to start using them to create node templates and eventually node pools for your Kubernetes cluster.

  1. From the Home view, choose Cluster Management > Drivers in the navigation bar. From the Drivers page, select the Node Drivers tab.

  2. Click Add Node Driver.

  3. Complete the Add Node Driver form. Then click Create.

    • Download URL: https://github.com/nutanix/docker-machine/releases/download/v3.6.0/docker-machine-driver-nutanix
    • Custom UI URL: https://nutanix.github.io/rancher-ui-driver/v3.6.0/component.js
    • Checksum: ``
    • Whitelist Domains: nutanix.github.io

    whitelist is mandatory and need to be changed if you relocate the UI driver

image

  1. Wait for the driver to become "Active"
  2. Go to RKE1 Configuration > Node Templates, your can create a Nutanix Template and custom UI should show up.

image

Driver Args

ArgDescriptionRequiredDefault
nutanix-endpointThe hostname/ip-address of the Prism Centralyes
nutanix-portThe port to connect to Prism Centralno9440
nutanix-usernameThe username of the nutanix management accountyes
nutanix-passwordThe password of the nutanix management accountyes
nutanix-insecureSet to true to force SSL insecure connectionnofalse
nutanix-clusterThe name of the cluster where deploy the VM (case sensitive)yes
nutanix-boot-typeThe boot type of the VM (legacy or uefi)nolegacy
nutanix-vm-memThe amount of RAM of the newly created VM (MB)no2 GB
nutanix-vm-cpusThe number of cpus in the newly created VM (core)no2
nutanix-vm-coresThe number of cores per vCPUno1
nutanix-vm-networkThe network(s) to which the VM is attached to ( name or UUID )yes
nutanix-vm-imageThe name of the Disk Image template we use for the newly created VM (must support cloud-init)yes
nutanix-vm-image-sizeThe new size of the Image we use as a template (in GiB)no
nutanix-vm-categoriesThe name of the categories who will be applied to the newly created VMno
nutanix-projectThe name of the project where deploy the VM (default if empty)nodefault
nutanix-disk-sizeThe size of the additional disk to add to the VM (in GiB)no
nutanix-storage-containerThe storage container UUID of the additional disk to add to the VMno
nutanix-cloud-initCloud-init to provide to the VM (will be patched with rancher root user)no
nutanix-vm-cpu-passthroughEnable passthrough the host's CPU features to the newly created VMnofalse
nutanix-vm-serial-portAttach a serial port to the newly created VMnofalse

Project support

Starting v3.3.0 the Rancher Node driver implements Nutanix Project support. The prerequisite needed to be able to use the Rancher Node Driver is the following:

  • Target cluster and network available in the Project
  • Role with the following recommended permission:
    • VM Full Access
    • Cluster View Access
    • Image View Only

Development

Build Instructions

build linux/amd64 binary => make build local binary => make local

History

  • v1 is the original Nutanix docker machine driver that connect to Prism Element
  • v2.x add Rancher 2.0 support
  • v3.x is a rewrite of the driver that connect to Prism Central

# Packages

No description provided by the author
No description provided by the author