Netflix Spinnaker: multi-cloud continuous integration tool

With the release of the open source Netflix Spinnaker delivery platform, the cloud-savvy video on demand company signals that the cloud is bigger than AWS

Video on demand provider Netflix has been successfully running much of their operation in the AWS cloud for six years now, and the relationship has been mutually beneficial. If people are talking about AWS, then the odds are that you’ll hear something about Netflix: whether it’s how they migrated their huge workload to AWS, their Simian Army resilience testing tool, or how well Netflix manages AWS outages. Now you can add Netflix Spinnaker to the conversation.

In a blog post a few months ago, Netflix first mentioned Spinnaker, an open source, multi-cloud deployment tool that was then under development. The post mentioned how the company was planning to move to Spinnaker from its own Asgard. The Netflix Spinnaker code is now publicly available.

What is Netflix Spinnaker?

According to Netflix:

Netflix Spinnaker is an open source multi-cloud Continuous Delivery platform for releasing software changes with high velocity and confidence. Spinnaker is designed with pluggability in mind; the platform aims to make it easy to extend and enhance cloud deployment models. To create a truly extensible multi-cloud platform, the Spinnaker team partnered with Google, Microsoft and Pivotal to deliver out-of-the-box cluster management and deployment. As of today, Spinnaker can deploy to and manage clusters simultaneously across both AWS and Google Cloud Platform with full feature compatibility across both cloud providers. Spinnaker also features deploys to Cloud Foundry; support for its newest addition, Microsoft Azure, is actively underway.

It’s very interesting that Netflix, which has always relied on AWS for its infrastructure, has now built a tool to migrate or deploy on AWS or Google Cloud Platform and Pivotal. Are they trying to reduce their dependency on a sole vendor?

Netflix Spinnaker is an open source, multi-cloud continuous delivery platform for releasing software changes. It provides both Cluster and Deployment management.

Cluster Management

Cluster Management deals with cloud resources like:

  • Server Groups. Collections of cloud-based virtual machines (VMs) built from AMIs or images. A server group can also be associated with a load balancer, Security Group, user information, region and availability zones.
  • Load Balancers. Protocols for managing traffic loads associated with a server group.
  • Security Groups. Rules defining network traffic access and firewall rules according to IP range (CIDR), communication protocol (e.g., TCP) and port range.
  • Clusters. User-defined, logical groupings of Server Groups within Spinnaker.

Deployment Management

Netflix Spinnaker deployment management provides for continuous integration and workflow. It facilitates the creation of pipelines that represent a delivery process that can begin with the creation of some deployable asset (such as a machine image, JAR file, or Docker image) and end with a deployment.

  • Pipeline. The key deployment management construct in Netflix Spinnaker. Pipelines are defined by a sequence of stages, triggers that kick off the pipeline, and parameters that get passed between pipeline stages and can be configured to issue notifications (via email, SMS or HipChat) as the pipeline executes. Triggers can be either automatic – like a Jenkins job, CRON schedule, or another pipeline – or manual.
  • Stage. A Stage in Spinnaker represents different phases in a pipeline’s lifecycle. Spinnaker comes pre-packaged with a number of stages, including:
    • Bake: Bakes an image within the specified region.
    • Deploy: Deploys a previously baked or found image.
    • Destroy Server Group: Destroys a server group.
    • Disable Server Group: Disables a server group.
    • Enable Server Group: Enables a server group.
    • Find Image: Finds a previously-baked image to deploy into an existing cluster.
    • Jenkins: Runs a Jenkins job.
    • Manual Judgment: Waits for user approval before continuing.
    • Modify Scaling Process: Suspend or resume server group scaling processes.
    • Pipeline: Runs a pipeline. This allows pipelines to be composed hierarchically.
    • Quick Patch Server Group: Quick patches a server group. Used for emergency patches.
    • Resize Server Group: Resizes a server group.
    • Script: Runs an arbitrary shell script.
    • Shrink Cluster: Shrinks a cluster.
    • Wait: Waits a specified period of time.

Netflix Spinnaker Components:

Spinnaker includes the following micro services:

  • Clouddriver: encapsulates all cloud operations.
  • Deck: user interface.
  • Echo: the event service that is responsible for triggering pipeline executions and forwarding pipeline events to listeners.
  • Front50: data store for pipelines, notifications and applications.
  • Gate: service gateway responsible for providing an API and UI to end users.
  • Igor: interface to Jenkins, Stash, and GitHub.
  • Orca: orchestration engine responsible for running Spinnaker pipelines and tasks.
  • Rosco: bakery responsible for creating images for deployment.
  • Rush: general purpose scripting engine.
Netflix Spinnaker

(Netflix Spinnaker components – courtesy: Netflix)

Setting Up Netflix Spinnaker

Setting up Spinnaker for development takes just a few steps. These instructions cover pulling Spinnaker from source and setting it up to run locally against Amazon Web Services and/or Google Cloud Platform accounts. We will then see how Spinnaker is configured for the AWS Cloud from a developer machine.
Before jumping in, make sure you have an AWS account. We’ll follow the steps from the Spinnaker getting started guide:

Create an EC2 role

  • Create a New Role in AWS Identity & Access Management (IAM) and set the Role Name to BaseIAMRole. EC2 instances launched with Spinnaker will be associated with this role.

Create an EC2 Key Pair

  • Create a Key Pair and name the key pair <aws_account_name>-keypair (note: this must match your account name plus “-keypair”).
  • Download the private key file <aws_account_name>-keypair.pem and change its permissions:
chmod 400 aws_account_name-keypair.pem

Create AWS credentials for Spinnaker

  • Create a new user in IAM. Create an access key for the user. Save the access key and secret key into the ~/.aws/credentials file on your workstation.
  • Click the checkbox next to PowerUserAccess in IAM, then click Attach Policy.
  • Create an inline policy with “Select for Policy Generator”.
  • From the IAM Policy Generator, select “AWS Identity and Access Management” as an AWS Service, and then “PassRole” for Actions.
  • Type * (the asterisk character) and “Apply Policy”.

Bootstrap

The bootstrap scripts are meant to run on Ubuntu 14.04 LTS and Mac OS X 10.11. Here’s now it works on Ubuntu:

  • Clone the Spinnaker from GitHub. Make sure you have git version 2.0 and above.
mkdir -p $SPINNAKER_HOME
cd $SPINNAKER_HOME
git clone git@github.com:spinnaker/spinnaker.git
  • Set the path as follows:
export SPINNAKER_HOME=/path/to/your/Spinnaker/workspace

Configure the Environment:

  • Before setting up Spinnaker, make sure your workstation meets the following dependencies.
    • JDK8
    • Redis
    • Cassandra
    • Packer
  • Run the following scripts:
cd $SPINNAKER_HOME
spinnaker/dev/install_development.sh
spinnaker/dev/bootstrap_dev.sh

Configure Spinnaker:

  • Create a directory for Spinnaker configuration overrides, copy the default configuration template there, and edit to select the appropriate cloud provider(s). Here we will have for AWS.
cd $SPINNAKER_HOME
mkdir -p $HOME/.spinnaker spinnaker/config/default-spinnaker-local.yml
$HOME/.spinnaker/spinnaker-local.yml
chmod 600 $HOME/.spinnaker/spinnaker-local.yml
  • If you are deployed on a supported cloud provider (e.g., AWS or Google) and you only wish to deploy on that platform, then you do not need to perform additional configuration. Otherwise, edit $HOME/.spinnaker/spinnaker-local.yml, enable the cloud provider(s) of your choice, and configure the attributes for that provider. Here we will enable only AWS.

Start the Netflix Spinnaker Service

  • To start the Spinnaker Service, execute following:
cd $SPINNAKER_HOME/build
../spinnaker/dev/run_dev.sh [service]
  • If a service is provided, then just that one service will be started. If no service is provided, then all the services will be started.

Stop the Netflix Spinnaker Service

  • To Stop Spinnaker (except Redis and Cassandra), run following:
cd $SPINNAKER_HOME/build
../spinnaker/dev/stop_dev.sh [service]

Conclusion

This has been just a quick introduction to Netflix Spinnaker. With support for many cloud vendors and even containers like Docker, this looks like a very promising package. We hope to bring you more posts on Spinnaker in coming weeks to demonstrate how it can be installed on AWS and Google Cloud Platform, and how it can manage clusters and workflows.

Avatar

Written by

Chandan Patra

Cloud Computing and Big Data professional with 10 years of experience in pre-sales, architecture, design, build and troubleshooting with best engineering practices.Specialities: Cloud Computing - AWS, DevOps(Chef), Hadoop Ecosystem, Storm & Kafka, ELK Stack, NoSQL, Java, Spring, Hibernate, Web Service


Related Posts

Alisha Reyes
Alisha Reyes
— May 11, 2020

New Content: Alibaba, Azure Cert Prep: AI-100, AZ-104, AZ-204 & AZ-400, Amazon Athena Playground, Google Cloud Developer Challenge, and much more

This month, our Content Team released 8 new learning paths, 4 courses, 7 labs in real cloud environments, and 4 new knowledge check assessments. Not only that, but we introduced our very first course on Alibaba Cloud, and our expert instructors are working 'round the clock to create 6 n...

Read more
  • alibaba
  • AWS
  • Azure
  • gitops
  • Google Cloud Platform
  • lab playground
  • programming
Avatar
Rhonda Martinez
— May 4, 2020

Top 5 Reasons to Get AWS Certified Right Now

Cloud computing trends are on the rise and have been for some time already. Fortunately, it’s never too late to start learning cloud computing. Skills like AWS and others associated with cloud computing are in high demand because cloud technologies have become crucial for many businesse...

Read more
  • Amazon Elastic Book Store
  • Amazon Elastic Compute Cloud (EC2)
  • AWS
  • AWS Certifications
  • Glacier
Alisha Reyes
Alisha Reyes
— May 1, 2020

Introducing Our Newest Lab Environments: Lab Playgrounds

Want to train in a real cloud environment, but feel slowed down by spinning up your own deployments? When you consider security or pricing costs, it can be costly and challenging to get up to speed quickly for self-training. To solve this problem, Cloud Academy created a new suite of la...

Read more
  • AWS
  • Azure
  • Docker
  • Google Cloud Platform
  • Java
  • lab playgrounds
  • Python
Alisha Reyes
Alisha Reyes
— April 30, 2020

Blog Digest: AWS Breaking News, Azure DevOps, AWS Study Guide, 8 Ways to Prevent a Ransomware Attack, and More

  New articles by topicAWS Azure Data Science Google Cloud  Cloud Adoption Platform Updates & New Content Security Women in TechAWSBreaking News: All AWS Certification Exams Now Available Online As an Advanced AWS Technology Partner, C...

Read more
  • AWS
  • Azure
  • blog digest
  • Certifications
  • Cloud Academy
  • programming
  • Security
Avatar
Stuart Scott
— April 27, 2020

AWS Certified Solutions Architect Associate: A Study Guide

Want to take a really impactful step in your technical career? Explore the AWS Solutions Architect Associate certificate. Its new version (SAA-C02) was released on March 23, 2020, though you can still take SAA-C01 through July 1, 2020. This post will focus on version SAA-C02.The AWS...

Read more
  • AWS
  • AWS Certifications
  • AWS Certified Solutions Architect Associate
Alisha Reyes
Alisha Reyes
— April 9, 2020

New on Cloud Academy: AWS Solutions Architect Exam Prep, Azure Courses, GCP Engineer Exam Prep, Programming, and More

Free content on Cloud Academy More and more customers are relying on our technology and content to keep upskilling their people in these months, and we are doing our best to keep supporting them. While the world fights the COVID-19 pandemic, we wanted to make a small contribution to he...

Read more
  • AWS
  • Azure
  • Google Cloud Platform
  • programming
Joe Nemer
Joe Nemer
— April 3, 2020

Breaking News: All AWS Certification Exams Now Available Online

Remote proctoring for all AWS certifications Cloud Academy is an Advanced AWS Technology Partner, and we are happy to announce all AWS certification exams are available online!  What does this mean for you? You can stay focused on your certification goal. Or you can start a certifica...

Read more
  • AWS
  • AWS certification
  • AWS Certifications
Connie Benton
Connie Benton
— April 1, 2020

How To Build a Career with AWS Certifications

From Iaas and PaaS solutions to digital marketing, cloud computing reshapes the world of technology. As the influence of this technology grows, so does investment. Tens of billions of dollars are being spent on cloud computing-related services each year. This influx is continuing to inc...

Read more
  • AWS
  • Certifications
Vijayakumar Athithan
Vijayakumar Athithan
— March 27, 2020

What is Cognito in AWS?

Web applications usually allow a valid username and password combination for successful sign in to the application. Modern authentication flows incorporate more approaches to ensure user authentication. When using AWS, this is no exception, thanks to the abilities and features offered b...

Read more
  • AWS
  • AWS Cognito
  • Solutions Architect
Avatar
Andrew Larkin
— March 20, 2020

The 12 AWS Certifications: Which is Right for You and Your Team?

As companies increasingly shift workloads to the public cloud, cloud computing has moved from a nice-to-have to a core competency in the enterprise. This shift requires a new set of skills to design, deploy, and manage applications in cloud computing.As the market leader and most ma...

Read more
  • AWS
  • AWS Certifications
Alisha Reyes
Alisha Reyes
— March 17, 2020

Cloud Academy’s Blog Digest: How Do AWS Certifications Increase Your Employability, How to Become a Microsoft Certified Azure Data Engineer, and more

With everything going on right now, it's likely that the only thing you've been reading lately is related to the coronavirus pandemic. It's important to stay informed during these times, but it's also good to jump into something that can take your mind off of the current situation for j...

Read more
  • AWS
  • Azure
  • blog digest
  • Certifications
  • Cloud Academy
  • programming
  • Security
Avatar
Cloud Academy Team
— March 13, 2020

Which Certifications Should I Get?

As we mentioned in an earlier post, the old AWS slogan, “Cloud is the new normal” is indeed a reality today. Really, cloud has been the new normal for a while now and getting credentials has become an increasingly effective way to quickly showcase your abilities to recruiters and compan...

Read more
  • AWS
  • Azure
  • Certifications
  • Cloud Computing
  • Google Cloud Platform