Deploy AWX on Kubernetes
Once AWX is deployed, configure Apstra credentials and job templates.
Configure AWX
You must deploy AWX on Kubernetes regardless of how you plan to deploy the Nutanix service.
Run the AWX Deployment Script
Navigate to the scripts directory, and run the AWX configuration script:
# Ensure you're in the scripts directory cd deploy/nutanix/scripts/ chmod +x configure_awx.sh ./configure_awx.sh
This script will perform the following tasks:
-
Check prerequisites (kubectl and Helm)
-
Detect available storage classes
-
Deploy AWX operator using Helm
-
Create AWX instance with persistent storage
-
Wait for deployment to complete
-
Display AWX access information
Script Options
There are two script modes: interactive mode and automated mode. We recommend interactive mode.
Interactive Mode
The script shows the available storage classes and lets you choose.
./awx_deploy.sh
Automated Mode with Specific Storage
# Use local-path storage STORAGE_CLASS_OVERRIDE=local-path ./awx_deploy.sh # Use NFS storage STORAGE_CLASS_OVERRIDE=nfs-client ./awx_deploy.sh
Verify the AWX Configuration
After a successful deployment, run the following commands:
# Check AWX pods kubectl get pods -n aap # Check AWX service kubectl get svc -n aap # Get AWX admin password kubectl get secret ansible-awx-admin-password -n aap -o jsonpath='{.data.password}' | base64 -dThe expected output is the following:
NAME READY STATUS RESTARTS AGE ansible-awx-operator-controller-manager-xxx 1/1 Running 0 5m ansible-awx-postgres-13-0 1/1 Running 0 4m ansible-awx-task-xxx 4/4 Running 0 3m ansible-awx-web-xxx 3/3 Running 0 3m
Access AWX Web Interface
Run the following commands to get the NodePort and access AWX:
# Get NodePort kubectl get svc ansible-awx-service -n aap # Access AWX at: http://<your-node-ip>:<nodeport> # Username: admin # Password: (from the Verify AWX Deployment section)