How to Access Databases
Prerequisites
MySQL Access
Overview
Use the MySQL client available in the launcher pod to connect to MySQL databases.
Steps
Scale up the launcher deployment
bashkubectl scale deploy launcher -nlauncher --replicas=1Exec inside the launcher pod
bashmake kexecConnect to MySQL
bashmysql -u <user> -h <host_ip|host_fqdn> -p
Connection Details
- Find
<user>and<host_ip|host_fqdn>in 1Password item:TrueWatch <region-code> Infra - Common usernames:
rootordf_core
Cleanup
Scale down the launcher pod when finished
bashkubectl scale deploy launcher -nlauncher --replicas=0
PostgreSQL Access
Overview
Use the psql client available in any func2 pod to connect to PostgreSQL databases.
Steps
Exec inside any func2 pod
bashmake kexecConnect to PostgreSQL
bashpsql -h <hostname> -U <username> <database>
Connection Details
- Find connection parameters in 1Password item:
TrueWatch <region-code> Infra
Redis Access
Overview
Use the redis-cli client available in any func2 pod to connect to Redis.
Steps
Exec inside any func2 pod
bashmake kexecConnect to PostgreSQL
bashredis-cli -h <hostname>redis-cliauth <password>
Connection Details
- Find connection parameters using
kubectl get cm core -nforethought-core -o yaml | grep redis -A10
ScopeDB Access
Overview
Use the scopeql client available in the scopedb-default pod to query ScopeDB.
Steps
Exec inside the scopedb-default pod
bashmake kexecLaunch the ScopeQL client
bashscopeql