Set-up your environment on Google Cloud Platform (GCP)

  1. If you are new to Google Cloud Platform you can take advantage of the free trial package, which gives you $300 to spend on all Google Cloud Platform products. To sign up:

    • Go to the GCP Console.

    • Follow the instructions to sign up for the free trial

      If you are not new to GCP, sign in to your GCP account and navigate to your GCP console

  2. Set-up Google Container Engine

      • Enable billing for your project.

            If you haven’t enabled free trail yet, you can enable the free trial billing account via the white navigation bar above the blue navigation bar. Else you will have to create a new billing account. Follow link link to create a new billing account

      • Click Create Project

      • In the New Project window that appears, enter ‘project name’ as apache-fineract-cn

      • Click Create.

Wait for the API and related services to be enabled. This can take several minutes.Create a new project via your GCP console called apache-fineract-cn

  • Set-up gcloud and kubectl on local shell

    • Follow the instructions on this link to install and configure gcloud on linux.
      N.B: Make sure to set apache-fineract-cn as your cloud project when configuring the project to be used by gcloud on your local shell

    • After installing Cloud SDK, install the kubectl command-line tool by running the following command:

        $ gcloud components install kubectl

  • Create a cluster for apache-fineract-cn project on GCP

  • Visit the Google Kubernetes Engine menu in GCP Console.

  • Click Create cluster.

  • Choose the Standard cluster template

  • Customize the template

    • Name: The name you choose for the cluster. It must be unique within the project  and the zone.

    • Location type: Whether all the nodes in the cluster are in the same zone, or can be in any zone in a given region.

    • Zone: Compute Engine compute zone in which to create the cluster, if the Location type is Zonal.

    • Region: Compute Engine compute zone in which to create the cluster, if the Location type is Regional.

    • node pool:

      • Cluster size: The number of nodes to create in the cluster. You must have available resource quota for the nodes and their resources (such as firewall routes).

      • Machine type: Compute Engine machine type to use for the instances. Each machine type is billed differently. The default machine type is n1-standard-1. For machine type pricing information, refer to the machine type price sheet.

  • Click Create.

  • Click connect to connect to the cluster, then copy the command and run on your local shell.

  • No labels