The operations mentioned in the following recipes require the spin CLI, gcloud, and a GCP account with a project that has billing enabled. We will enable related APIs using the gcloud CLI:
- Run the following command to download the gcloud CLI. If you have the gcloud CLI installed and a project already, skip to step 4:
$ curl https://sdk.cloud.google.com | bash
- Initialize the SDK and follow the instructions given:
$ gcloud init
- Select a project that you have permissions for or create a new one.
- Enable the Kubernetes Engine API, the Cloud Build API, and the Cloud Source Repositories API for the project:
$ gcloud services enable compute.googleapis.com cloudapis.googleapis.com sourcerepo.googleapis.com
Operation "operations/acf.d1f2c714-9258-4784-a8a9-6648ab4c59fe" finished successfully.
- Download and install the spin CLI:
$ curl -LO \
https://storage.googleapis.com/spinnaker-artifacts/spin/$(curl -s \
https://storage.googleapis.com/spinnaker-artifacts/spin/latest)/linux/amd64/spin
$ chmod +x spin
$ sudo mv spin /usr/local/bin/spin
Now you have GCP services enabled and the spin CLI installed.