When the organizations started to adopt Kubernetes platforms, like OpenShift, many years ago, the most common scenario was a single cluster for all the workloads. However, as the rate of OpenShift adoption got faster inside the organizations, more clusters were needed. And each organization started to work on its own automation: some of them used Ansible for the provisioning, others Terraform. Some of them used Ansible for the Day2 configuration and Cluster Life Cycle, others used GitOps tools like ArgoCD or Drone. Implementing the whole workflow of provisioning, day 2 configuration and Cluster Life Cycle in an automated way is not a simple task, and as there are no standards, each team defines its own solution.

In this article, I’ll not just describe how to create the whole workflow of Provisioning, Day 2 configuration and Cluster Lifecycle; but I’ll do it from an enterprise perspective. And this is the most important part of this article: I’m not using any cool custom plugin, or an amazing tool just found in GitHub. Don’t get me wrong, I love to try new tools, but organizations require tools which are supported, used by other companies, coming from a reliable source.

Overview

“GitOps for organizations” is a solution for provisioning and configuring OpenShift clusters using Red Hat products (ACM and OpenShift Gitops), allowing the use of any orchestrator (AAP/Tower, Service Now, Jenkins…). In this solution, git is the central integration point and the source of truth. ACM will be used for provisioning and applying policies, and OpenShift Gitops (ArgoCD) as Continuous Delivery tool for applying all the configuration to all out OpenShift clusters

gitops-for-organization-overview-2

How it works

The users fill in a form in a frontend (web application) to request a cluster, which is automatically provisioned and configured by ACM. This frontend can be any web application with a form, to fill in the cluster details, and able to push in a git repository the required yaml objects. This can be an AAP (Tower), Jenkins, or even ACM can be used. However, in my experience, most organizations prefer to have their own custom platform, like a “Marketplace”.

Once the form is filled with all the cluster parameters, files are generated and written to a git repository, which is automatically synchronized to ACM with ArgoCD. On one side, ACM will provision the cluster. On the other side, the ArgoCD ApplicationSet will create an Application to synchronize all the configuration for the new cluster.

When the cluster is created, it’s automatically imported into ACM and added to OpenShift Gitops. At this point, ArgoCD synchronizes all the configuration to the new cluster.

gitops-for-organization-solution-1

This solution is explained in more detail in these 2 parts:

The repository used for the solution demonstration purposes is: Gitops for Organizations

Tools

Frontend

Web application with a form to fill in the cluster details. This can be AAP (Tower), Service Now, Jenkins or any custom web application. All the cluster parameters must be written in a yaml/json file and pushed to git.

Red Hat Advanced Cluster Management for Kubernetes (RHACM)

ACM is used for provisioning OpenShift clusters and also for applying policies to the clusters.

Openshift GitOps (ArgoCD)

OpenShift GitOps (ArgoCD) is used as a Continuous Delivery tool for applying all the configuration to all out OpenShift clusters.


執筆者紹介

Alberto Gonzalez de Dios is a Senior Cloud consultant: Automation and OpenShift specialist. He joined Red Hat in 2018, and he is certified in Azure, AWS and Red Hat (Red Hat Certified Architect Level II).

UI_Icon-Red_Hat-Close-A-Black-RGB

チャンネル別に見る

automation icon

自動化

テクノロジー、チームおよび環境に関する IT 自動化の最新情報

AI icon

AI (人工知能)

お客様が AI ワークロードをどこでも自由に実行することを可能にするプラットフォームについてのアップデート

open hybrid cloud icon

オープン・ハイブリッドクラウド

ハイブリッドクラウドで柔軟に未来を築く方法をご確認ください。

security icon

セキュリティ

環境やテクノロジー全体に及ぶリスクを軽減する方法に関する最新情報

edge icon

エッジコンピューティング

エッジでの運用を単純化するプラットフォームのアップデート

Infrastructure icon

インフラストラクチャ

世界有数のエンタープライズ向け Linux プラットフォームの最新情報

application development icon

アプリケーション

アプリケーションの最も困難な課題に対する Red Hat ソリューションの詳細

Virtualization icon

仮想化

オンプレミスまたは複数クラウドでのワークロードに対応するエンタープライズ仮想化の将来についてご覧ください