← Writing archive

Waze and Multi-Cloud Continuous Delivery

Originally published in The Spinnaker Community Blog on Medium.

The folks over at Google recently published an official blog post talking about how Waze (acquired by Google in 2013) has been using Spinnaker to deploy simultaneously on both Google Cloud Platform (GCP) and Amazon Web Services (AWS).

They have been doing it for awhile too! (at least a year according to the post)

Guest post: Multi-Cloud continuous delivery using Spinnaker at Waze

Background

Google has been an active member of the Spinnaker community for over two years with many significant contributions including full support for GCP and Kubernetes (App Engine is also in-progress).

They have taken an active role in making sure that Spinnaker can be easily installed/upgraded (see the spinnaker/spinnaker repo) and supports the authentication/authorization requirements of an enterprise (see the fiat repo and getting started guide) user.

More importantly Google helped flesh out and validate Spinnaker’s multi-cloud provider model. This made it easier when it came time to add support for Titus, Netflix’s in-house container execution platform that coincidentally runs on top of EC2.

Why Spinnaker?

Spinnaker was built with an eye towards the best practices for cloud deployment that had been established at Netflix over the past 6 or 7 years.

Teams adopting Spinnaker no longer need to be experts in the underlying cloud platform in order to reliably deploy an application. Instead they are able to focus more on their actual problem domain and less on the intricacies of a rollout.

The benefit to Waze is simple … engineering teams can use a consistent conceptual model to deploy across GCP and AWS without needing to understanding the specifics of either AND without continually involving a dedicated operations team.

They can build on top of best practices defined by Netflix and Google with very little effort.

If things go sideways, a rollback is just a click away.

Common deployment patterns are exposed via the Spinnaker UI (blue/green, deployment time windows, scale up after manual approval, etc.). Edge cases are achievable but may require a one-off Jenkins job with direct access to the underlying cloud api.

That said, the edge case of today could easily become the best practice of tomorrow and Spinnaker will continue to adapt and remain relevant.

Application-centric Control Plane

Spinnaker provides a consolidated view of all application resources from virtual machines and containers to load balancers and security groups.

These application-focused views use opinionated naming conventions to tie resources together.

The Spinnaker cluster view lists server groups in Google Cloud and AWS side by side
Spinnaker cluster view showing resources from both GCP and AWS

Application owners are able to modify (or create) any resource inline (ie. change ingress on a load balancer or create a new security group) regardless of the backing cloud provider.

It’s worth noting that any operation performed in the UI can be accomplished via the Spinnaker API. Approximately 30-40% of all requests to Spinnaker (at Netflix) originate from an external client of this API.

Pipeline Execution

Continuous Delivery in Spinnaker is accomplished by way of pipelines composed of fundamental building blocks (bake an image, deploy image, scale up, scale down, destroy server group, sleep, manual approval, etc.).

Teams are free to wire together these building blocks in a way that is optimal for their particular application. Spinnaker does not dictate a one size fits all pipeline.

Application owners can define one or more pipelines that are responsible for going from code artifact (ie. a debian package) to deployed resource (ie. a virtual machine or container living in a region or zone).

These pipelines can be automatically triggered by a build job, cron activity or the completion of another pipeline.

It is common for teams to have multiple pipelines responsible for moving code artifacts between environments … build -> test, test -> staging and staging -> production.

The first two pipelines might trigger automatically and without human intervention, whereas the final production push might require approval from a member of the responsible team.

If you’re looking for a way to manage pipelines outside of the Spinnaker UI, the fine folks at Gogo have open-sourced Foremast.

GitHub - gogoair/foremast: Spinnaker pipeline and infrastructure configuration and templating tool - Pipelines as Code.

Over the coming months, Netflix will be providing a built-in solution for managing and re-using pipeline templates across applications. Stay tuned!

Conclusion

We’re happy that both Google and Waze have found success with Spinnaker and were able to publicly share their story.

I would encourage you to follow the Continuous Delivery @ Scale publication if you found this post at all interesting and relevant.

I’m more than happy to hear feedback and field follow-up questions on Twitter or Slack.

If you’d like to know more about Spinnaker: