From f07f069b869a034ea9188216f778471694b93638 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Tue, 25 Aug 2020 08:54:02 -0400 Subject: [PATCH] README information covering using an external database --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) 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