Prepare the Environment
You must deploy AWX on Kubernetes regardless of how you plan to deploy the Nutanix service.
Prepare the Environment
Clone the repository
# Clone the repository git clone https://github.com/Juniper/eda-apstra-project.git cd eda-apstra-project git checkout nutanix
Choose Your Kubernetes Setup
There are two Kubernetes setup options:
If you already have Kubernetes installed, install Helm. See Step 4.
If you need to install Kubernetes, run the automated single-node Kubernetes installation script:
cd deploy/nutanix/scripts/ chmod +x k8s_deploy.sh ./k8s_deploy.sh
This script will perform the following actions:
-
Check the system requirements (CPU, RAM, and disk space)
-
Install Python 3.10 or later if it is not already installed
-
Clone and set up Kubespray
-
Create the Python virtual environment
-
Install Ansible and dependencies
-
Configure single-node Kubernetes cluster
-
Install kubectl and configure access
-
Install local-path storage provisioner
-
Install Helm package manager
The installation process performs the following tasks:
-
System Check
Verifies the minimum requirements (2 CPU, 4GB RAM, and 20GB disk).
-
IP Selection
Chooses which network interface to use for Kubernetes.
-
Automated Setup
Takes between 15 and 30 minutes depending on your internet speed.
-
Verification
Confirms cluster is ready and accessible.
After the installation is complete, verify that the cluster(s) are working:
# Verify cluster is working kubectl get nodes kubectl get pods -A # Check storage class kubectl get storageclass
Verify Kubernetes cluster for both options:
# Check cluster status kubectl cluster-info kubectl get nodes # Verify you have admin access kubectl auth can-i '*' '*' # Ensure you have a storage class kubectl get storageclass
Run the
helm versioncommand to see if you already have Helm installed:# Check if Helm is installed helm version
If Helm is not installed, run the following command:
# If not installed, install Helm curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash