Lab 2 - AWX,AWX Operator Configurations & Deployments
Last updated
Last updated
In this lab we will learns how to deploy & configure AWX as a containers to K8s cluster.
Basically, only three YML's file required to deploy the AWX onto our K8s cluster.
create kustomization.yml
file with the following content:
as you can see the version of AWX Operator is defined on newTag
key as well as on the resources key.
create awx-demo.yml
file with the following content:
Here you will see minimal content definitions specified in the YML because AWX Operator has taken care the actual AWX deployment files.
Now, with all the k8s object config files in hand, we are going to execute it one by one,
Execute the build in kustomization.yml
Once executed, AWX operator will deploy the following objects on k8s.
Ensure that all AWX controllers manager objects are up and running,
Now, this is where we want to execute our AWX deployment.
Run$ kubectl apply -f awx-demo.yml
After the execution, we can see below additional objects has been created
Notes, for the pods to get ready, it might take sometimes so we will just have to wait for a while.
Finally, ensure that all the required secrets has also been created during the deployment.
Step 4: Verify all the k8s object resources & connectivity to the service
At this stage, we will need to verify below resources has been created inside the awx
namespace.
Below screenshots is from my end for your references.
Step 5: Verify connectivity from the Service
Now we have everythings up and running, we need to do final check and it can be done by the AWX API check.
Run $ minikube service list
Referring to above image, this is the URL that we will need to use to query the AWX Ping API's
AWX Service URL: http://192.168.39.154:30000
To query the API, we can run
$ curl -L -q http://192.168.39.154:30000/api/v2/ping 2>/dev/null
or
$ curl -L -q $(minikube service awx-demo-service --url -n awx)/api/v2/ping 2>/dev/null
We shall receives below response if everythings is good.
~End of Lab 2 - AWX,AWX Operator Configurations & Deployments~
Continue to Lab 3 - Ingress Networking & Connectivity via Nginx