Skip to content

Administering our production environment

Jonathan Stray edited this page Aug 23, 2018 · 26 revisions

Deploy

See here

Reboot a server

To reboot a server, from the Google Cloud project console, navigate to the pod (not deployment) that is having problems, and delete the pod (not the deployment)

Viewing logs

Go to the deployment page on Google Cloud Console and click "container logs"

Or to view at the console, kubectl -n production logs -f [tab-complete]

Changing environment variables

Environment variables are set per-pod in individual yaml files, e.g. frontend-deployment.yaml

Many environment variables are secrets, which can be set through kubectl like this: kubectl edit secret cjw-intercom-secret --namespace production or through Google Cloud console