MySQL ¶
An instance of MySQL is hosted to serve a working copy of taxonomy data as loaded by https://github.com/codeforamerica/civic-tech-taxonomy/tree/master/tools/mysql-loader
Using portforwarder service account ¶
-
Download the
civic-tech-taxonomy-portforwarder.yamlfrom a teammate into your~/.kubedirectoryOr, initially using the root
KUBECONFIGfor the entire cluster, generate a narrowly-scopedKUBECONFIGfile for thecivic-tech-taxonomy/portforwarderservice account:sudo hab pkg install jarvus/mkkubeconfig hab pkg exec jarvus/mkkubeconfig mkkubeconfig civic-tech-taxonomy portforwarder > ~/.kube/civic-tech-taxonomy-portforwarder.yaml -
Activate the downloaded
KUBECONFIGin your current terminal session:export KUBECONFIG=~/.kube/civic-tech-taxonomy-portforwarder.yaml -
Get the name of the currently running pods and store them in shell variables:
MYSQL_POD=$(kubectl get pod -l service=mysql -o jsonpath='{.items[0].metadata.name}')
Forward PostgreSQL port ¶
kubectl port-forward "pods/$(kubectl get pod -l service=mysql -o jsonpath='{.items[0].metadata.name}')" 3306:3306
Database logins
Default database username is root and password is currently set in civic-tech-taxonomy/mysql.yaml