Hi Team.
My Environment:
Amazon EKS 1.19 w/Managed hosts
Amazon RDS Postgres 12.5R1
AWX Operator 0.8.0
AWX deployment yml file:
##File.yml##
---
apiVersion: v1
kind: Secret
metadata:
name: awx-postgres-configuration
namespace: default
stringData:
port: "5432"
database: "awx"
username: "postgres"
password: "SomeStrongPassword"
type: Opaque
---
kind: AWX
metadata:
name: awx
namespace: default
spec:
tower_ingress_type: Ingress
tower_image_pull_policy: Always
tower_admin_user: admin
##File.yml##
Issue:
I created an EKS cluster on a private network, created a corresponding RDS database, deployed AWX operator to the eks cluster successfully, but whenever I deploy AWX it simply doesn't seem to connect to the database and doesn't create the database objects. I tested the same procedure in a personal (full access and privs) AWS environment and had no issues whatsoever, but this other environment ( I am admin but not AWS environment owner) everything but the object creation succeeds.
I see the pods and services up and running:
$ kubectl get pods
NAME READY STATUS RESTARTS AGE
awx-cf###88b6-jjrlg 4/4 Running 0 3m23s
awx-operator-f###499d-mwzpz 1/1 Running 0 24h
$ kubectl get svc
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
awx-operator-metrics ClusterIP 172.##.138.243 <none> 8383/TCP,8686/TCP 24h
awx-service NodePort 172.##.88.126 <none> 80:32595/TCP 3m28s
kubernetes ClusterIP 172.##.0.1 <none> 443/TCP 24h
I thought that maybe connectivity to the database is not working from within the pods, but that is working fine:
kubectl exec -it pod/awx-cf###88b6-jjrlg -c awx-task /bin/bash
Password for user postgres:
psql (12.5)
SSL connection (protocol: TLSv1.2, cipher: ECDHE-RSA-AES256-GCM-SHA384, bits: 256, compression: off)
Type "help" for help.
awx=> \dt
Did not find any relations.
I checked the operator log and see no failed tasks (attached).
Any clue what am I be doing wrong or missing? Is there a way to debug the deployment to validate database connectivity from the ansible playbook? any ideas what else I can test/try?
Thanks