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