Deploy Ansible AWX with Kubernetes. We will be installing Rancher k3s to handle our Kubernetes environment and Microsoft VScode to handle our SSH connection and perform file management.
Thank you Calvin for this amazing walkthrough. I am doing a migration from puppet to ansible at work and needed the GUI bit. Came across your video at the right time. You're a life saver, people like you are a gem. subscribed immediately 😀
I've been recently migrating Ansible AWX version 17.0 (on docker) to the newest release 22.5 (awx operator and k8s) and I must say that it was essential for me to use your video, Calvin. Thank you very much as this is the best guide how to quickly install Ansible AWX. Brilliant work!
Man, your videos deserve way more views! You really overview important topics in concise way that anyone from Junior to Senior engineer can comprehend. I liked the video from 2 YT accounts and subscribed :)
Thanks for this. Really well explained and demonstrated. I've been struggling to get AWX deployed and completely got lost in an XY problem because I thought I needed minikube and docker and on down the bunny trail.
Thanks Calvin!!! I am pretty familiar with Ansible on the command line but AWX/Tower is completely new to me. This video got me up and running when all the others I have looked at were confusing and misleading.
A big thank you from me to you! My only trouble I had was having typos in a couple of the yaml files "apiversion:" instead of "apiVersion" { DO'H!! } Once I corrected those, I was "cooking with gas!" it's golden!
Calvin, great video. This is very helpful for those of us who struggle with installing awx. I got up to 20 mins or so, but there is a new version of kustomize I would love to see an update on! The new version seems to be very different. Thanks!
Thanks for doing this. It's much easier and cleaner to install it this way in my opinion. Previously, I had followed the official documentation and ultimately got an AWX deployment built with minikube, but could never get the playbooks to run without errors. There were issues with the containers (where the jobs would run) not having permissions to the local gitlab directory. I followed advice from the community and read many forums but never got it to work. I decided to blow it away and start over with a new deployment. Hopefully I have better results this time.
Hey Calvin. Do you think you could do a video about managing AWX configuration as code? Like config-as-code to manage your credentials, project, templates, orgs, etc.? Seems like there's a lot of click-ops involved once AWX is set up- surely there must be a way to template this stuff and run it against a fresh install to get up and running quickly.
I followed your video to install awx 1.1.3 on Debian 11 and things mostly went ok, but I found that you need to install git, make and curl before you start the process or a lot of thing fail. Hopefully this helps someone else that runs into similar issues.
Success, and thank you very much. I was really stuck without you. Had a problem connecting to github to install the operator. The video did not show me I needed to find and plug in the release tag into the kustomization.yaml. That took a minute to figure out, but it was a simple fix. Worked with ref 1.1.0. Also a little problem getting the credential. I pasted from the install page, which uses a namespace of awx-demo, so the secret I needed to retrieve was awx-demo-admin-password. Again, an easy fix, but necessary.
In case anyone's wondering where references to "kustomize" have disappeared to in the latest awx-operator version (2.9.0 at time of writing), this functionality is now built-in.
Hey Calvin! Great to see another video. It would be great if you did an updated setup guide getting up and running with AWX. I guess I will go find Rancher and figure out how that works. I am going to need a bigger lab! Congrats on the new gig with Palo? Last I saw you were with Juniper. Also, where do I keep my eye to catch your live streams once in awhile? On your RUclips about page, the Twitter and Blog link don't work.
Hello Matthew, an updated setup guide is being worked on now. I don't use Twitter, livestreams take too much from me and I cannot blog to save my life; the best place to catch me is here or LinkedIn.
Excellent video Calvin. Thank you. One issue. I tried and tried and tried to find the kubectl logs command that you used and was unsuccessful. I am not familiar with kubectl and tried all sorts of help on it and looked in the Github installation instructions but the command they provide there also did not work. Could you post the full command with the switches? In the video the command isn't even visible for a half second. So far I've been unsuccessful at playing the video frame by frame.
Hey John, sorry for the delayed response. If you're still struggling, I would encourage you to check out the Lens software, it is a desktop app that connects to k8s clusters and simplifies almost every operation (including looking into logs).
Hello, Calvin, This video is very great, Thank you very very much. I have just one question about k8s: How can we added or used the object called awx or kustomization on K8S clustern so these object are not predefined objects on k8s? Other Question: Can you please do a video explaining how can we access AWX after installing it behind a firewall using ingress/ LoadBalancer?
Good day! Thank you for the great instruction! Can you help me with the following question? I need to map local folders from server into the awx-task pod. In docker-compose, this was done using volumes. How can I do this here, could you give me some guidance?
The install worked great, however trying to hook into AWS, a private github repo, or an external RDS DB. i realized that for some reason my pods cannot connect to the internet. Would you happen to know if this is a common awx or k3s issue?
Great video, thanks Calvin. I'm struggling with getting a dynamic inventory working with Netbox - works great via cli but don't know how to implement it in AWX 21.12.0. Assume I need to supply a custom script when creating the inventory but there's no option to do so. Any reference to websites or videos appreciated.
Thanks Calvin! This was much easier than the documentation that was provided in the awx-operator github! What is the best way to present projects to the awx pod? Manual jobs are said to be placed in /var/lib/awx/projects but that folder doesn't exist (I guess because it's running in the pod?).
Hello James, without a doubt the best approach to getting projects within Ansible AWX is to store them on an external service like GitHub. Manual projects seem to be catered exclusively towards air-gapped environments. Let me know if you'd like an updated setup guide for getting up and running with AWX.
@@CalvinRemsburg0 I would love to have an updated setup guide. I don't have experience with Git, so in the interim I'll have to find videos to explain Git to make me understand the implementation better. Thank you!
Hey Calvin, Thanks for video... could you please help me understand about AWX... is it for Development/testing purpose for kubernetes because there's no Cluster for it and if its for Production too then how scalability and HA works with this
Hi Calvin. Thank you for the video good tutorial. I am trying to install on OEL9 and facing issue not able pass your last step. awx awx-operator-controller-manager-7b4dbff7c8-g82sh 2/2 Running 1 (2d8h ago) 6d23h
Great video, have just setup a similar setup at work and i am very new to k3s. We are planning to use Git for our playbooks so that is fine but we also want to be able to pin-point where the configuration and all things required are placed on the server for backup and recovery purposes. Where are all the different things placed? It is difficult to find reading through the logs and the different yaml-files.
Hello Aske, I highly encourage you to take a look at Lens, it’s a free IDE to managing kubernetes environments. It’ll make it easier to find AWX configuration files, secrets and logs. Ansible AWX also ships with a “backup/restore” utility that may be worth looking at, I haven’t used it myself but it looks like it should work. Next video published will be a deeper dive on setting up AWX, so I may have time to include backup/restore in there.
Hello my friend, greaaat video !!!. When I restart the machine, for some reason the web service pod throws a status "CrashLoopBackOff", do you have some idea how to resolve this ?. Thnk u
I cant get it work. It always create an error: awx-operator-controller-manager-74889d49c8-ffb74 2/2 Running 1 (19m ago) 26m awx-postgres-13-0 1/1 Running 0 8m16s awx-task-74bd57db54-vqb2d 0/4 Init:CrashLoopBackOff 6 (2m10s ago) 7m58s awx-web-66545954cd-b68pv 1/3 CrashLoopBackOff 12 (4s ago) 5m56s I tried it as root user, I tried it as user with sudo, with debain, with ubuntu it will not start. Everytime same error as proxmox vm
I figured it out, it is the emu from proxmox hast. set the cpu type to 'host' it will start. Error weas found here ' Fatal glibc error: CPU does not support x86-64-v2' default at proxmox it is the type kvm64....
Hello Calvin. Thank you for the video. I am running int an issue with crashloopbackoff. Any suggestions would be appreciated. NAME READY STATUS RESTARTS AGE awx-operator-controller-manager-fcf6db67c-g2n9w 2/2 Running 0 76m awx-postgres-13-0 1/1 Running 0 75m awx-867b85f5f6-ggs7x 2/4 CrashLoopBackOff 38 (96s ago) 74m
I ran into this as well. I'm running proxmox and had a glibc error in the logs that lead me to try changing the CPU type to "host" on the VM which resolved the issue for me. kubectl -n awx logs -f deployment/awx -c awx-task Fatal glibc error: CPU does not support x86-64-v2
If at the last step when receiving the admin password you got an error: "Error from server (NotFound): secrets "awx-admin-password" not found", use comand:"kubectl get secret -n awx awx-admin-password -o jsonpath="{.data.password}" | base64 --decode ; echo..."
Up and running but just can't get the password out - Is this the command? kubectl get secret awx-admin-password -o jsonpath="{.data.password}" --namespace awx | base64 --decode
Thank you alot, i got stuck in the awx.yaml file > i keep getting this error: Error: accumulating resources: accumulating resources from 'awx.yaml': MalformedYAMLError: yaml: line 1: did not find expected key in File: awx.yaml error: no objects passed to apply I have followed everything to the letter. any ideas why?
Thank you Calvin for this amazing walkthrough. I am doing a migration from puppet to ansible at work and needed the GUI bit. Came across your video at the right time. You're a life saver, people like you are a gem. subscribed immediately 😀
How are you liking ansible over puppet?
I've been recently migrating Ansible AWX version 17.0 (on docker) to the newest release 22.5 (awx operator and k8s) and I must say that it was essential for me to use your video, Calvin. Thank you very much as this is the best guide how to quickly install Ansible AWX. Brilliant work!
Man, your videos deserve way more views! You really overview important topics in concise way that anyone from Junior to Senior engineer can comprehend. I liked the video from 2 YT accounts and subscribed :)
Great tutorial, I was struggling to install this for 2 days and this is the only guide that worked
Thanks for this. Really well explained and demonstrated.
I've been struggling to get AWX deployed and completely got lost in an XY problem because I thought I needed minikube and docker and on down the bunny trail.
Fantastic! I was able to follow along successfully and hope to see more. Thank you Calvin for the thorough explanations!
Thanks Calvin!!! I am pretty familiar with Ansible on the command line but AWX/Tower is completely new to me. This video got me up and running when all the others I have looked at were confusing and misleading.
Glad it was helpful!
A big thank you from me to you! My only trouble I had was having typos in a couple of the yaml files "apiversion:" instead of "apiVersion" { DO'H!! } Once I corrected those, I was "cooking with gas!" it's golden!
Calvin, great video. This is very helpful for those of us who struggle with installing awx. I got up to 20 mins or so, but there is a new version of kustomize I would love to see an update on! The new version seems to be very different. Thanks!
THANK YOU! I had tried several times to install AWX but to no avail, today I managed thanks to your video!
Thanks for doing this. It's much easier and cleaner to install it this way in my opinion. Previously, I had followed the official documentation and ultimately got an AWX deployment built with minikube, but could never get the playbooks to run without errors. There were issues with the containers (where the jobs would run) not having permissions to the local gitlab directory. I followed advice from the community and read many forums but never got it to work. I decided to blow it away and start over with a new deployment. Hopefully I have better results this time.
Kudo's to you man, the internet needs more people like you.
Hey Calvin glad you see you are back with another video! Hope things are going well.
Great video. Instructions are very clear and the result is a successful build. Thanks much Sir!
This is a great tutorial especially for a newbie like me.. Thank you
Hey Calvin. Do you think you could do a video about managing AWX configuration as code? Like config-as-code to manage your credentials, project, templates, orgs, etc.? Seems like there's a lot of click-ops involved once AWX is set up- surely there must be a way to template this stuff and run it against a fresh install to get up and running quickly.
Post your LinkedIn mate
Great video, Calvin. Thank you for giving this to the world.
Excellent video. This is better than using microk8s which is a snap container.
Ignore my last comment, I missed to define the tag, it worked now. Thank you!
about mv , another option is to update the PATH var. Thank you for another super video.
I followed your video to install awx 1.1.3 on Debian 11 and things mostly went ok, but I found that you need to install git, make and curl before you start the process or a lot of thing fail. Hopefully this helps someone else that runs into similar issues.
Success, and thank you very much. I was really stuck without you.
Had a problem connecting to github to install the operator. The video did not show me I needed to find and plug in the release tag into the kustomization.yaml. That took a minute to figure out, but it was a simple fix. Worked with ref 1.1.0.
Also a little problem getting the credential. I pasted from the install page, which uses a namespace of awx-demo, so the secret I needed to retrieve was awx-demo-admin-password. Again, an easy fix, but necessary.
awx-demo is correct and necessary as near as I can tell, so that's the admin password needed.
What version of Kube you use ?
In case anyone's wondering where references to "kustomize" have disappeared to in the latest awx-operator version (2.9.0 at time of writing), this functionality is now built-in.
Great tutorial, but I want to know one more thing, how can I attach a persistent volume if I want to save any data after playbook execution
Hey Calvin! Great to see another video.
It would be great if you did an updated setup guide getting up and running with AWX. I guess I will go find Rancher and figure out how that works. I am going to need a bigger lab!
Congrats on the new gig with Palo? Last I saw you were with Juniper. Also, where do I keep my eye to catch your live streams once in awhile? On your RUclips about page, the Twitter and Blog link don't work.
Hello Matthew, an updated setup guide is being worked on now. I don't use Twitter, livestreams take too much from me and I cannot blog to save my life; the best place to catch me is here or LinkedIn.
Thank you Calvin.
Excellent video! Appreciate it! I wonder if you could do another one with full Kubernetes cluster. Would be really appreciated it!
Excellent video Calvin. Thank you. One issue. I tried and tried and tried to find the kubectl logs command that you used and was unsuccessful. I am not familiar with kubectl and tried all sorts of help on it and looked in the Github installation instructions but the command they provide there also did not work. Could you post the full command with the switches? In the video the command isn't even visible for a half second. So far I've been unsuccessful at playing the video frame by frame.
Hey John, sorry for the delayed response. If you're still struggling, I would encourage you to check out the Lens software, it is a desktop app that connects to k8s clusters and simplifies almost every operation (including looking into logs).
very good tutorial
Thank you, very informative!
Hello, Calvin, This video is very great, Thank you very very much.
I have just one question about k8s: How can we added or used the object called awx or kustomization on K8S clustern so these object are not predefined objects on k8s?
Other Question: Can you please do a video explaining how can we access AWX after installing it behind a firewall using ingress/ LoadBalancer?
Good day! Thank you for the great instruction! Can you help me with the following question? I need to map local folders from server into the awx-task pod. In docker-compose, this was done using volumes. How can I do this here, could you give me some guidance?
The install worked great, however trying to hook into AWS, a private github repo, or an external RDS DB. i realized that for some reason my pods cannot connect to the internet. Would you happen to know if this is a common awx or k3s issue?
Great video, thanks Calvin. I'm struggling with getting a dynamic inventory working with Netbox - works great via cli but don't know how to implement it in AWX 21.12.0. Assume I need to supply a custom script when creating the inventory but there's no option to do so. Any reference to websites or videos appreciated.
Can Kustomize be used to enable additional collections during build? Many thanks.
Thanks Calvin! This was much easier than the documentation that was provided in the awx-operator github! What is the best way to present projects to the awx pod? Manual jobs are said to be placed in /var/lib/awx/projects but that folder doesn't exist (I guess because it's running in the pod?).
Good day Sir, were you able to resolve this issue?
This is a very very great video, many thanks to you Calvin
Hello James, without a doubt the best approach to getting projects within Ansible AWX is to store them on an external service like GitHub. Manual projects seem to be catered exclusively towards air-gapped environments. Let me know if you'd like an updated setup guide for getting up and running with AWX.
@@CalvinRemsburg0 I would love to have an updated setup guide. I don't have experience with Git, so in the interim I'll have to find videos to explain Git to make me understand the implementation better. Thank you!
You've got it, I hope to publish the setup guide this week.
Hey Calvin, Thanks for video... could you please help me understand about AWX... is it for Development/testing purpose for kubernetes because there's no Cluster for it and if its for Production too then how scalability and HA works with this
Hi Calvin. Thank you for the video good tutorial. I am trying to install on OEL9 and facing issue not able pass your last step.
awx awx-operator-controller-manager-7b4dbff7c8-g82sh 2/2 Running 1 (2d8h ago) 6d23h
ditto on alma 9
Are you going to go over creating Execution Environments? that is the part i am stuck at the moment lol. Great Video.
Hi Calvin ,great job.Can I connect local git repo ( not lab or hub)in Awx Project , I have been trying so with no luck ,thanks
Great video, have just setup a similar setup at work and i am very new to k3s. We are planning to use Git for our playbooks so that is fine but we also want to be able to pin-point where the configuration and all things required are placed on the server for backup and recovery purposes. Where are all the different things placed? It is difficult to find reading through the logs and the different yaml-files.
Hello Aske, I highly encourage you to take a look at Lens, it’s a free IDE to managing kubernetes environments. It’ll make it easier to find AWX configuration files, secrets and logs. Ansible AWX also ships with a “backup/restore” utility that may be worth looking at, I haven’t used it myself but it looks like it should work. Next video published will be a deeper dive on setting up AWX, so I may have time to include backup/restore in there.
Any chance you could create a video of upgrading AWX in this same infrastructure?
Hello my friend, greaaat video !!!. When I restart the machine, for some reason the web service pod throws a status "CrashLoopBackOff", do you have some idea how to resolve this ?. Thnk u
Great content
Does anyone know the command to view the logs, I couldn't find it on github?
Does anyone know how to install an SSL certificate into this AWX installation?
I cant get it work. It always create an error:
awx-operator-controller-manager-74889d49c8-ffb74 2/2 Running 1 (19m ago) 26m
awx-postgres-13-0 1/1 Running 0 8m16s
awx-task-74bd57db54-vqb2d 0/4 Init:CrashLoopBackOff 6 (2m10s ago) 7m58s
awx-web-66545954cd-b68pv 1/3 CrashLoopBackOff 12 (4s ago) 5m56s
I tried it as root user, I tried it as user with sudo, with debain, with ubuntu it will not start. Everytime same error as proxmox vm
I figured it out, it is the emu from proxmox hast. set the cpu type to 'host' it will start. Error weas found here '
Fatal glibc error: CPU does not support x86-64-v2' default at proxmox it is the type kvm64....
Iam getting error on kubectl get nodes
could you share what the error is?
Hello Calvin. Thank you for the video. I am running int an issue with crashloopbackoff. Any suggestions would be appreciated.
NAME READY STATUS RESTARTS AGE
awx-operator-controller-manager-fcf6db67c-g2n9w 2/2 Running 0 76m
awx-postgres-13-0 1/1 Running 0 75m
awx-867b85f5f6-ggs7x 2/4 CrashLoopBackOff 38 (96s ago) 74m
I ran into this as well. I'm running proxmox and had a glibc error in the logs that lead me to try changing the CPU type to "host" on the VM which resolved the issue for me.
kubectl -n awx logs -f deployment/awx -c awx-task
Fatal glibc error: CPU does not support x86-64-v2
@@pmichaeljordan Man I was stuck and now kicking myself for not reading these comments earlier....Thanks!!!
@@pmichaeljordan you saved my day. i wasted approx 12 hours searching for a solution for the same error. your trick did it. thanks a lot man
Hernandez Maria Lopez Angela Brown Frank
Harris Daniel Clark Eric Martinez Anthony
Hall Michelle Lopez Kenneth Brown Donna
Ansible AWX 22.7 / Tower End to end video in 21 minutes ruclips.net/video/jr5qLyWAQJg/видео.htmlsi=1MqikuIpsMvzi63a
Wilson Cynthia Rodriguez Donald Brown Gary
Johnson Jose Anderson Maria Taylor Amy
Lewis Carol Lee Maria Anderson Nancy
why get overly complex with your SSH Client? Why not just use Putty...?
Johnson Betty Garcia Michael Thomas Donald
Robinson Robert Young Thomas Young Deborah
If at the last step when receiving the admin password you got an error: "Error from server (NotFound): secrets "awx-admin-password" not found", use comand:"kubectl get secret -n awx awx-admin-password -o jsonpath="{.data.password}" | base64 --decode ; echo..."
Up and running but just can't get the password out - Is this the command?
kubectl get secret awx-admin-password -o jsonpath="{.data.password}" --namespace awx | base64 --decode
What's wrong dude?
Thank you alot, i got stuck in the awx.yaml file > i keep getting this error: Error: accumulating resources: accumulating resources from 'awx.yaml': MalformedYAMLError: yaml: line 1: did not find expected key in File: awx.yaml
error: no objects passed to apply I have followed everything to the letter. any ideas why?
Walker Shirley Walker Sharon Harris Ruth