Installing and configuring the Spin CLI

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:

  1. 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
  1. Initialize the SDK and follow the instructions given:
$ gcloud init
  1. Select a project that you have permissions for or create a new one.
  2. 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.

  1. 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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.97.187