ansible / awx-operator

An Ansible AWX operator for Kubernetes built with Operator SDK and Ansible. 🤖
https://www.github.com/ansible/awx
Apache License 2.0
1.23k stars 624 forks source link

[HELP] - Installation of AWX Operator confusing/incomplete to new users #1516

Open Freebase394 opened 1 year ago

Freebase394 commented 1 year ago

Please confirm the following

Bug Summary

My System: PRETTY_NAME="Debian GNU/Linux 12 (bookworm)" NAME="Debian GNU/Linux" VERSION_ID="12" VERSION="12 (bookworm)" VERSION_CODENAME=bookworm ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"

I hope you understand my perpective, but could some developer simplify the "AWX Operator" installation technique? That is, please could you complete the techniques of how to install on the following operating systems: Debian 11/12 | Centos | Ubuntu | Fedora etc....

I'm trying realy hard but i can't install it via "this documentation" and this VIDEO

Someone could help me and the comunity.

about 1 year or so ago, I managed to install on the first try the original "AWX" softwer version 17.0.xx and it was a piece of cake / easy / simple, even for IT beginners. Now to be able to install these new versions of awx or AWX Operator since versin 18.x we want to install docker but the developers strongly advise against it, we have to use minikube but it only presents problems during the installation ... SUMMARY - This is a real mess for people like me who know the capabilities of AWX and want to try to install but give up because now there are many setbacks of softwer vs packages.

Please give me some lights and i will help someone with same issues!

AWX Operator version

Latest

AWX version

Latest

Kubernetes platform

minikube

Kubernetes/Platform version

latest

Modifications

yes

Steps to reproduce

Please read "### Bug Summary"

Expected results

Please read "### Bug Summary"

Actual results

Please read "### Bug Summary"

Additional information

Please read "### Bug Summary"

Operator Logs

No response

Freebase394 commented 1 year ago

My kustomization.yaml

 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
  # Find the latest tag here: https://github.com/ansible/awx-operator/releases
  - github.com/ansible/awx-operator/config/default?ref=2.5.0
  - awx-demo.yaml

# Set the image tags to match the git version from above
images:
  - name: quay.io/ansible/awx-operator
    newTag: 2.5.0

# Specify a custom namespace in which to install AWX
namespace: awx

My awx-demo.yaml

---
apiVersion: awx.ansible.com/v1beta1
kind: AWX
metadata:
  name: awx-demo
spec:
  service_type: nodeport
gertz22 commented 1 year ago

Where do you stuck? Do you run it as VM?

Freebase394 commented 1 year ago

Hi @gertz22 Thank you very much for your time and attention to this matter. I gave up from AWX Operator | Ansible AWX (...)

I'm running it inside of Proxmox VE:

CPU(s) 4 x Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz (1 Socket)
I have created VMs with 5/6 GB RAM
15 GB of HDD for entire VM 
--
Kernel Version Linux 5.4.106-1-pve #1 SMP PVE 5.4.106-1 
PVE Manager Version pve-manager/6.4-4/337d6701

I was practically 2/3 days in a row trying to run most of the installation tutorials available through the duckduckgo and google.com search engines. I almost folowed this tutos:

https://www.linuxtechi.com/install-ansible-awx-on-kubernetes-cluster/  
--Published on: May 24, 2023 by [Pradeep Kumar](https://www.linuxtechi.com/author/pradeep/)
https://computingforgeeks.com/run-ansible-awx-on-kubernetes-openshift-cluster/
By[Josphat Mutai](https://computingforgeeks.com/author/mutai-josphat/)-February 10, 2023
https://www.ansiblepilot.com/articles/install-ansible-awx-operator-for-kubernetes-k8s-and-openshift-ocp-ansible-awx/
Published on: September 21, 2022

And a few others to try fix other Issues related to minikube and other things! My main problems were mainly with the installation of Minikube | Kubernetes | k8s | k3s I tried almost all .... almost always presented a different error one worse than the other! I would solve one side and then get stuck on the other. I don't like kubernetes than i like docker. All these problems mentioned above when I proceed to install a higher and different version than AWX 17.1, the 17.1 I can run and execute successfully, both on machine and in docker containers!

And I always came to the same point. What point is that?

Then I went to https://alternativeto.net/software/ansible-semaphore/about/ and discovered this fantastic softwer! There is a simple DOCUMENTATION, but it is simple and effectively specified!

It has a phenomenal support! It is constantly updated and has a relatively small community but good enough for everyone to help each other! This softwer also has 4 different installation techniques and 3 different database types! It is extremely light! It has most of the features of the AWX. From 0 to 10, taking in mind all the problems I had with Ansible AWX | AWX Operator, I simply give this Semaphore a 10.1. rating value.

Does anyone have a different guide I can follow, run the commands differently and maybe I can install successfully ?? @gertz22 are you running which version of Ansible on your end?

gertz22 commented 1 year ago

Did you set you CPU for virtual x86-64-v2+AES and in advanced add aes support? its requirement to run awx

khill-fbmc commented 11 months ago

I'll tack onto this that the official guide does not work...

I started here and created this file per the guide:

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
  # Find the latest tag here: https://github.com/ansible/awx-operator/releases
  - github.com/ansible/awx-operator/config/default?ref=2.7.1

# Set the image tags to match the git version from above
images:
  - name: quay.io/ansible/awx-operator
    newTag: 2.7.1

# Specify a custom namespace in which to install AWX
namespace: awx

And this is the response from the kubectl apply -k . command

image

kurokobo commented 11 months ago

@khill-fbmc Under certain circumstances. git from snap causes your issue. Locally installed kubectl should be used instead of kubectl that shipped with microk8s from Snap Store.

If you have further questions, ask your questions in Ansible Community Forum.

khill-fbmc commented 11 months ago

You are correct! Thanks for the assist.

image

khill-fbmc commented 11 months ago

I know you said locally installed, but Ubuntu forcing their snaps upon us.... alas