Nutanix Enterprise AI 2.7 allows running MCP servers locally. These instructions allow you to build the excalidraw MCP server into a container, and deploy it on NAI.
- Clone the repo
git clone https://github.com/excalidraw/excalidraw-mcp.git| export URL="https://${PCIPADDRESS}:9440/karbon" | |
| export PCADMIN="username" | |
| export PCPASSWD='supersecretpassword' | |
| export CLUSTER_UUID="uuid of cluster to remove" | |
| export APIURL="/v1-alpha.1/k8s/cluster-registrations/${CLUSTER_UUID}?force=true" | |
| curl -s -k -u "$PCADMIN:$PCPASSWD" --header 'accept: application/json' --request DELETE ${URL}${APIURL} |
| allowVolumeExpansion: true | |
| apiVersion: storage.k8s.io/v1 | |
| kind: StorageClass | |
| metadata: | |
| name: nutanix-volume | |
| parameters: | |
| csi.storage.k8s.io/fstype: ext4 | |
| storageContainer: SelfServiceContainer | |
| prismElementRef: 00077777-aaaa-3333-ffff-0066666eeeee | |
| storageType: NutanixVolumes |
Below is an example of an auto-grow LVM script, where it automatically grows a logical volume when free storage is observed.
Credit: Winson (thanks!)
sudo tee /usr/local/sbin/autogrow-lvs.sh > /dev/null <<'EOF'
#!/bin/bash
set -euo pipefail
VG=vg0
# Find the PV device| #!/bin/bash | |
| # | |
| # NAI Images - Load, Retag, and Push to Private Registry | |
| # | |
| # This script loads NAI container images from a tar bundle, retags them for your | |
| # private registry (self-signed cert), and pushes them to the registry. | |
| # | |
| # Prerequisites: | |
| # - Podman installed and running |
/etc/hosts file updated to reflect 127.0.0.1 to that hostname.If you have large container images or remote sites that have limited network connectivity, pulling images can take a long time--and in many cases requires being pulled for every Worker Node your workload gets deployed on.
One possible solution is leveraging Harbor's Preheat feature, where upon a container being pushed to the registry it will send the image to the Dragonfly running on the cluster ahead of time. So when a Pod gets spun up, it can leverage local P2P technology to pull the image to the local Worker Node instead of going to Harbor.
Note: For situations were you have many clusters at a site, and want to minimize WAN traffic futher, you can alternatively set up a Replication pair of Harbor (so there's a local copy to the site), and then from the Remote Site Harbor set up preheat to the local Dragonflies. This, however, is out of scope for this guide.
The usual don't trust what random
| driver: | |
| enabled: true | |
| usePrecompiled: true | |
| version: 580 |
| # 1. Configuration | |
| ACCESS_KEY="your-key" | |
| SECRET_KEY="your-secret" | |
| ENDPOINT="example.com" | |
| BUCKET="test-bucket" | |
| FILE="upload-test.txt" # The name of the file ALREADY in the bucket | |
| LOCAL_TARGET="downloaded_file.txt" | |
| # 2. Signature Setup (Method is now GET) | |
| date_value=$(date -R) |
This covers how to install NAI 2.6 on NKP with Tech Preview features enabled.
Going through UI as of this writing only supports the non-Tech Preview install.
These instructions will require your docker private token which can be generated here: https://portal.nutanix.com/page/downloads?product=nai.