Created
April 18, 2018 16:23
-
-
Save guaxinim/984a11ce0528b60a83cf2a81659029aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Create a configmap (or a secret) | |
key: pg.env | |
value: | |
DATASOURCES=TESTDB_POSTGRESQL | |
TESTDB_POSTGRESQL_PASSWORD=testpwd | |
TESTDB_POSTGRESQL_DATABASE=testdb | |
TESTDB_POSTGRESQL_USERNAME=testuser | |
TESTDB_POSTGRESQL_DRIVER=postgresql | |
TESTDB_POSTGRESQL_XA_CONNECTION_PROPERTY_DatabaseName=${TESTDB_POSTGRESQL_DATABASE} | |
TESTDB_POSTGRESQL_XA_CONNECTION_PROPERTY_PortNumber=${TESTDB_POSTGRESQL_SERVICE_PORT} | |
TESTDB_POSTGRESQL_XA_CONNECTION_PROPERTY_ServerName=${TESTDB_POSTGRESQL_SERVICE_HOST} | |
2. add the configmap to the EAP deployment as a mount to | |
/etc/envfiles | |
3. add | |
ENV_FILES=/etc/envfiles/pg.env | |
env to the EAP deployment environment |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment