Post-Installation postgre issue

Hi,
I am new to AWX. I recently installed AWX on a Fedora 32 server, the UI is partially loading but I am seeing a postgre connection issue. I am not sure where to look at and change the configuration to point to the right server; any help would be appreciated.

Apparently I am missing a configuration, how do I add it? I followed the following instructions:
https://github.com/ansible/awx/blob/devel/INSTALL.md#getting-started

I am getting the following log when running sudo docker logs -f awx_task

Are you pointing to an external postgres or are you hoping that AWX will spin up a postgres container for you?

Did you create a PV for the postgres or you ok w/o persistent storage?

Hi Elijah,
I am ok with AWX spining up a postgress container for me. I am also ok without persistent storage.

At this point I am trying to get AWX to run and explore the capabilities, I can add more advanced features when I am more experienced with it.

I have little experience in Linux, so it has been challenging to get AWX to this state, but I enjoyed it so far :slight_smile:

Thanks for your help,
Carlos

The most minimal way I know to deploy AWX to k8s is to get my local kubectl configured to talk to my cluster, create a namespace, then set the following vars.

This set up will create an ingress for you, you can find it later if you look for ingresses in your namespace named [awx-web-svc](https://console.cloud.google.com/kubernetes/ingress/us-east1-d/tower-qe/elijah-vanilla/awx-web-svc?authuser=1&project=ansible-tower-engineering)

This will also deploy a postgres image pulled from dockerhub with ephemeral storage.

localhost ansible_connection=local ansible_python_interpreter=“/usr/bin/env python3”

[all:vars]

general kube vars

kubernetes_context=
kubernetes_namespace=YOURNAMESPACE

awx image vars

dockerhub_base=ansible
awx_task_hostname=awx
awx_web_hostname=awxweb
host_port=80
host_port_ssl=443
docker_compose_dir=“~/.awx/awxcompose”

pg vars

postgres_data_dir=“~/.awx/pgdocker”
pg_image_registry=docker.io
pg_username=awx
pg_password=CHANGEME
pg_database=awx
pg_port=5432

application config vars

admin_user=admin
admin_password=CHANGME
create_preload_data=True
secret_key=CHANGEME

To be clear, the diff between this and the sample inventory file provided is that I have set:

kubernetes_context=MYKUBECONTEXT
kubernetes_namespace=MYNAMESPACE
pg_image_registry=docker.io

I think the main problem if you use default inventory file is that it does not say where to get the pg image from. Part of problem is there are many options, trick is whatever we choose will not work for everyone but I personally think maybe there is room for a PR to uncomment that as its a pretty good use case “I want to try out awx and I’d like it to provision a default database w/ ephemeral storage”.