Kubernetes at GitHub

Published on by

Kubernetes at GitHub image

GitHub has been rolling out Kubernetes over the last year on github.com. I find beautiful irony in the fact that GitHub hosts the source code for so many popular open source projects.

Think about it.

GitHub hosts Ruby, Rails, MySql, and many other open-source repositories, and then turns around and uses those technologies to build—GitHub. It’s “dogfooding” to the extreme.

Over the last year or so, GitHub has been experimenting with and integrating Docker containers with Kubernetes. Kubernetes is “is an open-source system for automating deployment, scaling, and management of containerized applications.”

Over the last year, GitHub has gradually evolved the infrastructure that runs the Ruby on Rails application responsible for github.com and api.github.com. We reached a big milestone recently: all web and API requests are served by containers running in Kubernetes clusters deployed on our metal cloud. Moving a critical application to Kubernetes was a fun challenge, and we’re excited to share some of what we’ve learned with you today.

GitHub’s adoption is huge for containerization and Docker movement. Organizations of massive scale are moving critical applications to containers to create a more resilient and reliable infrastructure. It seems as though GitHub’s move to container orchestration has increased the ability for more of a self-service platform with less strain on operations and Site reliability engineers (SREs). One huge benefit is insulating an application from differences between environments.

Previously, it seems as though GitHub relied on Capistrano to deploy code to all frontend application servers. Deployment is accomplished with SSH connections to each server where code is updated and services restarted. If a rollback is needed, Capistrano SSH’s into each server and moves a symlink to a previous version.

In a traditional application server environment, when you need additional application nodes you must provide configuration management tools to provision servers. Once servers are ready, you then deploy code on them through a tool like Capistrano, and then finally move them into place to accept traffic. I know from personal experience that expanding the pool of nodes and rolling back code versions can be cumbersome in a traditional server environment. I don’t have an intimate knowledge of GitHub’s infrastructure and deployment process; I can only speak from my own experience in how I was scaling services before I started using Docker.

Since Docker images produce a single code artifact, rolling back from a bad release is usually much smoother. Kubernetes takes care of rolling back to the desired state. Plus, you can run a bad version in another environment in a repeatable way to further isolate issues.

Now, all web (github.com) and API (api.github.com) requests are served from containers running in Kubernetes on GitHub’s metal cloud.

Read all about the journey on GitHub’s engineering blog.

Paul Redmond photo

Staff writer at Laravel News. Full stack web developer and author.

Filed in:
Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.

Laravel Forge logo

Laravel Forge

Easily create and manage your servers and deploy your Laravel applications in seconds.

Laravel Forge
Tinkerwell logo

Tinkerwell

The must-have code runner for Laravel developers. Tinker with AI, autocompletion and instant feedback on local and production environments.

Tinkerwell
No Compromises logo

No Compromises

Joel and Aaron, the two seasoned devs from the No Compromises podcast, are now available to hire for your Laravel project. ⬧ Flat rate of $7500/mo. ⬧ No lengthy sales process. ⬧ No contracts. ⬧ 100% money back guarantee.

No Compromises
Kirschbaum logo

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum
Shift logo

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift
Bacancy logo

Bacancy

Supercharge your project with a seasoned Laravel developer with 4-6 years of experience for just $2500/month. Get 160 hours of dedicated expertise & a risk-free 15-day trial. Schedule a call now!

Bacancy
Lucky Media logo

Lucky Media

Get Lucky Now - the ideal choice for Laravel Development, with over a decade of experience!

Lucky Media
Lunar: Laravel E-Commerce logo

Lunar: Laravel E-Commerce

E-Commerce for Laravel. An open-source package that brings the power of modern headless e-commerce functionality to Laravel.

Lunar: Laravel E-Commerce
LaraJobs logo

LaraJobs

The official Laravel job board

LaraJobs
SaaSykit: Laravel SaaS Starter Kit logo

SaaSykit: Laravel SaaS Starter Kit

SaaSykit is a Laravel SaaS Starter Kit that comes with all features required to run a modern SaaS. Payments, Beautiful Checkout, Admin Panel, User dashboard, Auth, Ready Components, Stats, Blog, Docs and more.

SaaSykit: Laravel SaaS Starter Kit
Rector logo

Rector

Your partner for seamless Laravel upgrades, cutting costs, and accelerating innovation for successful companies

Rector
MongoDB logo

MongoDB

Enhance your PHP applications with the powerful integration of MongoDB and Laravel, empowering developers to build applications with ease and efficiency. Support transactional, search, analytics and mobile use cases while using the familiar Eloquent APIs. Discover how MongoDB's flexible, modern database can transform your Laravel applications.

MongoDB

The latest

View all →
Add Comments to your Laravel Application with the Commenter Package image

Add Comments to your Laravel Application with the Commenter Package

Read article
Laravel Advanced String Package image

Laravel Advanced String Package

Read article
Take the Annual State of Laravel 2024 Survey image

Take the Annual State of Laravel 2024 Survey

Read article
Upload Files Using Filepond in Livewire Components image

Upload Files Using Filepond in Livewire Components

Read article
The Best Laravel Tutorials and Resources for Developers image

The Best Laravel Tutorials and Resources for Developers

Read article
Introducing Built with Laravel image

Introducing Built with Laravel

Read article