General issues
Prerequisites
Authenticate with Google Cloud
Login to Google Cloud:
$ gcloud auth login
Set the Google Cloud project ID:
$ gcloud config set project mediamagic-core-ewanv
Configure docker:
$ gcloud auth configure-docker
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.
Find the broken pod:
$ kubectl get pods -n mediamagic-<prod|dev>
Get the logs for that broken container:
$ kubectl logs auth-service-5fdf7b79b8-595bl -n mediamagic-prod -c service-container
Delete the pod to restart it:
$ kubectl delete pod auth-service-5fdf7b79b8-595bl -n mediamagic-prod
Testing connectivity to the database server
Run the Cloud SQL Proxy:
$ ./cloud_sql_proxy -instances=mediamagic-core-ewanv:us-east4:mediamagic-dev-db-41b0c5b2=tcp:5432
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