GitLabTech&Tips

수천 개의 클라우드에서 생산 실현

Source: GitLab Blog | Author: Ev Kontsevoy

GitLab 및 Gravity를 통해 더 많은 곳에서 지속적으로 클라우드 네이티브 애플리케이션을 규모에 맞게 제공하십시오.

오늘날 GitLab을 사용하여 애플리케이션을 배포하는 것은 그 어느 때보다 쉽습니다. 원하는 클라우드에서 Kubernetes 클러스터를 생성한 다음에 Kubernetes를 GitLab에 연결시키면 Auto DevOps가 전체 배포 파이프라인을 자동으로 만들어 줍니다.

But what if you need your app to run in two clusters in two separate regions? Ten clusters across multiple cloud providers? A hundred clusters and also on a fleet of self-driving trucks?

At Gravitational, we believe the future should not belong to a single cloud provider and developers should be able to run their applications anywhere with the same simplicity as having a single Kubernetes cluster.

I am a huge fan of GitLab. I’ve had the great pleasure of getting to know much of the founding team over the years and was happy to provide my own contribution to the community a while back. Today, I’m happy to share some thoughts on how to build with GitLab and deploy applications into dozens or even hundreds of cloud environments.

The rise of multicloud

How do you run applications in different data centers? Do you need to rewrite them from scratch? AWS may still be the dominant cloud provider, but cloud competitors are eating into their lead. It’s not just the big public cloud companies either. Private cloud data centers are growing just as rapidly.

Many companies that need to meet tough security and compliance requirements will require applications to run in their bare metal data centers. Running an application on an on-premises or even air-gapped data center adds additional complexity due to the hundreds or even thousands of dependencies in modern applications.

Gravitational has built Gravity, an open source Kubernetes packaging solution that allows developers to build “cluster images” (similar to VM images) that can contain an entire Kubernetes cluster pre-loaded with multiple applications. You would use GitLab to go from idea to production, and Gravity to expand your production to anywhere in the world.

Statements like, “I have snapshotted our entire production environment and emailed it to you, so you can run it in your private data center,” will not seem completely crazy.

Gravity uses standard, upstream CNCF-supported tooling for creating “images” of Kubernetes clusters containing the applications and their dependencies. The resulting files are called cluster images which are just .tar files.

A cluster image can be used to recreate full replicas of the original environments for any deployment environment where compliance and consistency matter, i.e. in locked-down AWS/GCP/Azure environments or even in air-gapped server rooms. Each image includes all dependencies to spin up a full cluster, as well as the Gravity daemon that handles the most common operational tasks associated with Kubernetes applications, and it monitors and alerts human operators of problems.

Deploy with GitLab, scale with Gravity

Gravity dashboard

Developers can leverage a GitLab repository as a single source of truth for rolling out a Kubernetes app and leverage GitLab CI/CD for continuous delivery.

Any project of meaningful scale begins by defining an epic with goals, milestones, and tasks. An issue is the main object for collaborating on ideas and planning work. GitLab’s package and container registry helps you manage and package dependencies.

The GitLab Kubernetes integration allows customers to create Kubernetes clusters, utilize review apps, run pipelines, use web terminals, deploy apps, view pod logs, detect and monitor Kubernetes, and much more. For deploying a Kubernetes cluster in a single destination, GitLab provides everything you need from start to finish.

However, if your customers need to run your application in their private data centers, they can use Gravity, which essentially copy/pastes the entire Kubernetes cluster environment you’ve built in GitLab.

Download and set up the Gravity open source edition following our quickstart guide. From Gravity, you can build a cluster image of your Kubernetes application. Gravity’s documentation will walk you through the steps required to build an image manifest that describes the image build, the installation process, and the system requirements for the cluster.

You can build empty Kubernetes cluster images to quickly create a large number of identical, production-ready Kubernetes clusters within an organization, or you can build a cluster image that also includes Kubernetes applications to distribute your application to third parties.

Next steps

If you want to learn more about working with Kubernetes, start with Kubernetes 101. You’ll learn how GitLab and Kubernetes interact at various touchpoints. And, if you’re looking for a way to port your applications to new environments, check out Gravity.

About the guest author

Ev is a co-founder and the CEO of Gravitational. Before Gravitational, he launched the on-demand OpenCompute servers at Rackspace. Prior to Rackspace, he co-founded Mailgun, the first email service built for developers. Ev has been a fighter against unnecessary complexity in software for 20 years. He abhors cars but loves trains and open source software that doesn’t require an army of consultants to operate.

About Gravitational

Gravitational helps companies deliver cloud applications across cloud providers, on-premises environments, and even air-gapped server rooms. Products include Teleport for multi-cloud privileged access management that doesn’t get in the way of developer productivity, and Gravity, a Kubernetes packaging solution that takes the drama out of on-prem deployments. Gravitational was founded in 2015 and recently announced their Series A.

Cover image by Sharon McCutcheon on Unsplash

댓글 남기기