Upgrade
Upgrading AWX on a Single Node K3s Cluster
Get current version of operator
[root@awx-server vladoportos]# kubectl describe pod awx-operator-controller-manager -n awx | grep quay.io/ansible/awx-operator
Image: quay.io/ansible/awx-operator:2.5.3
Image ID: quay.io/ansible/awx-operator@sha256:ba4a5a0aaf3d5dd2308aeb4c5a9f8c30ec3c448f38137269ed2f76ba61598f66
Get latest version of operator
git clone https://github.com/ansible/awx-operator.git
cd /root/awx-operator
git remote update
git fetch
RELEASE_TAG=`curl -s https://api.github.com/repos/ansible/awx-operator/releases/latest | grep tag_name | cut -d '"' -f 4`
echo $RELEASE_TAG
git checkout $RELEASE_TAG
Remove old operator
kubectl config set-context --current --namespace=awx
kubectl delete deployment awx-operator-controller-manager
kubectl delete serviceaccount awx-operator-controller-manager
kubectl delete rolebinding awx-operator-awx-manager-rolebinding
kubectl delete role awx-operator-awx-manager-role
Deploy new operator
export NAMESPACE=awx
make deploy
This will deploy the new operator and operator will take care of upgrading the AWX instance.
That's it ! and hey, if you're feeling generous and want to share the love, consider getting a coffee for me too! Your support is greatly appreciated and helps me create more useful guides and content for our community. Just click the link below to treat me to a coffee. Cheers!