Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save guaxinim/984a11ce0528b60a83cf2a81659029aa to your computer and use it in GitHub Desktop.
Save guaxinim/984a11ce0528b60a83cf2a81659029aa to your computer and use it in GitHub Desktop.
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