Giter VIP home page Giter VIP logo

spinnaker-deploymentmanager's Introduction

Deployment Manager Templates for Spinnaker

This repository contains Deployment Manager template for deploying Spinnaker. By default, this will deploy the following topology:

Spinnaker will store its state in Google Cloud Storage and Redis. Jenkins is used to run scripts required during the build process or in order to trigger a pipeline.

Deploying

  1. Download the repository.

  2. Create the deployment:

     export GOOGLE_PROJECT=$(gcloud config get-value project)
     export DEPLOYMENT_NAME="${USER}-test1"
     export JENKINS_PASSWORD=$(openssl rand -base64 15)
     gcloud deployment-manager deployments create --template config.jinja ${DEPLOYMENT_NAME} --properties jenkinsPassword:${JENKINS_PASSWORD}
    
  3. Once instance provisioning is complete get the name of your Spinnaker and Jenkins instances by running:

     export SPINNAKER_VM=$(gcloud compute instances list --filter="name~'${DEPLOYMENT_NAME}-spinnaker.+'" --uri)
     export JENKINS_VM=$(gcloud compute instances list --filter="name~'${DEPLOYMENT_NAME}-jenkins.+'" --uri)
    
  4. Creating an SSH tunnel to your Spinnaker instance as follows:

     gcloud compute ssh ${SPINNAKER_VM} -- -L 8081:localhost:8081 -L8080:$(basename $JENKINS_VM):8080
    
  5. After a few minutes, you can access the Spinnaker and Jenkins UIs respectively by visiting the following web address:

     http://localhost:8081
     http://localhost:8080
    

Teardown

  1. Stop the front50 service then delete the GCS objects and bucket:

    gcloud compute ssh ${SPINNAKER_VM} -- sudo service front50 stop
    gsutil rm -r gs://spinnaker-${GOOGLE_PROJECT}-${DEPLOYMENT_NAME}/front50
    gsutil rb gs://spinnaker-${GOOGLE_PROJECT}-${DEPLOYMENT_NAME}
    
  2. Delete the deployment by running:

    gcloud deployment-manager deployments delete ${DEPLOYMENT_NAME}
    

spinnaker-deploymentmanager's People

Contributors

cilindrox avatar danisla avatar pawelz avatar taylorludwig avatar ytakky2014 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

spinnaker-deploymentmanager's Issues

Nothing appears on localhost:9000

IDK where else to report my issue with the GCP Cloud Launcher for Spinnaker. Hope people watching this project can point me in the right direction.

I used Google Cloud Launcher to make a new deployment of Spinnaker to evaluate.
I used these values:

  • Enabled the "Kubernetes" checkbox.
  • Left alone the "Kubernetes Account Name" field (idk what value to use, and the help text doesn't answer that question).
  • Set my GKE cluster's name in "Kubernetes Cluster Name" field - "cluster-mine-2".
  • Set "Kubernetes Cluster Zone" to same zone as my fresh GKE 1.7 cluster.
  • Left alone the "GCR Account Name" field.

When I SSH into that VM, my localhost:9000 doesn't respond.

$ gcloud compute ssh --project=$MY_PROJECT_ID --zone=$MY_ZONE spinnaker-1 -- -L9000:localhost:9000 -L8084:localhost:8084

Any ideas of what to change to make it work?

'--config' flag has been deprecated

WARNING: Creating deployments from templates with the '--config' flag has been deprecated.  Support for this will be removed 2017/11/08.  Please use '--template'instead.

failed to create deployment

I'm getting an error when trying to create a new spinnaker deployment:

guidob@meister:~/git/github/spinnaker-deploymentmanager master ± gcloud --project xxx-sandbox-spinnaker deployment-manager deployments create --config config.jinja spinnaker --properties jenkinsPassword=xxx 
WARNING: Delimiter '=' is deprecated for properties flag. Use ':' instead.
The fingerprint of the deployment is LPqm4PvYwhuJpj5r_rgIkw==
Waiting for create [operation-1490341968661-54b7547a2ca08-f02c391f-cacec7b8]...failed.                                                                                                    
ERROR: (gcloud.deployment-manager.deployments.create) Error in Operation [operation-1490341968661-54b7547a2ca08-f02c391f-cacec7b8]: errors:
- code: RESOURCE_ERROR
  location: /deployments/spinnaker/resources/spinnaker-spinnaker-bucket
  message: '{"ResourceType":"storage.v1.bucket","ResourceErrorCode":"403","ResourceErrorMessage":{"code":403,"errors":[{"domain":"global","message":"Caller
    does not have storage.buckets.get access to bucket spinnaker-spinnaker-bucket.","reason":"forbidden"}],"message":"Caller
    does not have storage.buckets.get access to bucket spinnaker-spinnaker-bucket.","statusMessage":"Forbidden","requestPath":"https://www.googleapis.com/storage/v1/b/spinnaker-spinnaker-bucket"}}'

Is there something I'm missing here?

failed to set gcs bucket

I'm getting error when trying to use google cloud bucket for spinnaker.
exists: com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden { "code" : 403, "errors" : [ { "domain" : "global", "message" : "Caller does not have storage.buckets.create access to project 940010043238.", "reason" : "forbidden" } ], "message" : "Caller does not have storage.buckets.create access to project 940010043238." }

I'm already set the roles in the IAM which are:

Compute Instance Admin (beta)
Compute Network Admin
Compute Security Admin
Compute Storage Admin
Service Account Actor

The command I use

hal config storage gcs edit --project $PROJECT --bucket kurio-spinnaker --bucket-location ASIA-SOUTHEAST1 --json-path $SERVICE_ACCOUNT_DEST

Spinnaker localhost run issue

I have followed the instructions as mentioned in the readme. Spinnaker instances are created. But in the last - there is a command to issue http://localhost:9000 - can you elaborate on this.

I used gcloud shell from the console to execute the commands. I used web preview with port 9000, it always says could not connect to the machine. Can you pl. help on this.

Should spinnaker be configured once the cluster has been created?

It works to access the spinnaker and jenkins ui. There is a job in Jenkins. When it is run it fails immediately. The spinnaker UI is empty. What is the expected flow? Should there be a job in jenkins in spinnaker as well? Perhaps the context could be extended in the readme?

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.