GitOps for Multi-Cloud with Crossplane

Crossplane: GitOps for the multi-cloud

Crossplane: GitOps for the multi-cloud

Declarative infrastructure description using Infrastructure-as-Code tools has become quite prevalent, but it still requires learning new tools or languages like Terraform or cloud development kits. Crossplane is an open-source project that provides a solution to this issue. It uses the Kubernetes API to describe all infrastructure in a Kubernetes-native manner. This is done through Kubernetes Custom Resource Definitions (CRD), which expand the Kubernetes API with additional resources needed to provision infrastructure.

Crossplane is also a cloud-native GitOps tool because it works with the Kubernetes API, which is often associated with cloud-native technologies. Additionally, Crossplane is not limited to provisioning Kubernetes infrastructure, making it scalable across different cloud providers.

The Crossplane project has been in the incubation stage of the Cloud Native Computing Foundation since September 2021. As such, it is predicted to become a popular tool for teams familiar with the Kubernetes API.

Essential components without a management cluster

A Crossplane provider is needed for it to function without a management cluster. A provider acts as Crossplane’s interface to a specific provider such as AWS, Azure or Google Cloud Platform. The provider is responsible for creating and destroying resources in the provider’s infrastructure, as well as translating the Kubernetes-like API into the provider’s native API.

Setting up access

Upon installing a provider, setting up authentication between Kubernetes and the provider is necessary. This can be done either by specifying access keys in a Kubernetes secret or by utilizing Kubernetes role-based access control.

Configuring the provider

To configure the provider, resources specific to the provider in use need to be created. For instance, configuring an AWS provider necessitates creating resources like the AmazonS3Bucket resource. Crossplane enables users to configure these resources using Kubernetes-style YAML files that describe the resource’s behavior, required attributes, and metadata.

Multi-cloud on a small scale: Setting up an Azure provider

To set up an Azure provider, the Microsoft Azure CLI needs to be installed, followed by the installation of the Crossplane Azure provider package. After configuring an Azure credential Kubernetes Service Account for the provider, running the package’s installation script is necessary to complete the setup.

Read the article in iX 2/2023

For more on Kubernetes, DevOps, and CI/CD, be sure to read the article in iX 2/2023. The publication provides a comprehensive guide on the Crossplane project, its functionality, and how it solves the infrastructure-as-code tool issues.

More on Kubernetes, DevOps and CI/CD

The digital subscription for IT and technology is a one-subscription-for-all-magazines deal that includes c’t, iX, MIT Technology Review, Mac & i, and Make. With the subscription, readers get exclusive tests, guides, and background information on various technologies. Magazine subscription also grants access to read c’t photography directly from the browser. The first month is free, while subsequent months start from €9.95.

Prepaid: Mobile phone tariffs with advance payment and full cost control in comparison

Prepaid mobile phone tariffs are advantageous for occasional users, tourists visiting Germany, children, or young adults. However, regular users should check the conditions beforehand.

SSD multiple adapter: PCIe cards for four M.2 SSDs in the test

When the need for fast storage increases, PCIe cards help, through which large amounts of secure and fast storage can be integrated into the system.

Photoshop vs. Gimp: Which tool for which user?

The practical comparison of Adobe Photoshop and GIMP helps users decide which image editing software best suits them.

Seven mesh systems with Wi-Fi 6 in comparison

More bases equal more Wi-Fi and, consequently, increased internet speed throughout the house. C’t Magazin did an in-depth test of seven mesh systems to ascertain their functionality.

Trying out AI art: Creating impressive works with Midjourney

Midjourney AI tool creates impressive art by capturing and implementing nearly any idea imitating various artists. It’s a great tool for artists and non-artists alike eager to create original and artistic images.

Robot mower: What you need to consider when buying a machine

For those searching for a robotic lawnmower, they need to keep in mind a few key things before making any purchases.

Leave a Reply