diff --git a/README.md b/README.md index 3d7b52b7..3e50af42 100644 --- a/README.md +++ b/README.md @@ -86,6 +86,30 @@ If you are attempting to do this on an OpenShift cluster, you will need to grant Again, this is the most relaxed SCC that is provided by OpenShift, so be sure to familiarize yourself with the security concerns that accompany this action. +### Connecting to an external Postgres Service + +When the Operator installs the AWX services and generates a Postgres deployment it will lay down a config file to enable AWX to connect to that service. To use an external database you just need to create a `Secret` that the AWX deployment will use instead and then set a property in the CR: + + --- + spec: + ... + external_database: true + +The secret should have the name: *crname*-postgres-configuration and +should look like: + + apiVersion: v1 + kind: Secret + metadata: + name: -postgres-configuration + namespace: + stringData: + address: + port: + database: + username: + password: + type: Opaque ### Persistent storage for Postgres