You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
953 B

  1. # Setup a Kubernetes cluster on Google Cloud Engine (GCE)
  2. Main article: [Running Kubernetes on Google Compute
  3. Engine](https://kubernetes.io/docs/getting-started-guides/gce/)
  4. ## 1. Create a cluster
  5. The recommended way is to use [Google Container
  6. Engine](https://cloud.google.com/container-engine/) (GKE). You should be able
  7. to create a fully fledged cluster with just a few clicks.
  8. ## 2. Connect to it
  9. Install `gcloud` as a part of [Google Cloud SDK](https://cloud.google.com/sdk/).
  10. Make sure you have credentials for GCloud by running `gcloud auth login`.
  11. In order to make API calls against GCE, you must also run `gcloud auth
  12. application-default login`
  13. Press `Connect` button:
  14. ![Connect button](../img/gce1.png)
  15. ![Connect pop-up](../img/gce2.png)
  16. and execute the first command in your shell. Then start a proxy by
  17. executing `kubectl proxy`.
  18. Now you should be able to run `kubectl` command to create resources, get
  19. resource info, logs, etc.