Skip to content

Instantly share code, notes, and snippets.

@LauraRichter
Last active September 4, 2017 10:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LauraRichter/5bc52760a498e605fbebc15c4d86e6a6 to your computer and use it in GitHub Desktop.
Save LauraRichter/5bc52760a498e605fbebc15c4d86e6a6 to your computer and use it in GitHub Desktop.
Google Cloud Notes
Set up for the first time:
> gcloud config set container/use_client_certificate True
> gcloud container clusters get-credentials orchestrator --zone europe-west1-d --project prodigy-finance-edw
First log in to google:
> gcloud auth login
Check the airflow ui:
> kubectl port-forward af-ui 8080:8080
Then go to: http://localhost:8080
Build and deploy a new airflow docker file
* First mke your changes in the github repo: https://github.com/DotModus/prodigy-edw
> docker build -t eu.gcr.io/prodigy-finance-edw/airflow-main:<X.X> prodigy-docker-files
> gcloud docker -- push eu.gcr.io/prodigy-finance-edw/airflow-main:<X.X>
Check logs:
> kubectl proxy
Then go to: http://localhost:8001/ui
Connect to datalab:
In the console
> datalab connect datalab-test-laura
The click on Web Preview > preview on port 8081
To get into one of the pods
> kubectl exec -ti af-ui -c ui bash
> kubectl exec -ti af-worker-0 bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment