- A Google Cloud Platform Account
- After signing into your GCP Account, Click here to enable the Google Compute Engine and Google Container Engine APIs
- The Google Cloud SDK. Click here to install the Google Cloud SDK.
-
Create a new Google Cloud Platform project: https://console.cloud.google.com
-
In the shell, set your default compute zone:
$ gcloud config set compute/zone us-east1-d
- Clone the lab repository in your shell, then
cd
into that dir:
$ git clone https://github.com/askcarter/spinnaker-k8s-workshop.git
Cloning into 'spinnaker-k8s-workshop'...
...
$ cd spinnaker-k8s-workshop
Spinnaker takes up a lot of resources. Plus we need read write access to GCS.
$ gcloud container clusters create workshop --scopes=storage-rw --machine-type=n1-standard-2
We need RW access because we’re storing data in gcs instead of minio.
$ gcloud iam service-accounts create spinnaker-bootstrap-account --display-name spinnaker-bootstrap-account
$ SA_EMAIL=$(gcloud iam service-accounts list \
--filter="displayName:spinnaker-bootstrap-account" --format="value(email.basename())")
$ PROJECT=$(gcloud info --format='value(config.project)')
$ gcloud projects add-iam-policy-binding $PROJECT --role roles/storage.admin --member serviceAccount:$SA_EMAIL
$ gcloud iam service-accounts keys create account.json --iam-account $SA_EMAIL