General issues

Prerequisites

Authenticate with Google Cloud

  1. Login to Google Cloud: $ gcloud auth login

  2. Set the Google Cloud project ID: $ gcloud config set project mediamagic-core-ewanv

  3. Configure docker: $ gcloud auth configure-docker

  4. Fetch Kubernetes cluster config: $ gcloud container clusters get-credentials mediamagic-dev-cluster --zone us-east4

Common Issues

General container restart process

This should be used for when a container's in a bad start, for example, an ephemeral connectivity issue.

  1. Find the broken pod: $ kubectl get pods -n mediamagic-<prod|dev>

  2. Get the logs for that broken container: $ kubectl logs auth-service-5fdf7b79b8-595bl -n mediamagic-prod -c service-container

  3. Delete the pod to restart it: $ kubectl delete pod auth-service-5fdf7b79b8-595bl -n mediamagic-prod

Testing connectivity to the database server

  1. Run the Cloud SQL Proxy: $ ./cloud_sql_proxy -instances=mediamagic-core-ewanv:us-east4:mediamagic-dev-db-41b0c5b2=tcp:5432

  2. Connect to the database for the service you're having issues with: $ psql -h 0.0.0.0 -U mediamagic-dev-user -d deployment_service

Last updated