Prepare Your 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:
-
Option 1:
You already have Kubernetes installed. See Install Helm.
-
Option 2:
You don't have Kubernetes installed, see Execute the Automated Single-Node Kubernetes Installation Script .
Execute the Automated Single-Node Kubernetes Installation Script
Execute the automated single-node Kubernetes installation script:
cd deploy/nutanix/scripts/ chmod +x k8s_deploy.sh ./k8s_deploy.sh
-
Check the system requirements (CPU, RAM, and disk space).
-
Install Python 3.10 or later if it isn't 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 includes 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.
- Verify that the Kubernetes Cluster is Working for Option 1
- Verify that the Kubernetes Cluster is Working for Options 1 and 2
Verify that the Kubernetes Cluster is Working for Option 1
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 that the Kubernetes Cluster is Working for Options 1 and 2
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
Install Helm
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
Run the
helm versioncommand to verify that you have Helm installed:# Check if Helm is installed helm version