Can't install awx-operator 2.19.1 in k8s

I use external postgrescl-15.

AWX:
  enabled: true
  name: awx
  spec:
    admin_user: "admin"
    admin_password: "123456"
    postgres_configuration_secret: "awx-postgres-configuration"

  postgres:
    enabled: true

but pod awx-task is in condition Init:0/2 .

NAME                                               READY   STATUS             RESTARTS       AGE
awx-operator-controller-manager-5ccb88d675-mwbqr   2/2     Running            0              36m
awx-task-f6f48fc4f-2nfhc                           0/4     Init:0/2           0              36m
awx-web-66fbbd9579-dd667                           2/3     CrashLoopBackOff   11 (25s ago)   36m

Here is the log. (There is access to the database.)

kubectl logs awx-task-f6f48fc4f-2nfhc  -n awx -c init-database
[wait-for-migrations] Waiting for database migrations...
[wait-for-migrations] Attempt 1
[wait-for-migrations] Waiting 0.5 seconds before next attempt
[wait-for-migrations] Attempt 2
[wait-for-migrations] Waiting 1 seconds before next attempt
[wait-for-migrations] Attempt 3

When you say it has access to the database , what do you mean? What does the secret look like? Does it have any spaces in the secret values?

I tried to connect this way, and it connects. No failures.

kubectl run -it --rm postgres-client --image=postgres --restart=Never -- bash
psql -h 10.10.10.2 -p 5432 -U awx -d awx

but I started to look at the logs in more detail, and my problem is 1 to 1 with AWX web/task pod not launching correctly - "Waiting for database migrations..." and cannot execute awx-manage commands "connection is bad: Name or service not known" · Issue #1636 · ansible/awx-operator · GitHub. but there is no solution to date.

And I try, but it didn’t help.

kubectl -n kube-system delete pod -l k8s-app=kube-dns

File postgres_configuration_secret.yaml

---
apiVersion: v1
kind: Secret
metadata:
  name: awx-postgres-configuration
  namespace: awx
stringData:
  host: 10.10.23.45
  port: "5432"
  database: "awx"
  username: "awx"
  password: "123456789"
  sslmode: disable
  target_session_attrs: read-write
  type: managed
type: Opaque

and

kubectl apply -f postgres_configuration_secret.yaml
helm upgrade --install awx-operator ./awx-operator -n awx -f values.yaml