Install AWX on RKE2 after installing AWX Operator

We’re going to build on an AWX Operator pod install in a RKE2 based Kubernetes environment.

Quickly, AWX Operator is installed and running, its install is:

git clone --branch "2.19.1" --depth 1 https://github.com/ansible/awx-operator.git
cd awx-operator

We can update the manifests/awx-operator.yaml file to correct the rbac_proxy source, via:

sed -i 's/gcr.io/kubebuilder/kube-rbac-proxy/quay.io/brancz/kube-rbac-proxy/g' manifests/awx-operator.yaml
kubectl apply -f manifests/awx-operator.yaml

Once its pod is running, as seen via: kubectl get pods -n awx
We can then get the AWX web, Postges & tasks pods installed and running.

There’s a few updates needed for the manifests/awx.yaml


sed -i 's/redis_image_version: "7"/redis_image_version: "latest"/g' manifests/awx.yaml

We need to create the Storage needed by AWX pods before we start them:

kubectl apply -f https://raw.githubusercontent.com/rancher/local-path-provisioner/v0.0.37/deploy/local-path-storage.yaml
kubectl patch storageclass local-path -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'

Now we can start the AWX install itself with:

kubectl apply -f manifests/awx.yaml

Watch it deploy and start up with:

kubectl get pods -n awx



This entry was posted in Sales. Bookmark the permalink.

Leave a Reply