This tutorial leverages the Google Cloud Platform to streamline provisioning of the compute infrastructure required to bootstrap a Kubernetes cluster from the ground up. Sign up for $300 in free credits.
Estimated cost to run this tutorial: $0.132 per hour ($3.19 per day).
Note that the
project-id
must be unique in the 🌎. Also Make sure billing is setup for the project
Assuming the gcloud
cli is successfully installed and setup on your machine:
hydra
is the name of the cluster (named after the greek mythical creature). You can name the cluster whatever you wish,
# This could take a while (~5 minutes), grab a ☕
$ gcloud container clusters create hydra --machine-type=n1-standard-2 --num-nodes=2
# If the kubernetes context isn't set automatically
$ kubectl config use-context gke_autoapping_us-west2-a_hydra
# Double check the context
$ kubectl config get-contexts
CURRENT NAME CLUSTER AUTHINFO NAMESPACE
docker-for-desktop docker-for-desktop-cluster docker-for-desktop
* gke_autoapping_us-west2-a_hydra gke_autoapping_us-west2-a_hydra gke_autoapping_us-west2-a_hydra
# You can use kubectl to list the nodes
$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
gke-hydra-default-pool-abc12345-abcd Ready <none> 9m v1.11.7-gke.12
gke-hydra-default-pool-abc12345-efgh Ready <none> 9m v1.11.7-gke.12
Previous | Next |
---|---|
Installing the Client Tools | Deploying Spinnaker to k8s |