Skip to content

Latest commit

 

History

History

02-cluster-config

OpenShift Recipes: Cluster Config

Kubernetes/OpenShift GitOps - Manage the capabilities or your cluster. The cluster configuration.

This section contains the Cluster Configuration part to configure ArgoCD with the desired cluster capabilities. In a previous version was this solved with with helm and the helm/values.yaml contains the configuration for the desired capabilities. But with the enhancement in ArgoCD with ApplicationSet is this optimized to the cluster-config.json representing the list of desired capabilities.

Generally this is not installed manually. During the initialization will be a new ArgoCD App configured and linked to this repo.

To configure the desired cluster state with the needed capabilities, adjust the cluster-config.json considering the following structure

name

Name of the capability, will be used as identify in ArgoCD.

repo

GitHub repository to the capability holding the logic to install it. All ArgoCD supported ways to install Kubernetes resources are allowed.

path

In case the Kubernetes resources are not in the root directory of the Git repo, set here the path.

revision

Git revision/branch.

namespace

Target namespace of the ArgoCD Application which will generated, not necessarily the target namespace of the capability itself.

project

Referenced ArgoCD project.

ignores

List of ignoreDifferences entries for the generated ArgoCD Application.

The json object should be an array, the internal logic will iterate through the array and generate for any item an own ArgoCD Application.

The cluster configuration represents the state of the cluster.

N/A

This article is licensed under the Apache License, Version 2. Separate third-party code objects invoked within this code pattern are licensed by their respective providers pursuant to their own separate licenses. Contributions are subject to the Developer Certificate of Origin, Version 1.1 and the Apache License, Version 2.

See also Apache License FAQ .