Deploy Ansible Automation Platform (AWX) on Kubernetes
You must deploy AWX on Kubernetes regardless of how you plan to deploy the Nutanix service.
Deploy AWX on Kubernetes
You must deploy AWS 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 AWS deployment script:
cd deploy/nutanix/scripts/ chmod +x awx_deploy.sh ./awx_deploy.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
Script Options
There are two script modes: interactive mode and automated mode.
Interactive Mode
./awx_deploy.sh
Automated Mode with Specific Storage
This script shows the available storage classes, and lets you choose.
# Use local-path storage STORAGE_CLASS_OVERRIDE=local-path ./awx_deploy.sh # Use NFS storage STORAGE_CLASS_OVERRIDE=nfs-client ./awx_deploy.sh
Verify AWX Deployment
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 -dThis is the expected output:
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)