Git Product home page Git Product logo

gke-terraform-hal-spinnaker's Introduction

Install spinnaker in GKE using terraform and hal

Prerequisite

  • Runs only on Linux or Mac
  • Following tools needs to be installed in local machine and available via PATH

Variables

  • project: The ID of the GCP project
  • zone: Compute engine zone where GKE cluster needs to be created
  • gcs_location: Cloud storage bucket location for storing spinnaker data

    By default Nearline storage class is configured. Ensure correct location is configured based on the configured zone

Installation steps

  1. Following API needs to be enabled for the project

    gcloud services enable serviceusage.googleapis.com
    gcloud services enable iam.googleapis.com
    
  2. Create service account for terraform

    PROJECT=$(gcloud info --format='value(config.project)')
    SA_EMAIL=terraform@${PROJECT}.iam.gserviceaccount.com
    
    gcloud iam service-accounts create terraform --display-name "terraform" 
    gcloud iam service-accounts keys create account.json --iam-account $SA_EMAIL
    

    Above command will download the key and store it in account.json file

  3. Grant owner role to terraform service account

    gcloud projects add-iam-policy-binding $PROJECT --member serviceAccount:${SA_EMAIL} --role roles/owner
    
  4. Setup google authentication. For more info refer this guide

    export GOOGLE_APPLICATION_CREDENTIALS="[PATH]" (for e.g. $PWD/account.json)
    
  5. Execute below commands. This will take some time to complete (5 to 8 mins)

    terraform init
    terraform plan -out terraform.plan
    terraform apply terraform.plan 
    
  6. After the command completes, run the following command to set up port forwarding to the Spinnaker UI

    hal deploy connect
    
  7. Access spinnaker UI at http://localhost:9000/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.