rhacm-setup

by tjungbauer

Helm chartv1.0.24Apache-2.0Verified publisher

Setup and configure Advanced Cluster Managerment. Replaces the Chart rhacm-full-stack.

About this chart

rhacm-setup

Description

Setup and configure Advanced Cluster Managerment. Replaces the Chart rhacm-full-stack.

This Helm Chart is installing and configuring Advanced Cluster Management (ACM)

Dependencies

This chart has the following dependencies:

RepositoryNameVersion
https://charts.stderr.at/tpl~1.0.31

It is best used with a full GitOps approach such as Argo CD does. For example, https://github.com/tjungbauer/openshift-clusterconfig-gitops (for example in the folder clusters/management-cluster/setup-acm)

Maintainers

NameEmailUrl
tjungbauer[email protected]https://blog.stderr.at/

Sources

Source:

Source code: https://github.com/tjungbauer/helm-charts/tree/main/charts/rhacm-setup

Parameters

Verify the subcharts for additional settings:

Values

KeyTypeDefaultDescription
helper-operator.operators.advanced-cluster-management.enabledboolfalse
helper-operator.operators.advanced-cluster-management.namespace.createbooltrue
helper-operator.operators.advanced-cluster-management.namespace.namestring"open-cluster-management"
helper-operator.operators.advanced-cluster-management.operatorgroup.createboolfalse
helper-operator.operators.advanced-cluster-management.operatorgroup.notownnamespaceboolfalse
helper-operator.operators.advanced-cluster-management.subscription.approvalstring"Automatic"
helper-operator.operators.advanced-cluster-management.subscription.channelstring"release-2.16"
helper-operator.operators.advanced-cluster-management.subscription.operatorNamestring"advanced-cluster-management"
helper-operator.operators.advanced-cluster-management.subscription.sourcestring"redhat-operators"
helper-operator.operators.advanced-cluster-management.subscription.sourceNamespacestring"openshift-marketplace"
helper-operator.operators.advanced-cluster-management.syncwavestring"0"
helper-status-checker.checks[0].namespace.namestring"open-cluster-management"
helper-status-checker.checks[0].operatorNamestring"advanced-cluster-management"
helper-status-checker.checks[0].serviceAccount.namestring"sa-acm-status-checker"
helper-status-checker.checks[0].syncwaveint3
helper-status-checker.enabledboolfalse
override-rhacm-operator-versionstring"release-2.16"Anchor for the operator version
rhacm.importClustersobject{"additionalAnnotations":{},"additionalLabels":{},"addons":{"applicationManager":{"enabled":true},"certPolicyController":{"enabled":true},"iamPolicyController":{"enabled":true},"policyController":{"enabled":true},"searchCollector":{"enabled":true}},"clusters":null,"enabled":false,"klusterlet_addon_syncwave":"10","managed_cluster_syncwave":"5"}ManagedCluster + KlusterletAddonConfig when enabled (see templates/rhacm/managedCluster.yaml) This will create a new cluster in the management cluster. However, this will only prepare the cluster, you still need to download and execute the command to fully integrate the new cluster.
rhacm.importClusters.additionalAnnotationsobject{}Additional annotations for ManagedCluster and KlusterletAddonConfig (merged with clusters[].additionalAnnotations)
rhacm.importClusters.additionalLabelsobject{}Additional labels for ManagedCluster and KlusterletAddonConfig (merged with clusters[].additionalLabels)
rhacm.importClusters.addonsobject{"applicationManager":{"enabled":true},"certPolicyController":{"enabled":true},"iamPolicyController":{"enabled":true},"policyController":{"enabled":true},"searchCollector":{"enabled":true}}Klusterlet addon controllers; all default to enabled. Override globally or per cluster via clusters[].addons Per default all addons are enabled. However, you can override this here GLOBALLY
rhacm.importClusters.enabledboolfalseEnable the import of clusters.
rhacm.importClusters.klusterlet_addon_syncwavestring10Syncwave for the KlusterletAddonConfig. MUST be HIGHER than managed_cluster_syncwave
rhacm.importClusters.managed_cluster_syncwavestring5Syncwaves for the ManagedCluster. MUST be LOWER than klusterlet_addon_syncwave
rhacm.multiclusterhub.additionalAnnotationsobject{}Additional annotations for the MultiClusterHub
rhacm.multiclusterhub.additionalLabelsobject{}Additional labels for the MultiClusterHub
rhacm.multiclusterhub.availabilityConfigstringBasicSpecifies deployment replication for improved availability. Options are: Basic and High
rhacm.multiclusterhub.enabledboolfalseEnable MultiClusterHub object
rhacm.multiclusterhub.nodeSelectorobjectemptySpecify a nodeSelector for example to move the Pods to infrastructure nodes.
rhacm.multiclusterhub.syncwavestring3Syncwave for the MultiClusterHub
rhacm.multiclusterhub.tolerationslistemptyIf you want this component to only run on specific nodes, you can configure tolerations of tainted nodes.
rhacm.namespace.namestring"open-cluster-management"
rhacm.searchobject{"additionalAnnotations":{},"additionalLabels":{},"dbStorage":{"size":"10Gi"},"deployments":{},"enabled":false,"nodeSelector":{"key":"node-role.kubernetes.io/infra","value":""},"syncwave":"15","tolerations":[{"effect":"NoSchedule","key":"storage","operator":"Equal","value":"local"}]}Search custom resource (search-v2-operator). See RH ACM 2.16 "Customizing the Search service". https://docs.redhat.com/en/documentation/red_hat_advanced_cluster_management_for_kubernetes/2.16/html/search/acm-search#customize-search-console
rhacm.search.additionalAnnotationsobject{}Additional annotations for the Search custom resource
rhacm.search.additionalLabelsobject{}Additional labels for the Search custom resource
rhacm.search.dbStorageobject{"size":"10Gi"}PostgreSQL PVC for search-postgres. Omit entire key (set to null) to let the operator keep defaults (e.g. emptyDir for non-prod).
rhacm.search.dbStorage.sizestring10GiSize of the PostgreSQL PVC.
rhacm.search.deploymentsobject{}Per-deployment tuning: collector, indexer, database, queryapi (resources, replicaCount, envVar, arguments). Passed through as YAML. deployments: collector: resources: limits: { cpu: 500m, memory: 128Mi } requests: { cpu: 250m, memory: 64Mi } indexer: replicaCount: 3 resources: limits: { memory: 5Gi } requests: { memory: 1Gi } database: envVar: - name: POSTGRESQL_EFFECTIVE_CACHE_SIZE value: 1024MB - name: POSTGRESQL_SHARED_BUFFERS value: 512MB queryapi: arguments: - -v=3
rhacm.search.enabledboolfalseEnable Search custom resource.
rhacm.search.nodeSelectorobject{}Hub-wide node placement for search pods (maps to spec.nodeSelector).
rhacm.search.syncwavestring"15"Argo CD sync wave; place after MultiClusterHub / search operator is available.
rhacm.search.tolerationslist[]Hub-wide tolerations for search pods.
rhacm.searchCollectorobjectfalseSearch collector add-on: ConfigMap search-collector-config (AllowedResources / DeniedResources). https://docs.redhat.com/en/documentation/red_hat_advanced_cluster_management_for_kubernetes/
rhacm.searchCollector.configMap.additionalAnnotationsobject{}Additional annotations for the search-collector ConfigMap
rhacm.searchCollector.configMap.additionalLabelsobject{}Additional labels for the search-collector ConfigMap
rhacm.searchCollector.configMap.allowedResourcesobject{}Structured rules; rendered as YAML under ConfigMap data keys AllowedResources / DeniedResources.
rhacm.searchCollector.configMap.enabledboolfalseEnable Search collector add-on.
rhacm.searchCollector.configMap.namespacestringopen-cluster-management-agentNamespace where the klusterlet search-collector runs.
rhacm.searchCollector.configMap.syncwavestring20Syncwave for the ConfigMap.

Example values

---
---
# -- Anchor for the operator version
override-rhacm-operator-version: &rhacmversion release-2.10

# Install Operator RHACM
# Deploys Operator --> Subscription and Operatorgroup
# Syncwave: 0
helper-operator:
  operators:
    advanced-cluster-management:
      enabled: false
      syncwave: '0'
      namespace:
        name: open-cluster-management
        create: true
      subscription:
        channel: *rhacmversion
        approval: Automatic
        operatorName: advanced-cluster-management
        source: redhat-operators
        sourceNamespace: openshift-marketplace
      operatorgroup:
        create: false
        notownnamespace: false

# Using sub-chart helper-status-checker
helper-status-checker:
  enabled: false

  checks:

    - operatorName: advanced-cluster-management
      namespace:
        name: open-cluster-management
      syncwave: 3

      serviceAccount:
        name: "sa-acm-status-checker"

rhacm:
  namespace:
    name: open-cluster-management

  # Configure MultiClusterHub
  multiclusterhub:
    enabled: false
    availabilityConfig: Basic

Installing the Chart

To install the chart with the release name my-release:

helm install my-release tjungbauer/<chart-name>>

The command deploys the chart on the Kubernetes cluster in the default configuration.

Uninstalling the Chart

To uninstall/delete the my-release deployment:

helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.


Autogenerated from chart metadata using helm-docs v1.14.2

Deploy rhacm-setup with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has rhacm-setup on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartrhacm-setup is pinned at v1.0.24 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply