Skip to content

mbp-968: Add support for ACM ManagedClusters#64

Merged
sabre1041 merged 1 commit into
validatedpatterns:mainfrom
mlorenzofr:mbp-968
Oct 30, 2025
Merged

mbp-968: Add support for ACM ManagedClusters#64
sabre1041 merged 1 commit into
validatedpatterns:mainfrom
mlorenzofr:mbp-968

Conversation

@mlorenzofr
Copy link
Copy Markdown
Collaborator

These changes enable the import of pre-existing Openshift clusters using ACM.

Importing existing clusters

The pattern supports importating pre-existing Openshift clusters into the Hub cluster, converting them into Managed Clusters.

  1. Copy the kubeconfig file of the cluster you want to import to your local system.

  2. In the values-secret.yaml file, add a new secret with the contents of the kubeconfig file.

      - name: kubeconfig-spoke
        vaultPrefixes:
        - hub
        fields:
        - name: content
          path: ~/.kube/kubeconfig-ztvp-spoke
  3. In the values-hub.yaml file, add a new entry in the clusterGroup.managedClusterGroups key.

      managedClusterGroups:
        exampleRegion:
          name: group-one
          acmlabels:
            - name: clusterGroup
              value: group-one
          helmOverrides:
            - name: clusterGroup.isHubCluster
              value: false
  4. Also in the values-hub.yaml file, add your cluster definition in the acmManagedClusters.clusters key.

    acmManagedClusters:
      clusters:
        - name: ztvp-spoke-1
          clusterGroup: group-one
          labels:
            cloud: auto-detect
            vendor: auto-detect
          kubeconfigVaultPath: secret/data/hub/kubeconfig-spoke

@ghost
Copy link
Copy Markdown

ghost commented Oct 22, 2025

Tested with a rhdp 3 control plane cluster as hub and a clusterbot aws 4.19 spoke.

Signed-off-by: Manuel Lorenzo <mlorenzofr@redhat.com>
Copy link
Copy Markdown
Collaborator

@sabre1041 sabre1041 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sabre1041 sabre1041 merged commit 5c03818 into validatedpatterns:main Oct 30, 2025
3 checks passed
@mlorenzofr mlorenzofr deleted the mbp-968 branch October 30, 2025 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants