Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-1547

Copy the kubeconfig admin secret for use with addons

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • Administer
    • Sprint 17
    • None

      For an addon to run in hosted mode, it needs a kubeconfig secret for the HostedCluster available on the hosting cluster.

       

      When an Addon is created in hosted mode on the hub, you specify a namespace to be used on the hosting cluster (hosting cluster is specified as an annotation). 

       

      In the namespace on the hosting cluster we need to create a secret with the kubeconfig for the hosted cluster. This secret has a fixed name:

      work-manager: work-manager-managed-kubeconfig

      policy-config: config-policy-controller-managed-kubeconfig

       

      The kubeadmin secret generated by the HostedCluster resource (control plane) on the hosting cluster, and copy that to the cluster's add-on namespace on the hosting cluster.  This is usually the cluster's name, with the suffix -agent-addon. When the add-on is defined on the hub, you need to make sure to specify the same namespace for the add-on in its spec.

       

      That's it.  Eventually we should create and manage a ServiceAccount, Role and Binding for EACH addon but that is outside the scope.

       

      This is the onboarding document that details how these work: https://docs.google.com/document/d/13NPcFrQAYe4ar9uC_a7hEQ4jVUS-q8HT2Q4t5lmXd0Q/edit

              phwu@redhat.com Philip Wu
              jpacker@redhat.com Joshua Packer
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 1 week
                  1w
                  Remaining:
                  Remaining Estimate - 1 week
                  1w
                  Logged:
                  Time Spent - Not Specified
                  Not Specified